24小时热门版块排行榜    

查看: 1242  |  回复: 0

zcjyzst

木虫 (正式写手)

[求助] lammps初学求助

学习《Computational Materials Science》第 3.6 Yield mechanism of an Au nanowire的例子时怎么出现:ERROR: Expected floating point parameter in input script or data file (../fix_nh.cpp:157),该怎么修改呢?
in文件如下:
# Deformation of Au nanowire #
# Structure generation #

units               metal
atom_style          atomic
boundary            m m p

# define lattice with lattice parameter, origin, orientation in z, x, and y axis

lattice             fcc 4.07 origin 0 0 0 orient z 1 1 0 orient x 0 0 -1 orient y -1 1 0
region              box block 0 10 0 5 0 40 units lattice side in
create_box          1 box
create_atoms        1 box

region              1 prism 5.1 10.0 0 5 -1 1000 10 0 0
region              2 prism -1.0 4.9 0 5 -1 1000 -10 0 0
region              3 prism 14.9 20.0 0 5 -1 1000 -10 0 0
region              4 prism -20.0 -4.5 0 5 -1 1000 10 0 0

group               del1 region 1
group               del2 region 2
group               del3 region 3
group               del4 region 4

delete_atoms        group del1          #trimming cormer to make a rhombic wire
delete_atoms        group del2
delete_atoms        group del3
delete_atoms        group del4

# Interatomic potential #

pair_style          eam
pair_coeff          Au_u3.eam

neighbor            1.5 bin
neigh_modify        every 1 delay 1

# Thermal equilibration at 300 K #

velocity            all  create 300 87654321 dist gaussian
velocity            all  zero linear
velocity            all  zero angular
thermo              200
thermo_style        custom step atoms temp pe lx ly lz pzz press
thermo_modify       lost warn norm yes flush yes
timestep            0.005           # ps
dump                1 all custom 20000 pos.dump id type x y z
fix                 1 all npt temp 300.0 300.0 10.0 aniso NULL NULL NULL NULL 0.0 0.0 10.0 drag 1.0
run                 20000

#Tensile loading #

unfix               1
undump              1
reset_timestep      0
compute             MyTemp all temp
compute             MyPe all pe
compute             peratom all stress/atom

# taking averages of T and potential energy between step 100 ~ 200

fix                 ThermoAve all ave/time 1 100 200 c_MyTemp c_MyPe
thermo              200

# saving a log.lammps file with timestep, atoms, T, potential energy, zbox, volume, P in z-aixs #

thermo_style        custom step atoms f_ThermoAve[1] f_ThermoAve[2] lz vol pzz
thermo_modify       lost warn norm yes flush yes
fix                 1 all nvt 300.0 300.0 10.0
fix                 2 all deform 200 z erate 0.0001     # equal to strain rate of 0.0001/ps
# dump               2 all cfg 20000 pos.*.cfg id type xs ys zs # for display with Atomeye   
dump                2 all xyz 50000 Au_*.xyz            # for display with MDL
# dump_modify       2 element Au                        # for display with Atomeye
run                 500000
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 zcjyzst 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 基金中了 +12 laoda193707 2026-08-06 12/600 2026-08-07 19:16 by zhendaodan
[基金申请] 关于代码变化问题,想知道的进来 +6 且听虎啸 2026-08-07 9/450 2026-08-07 18:40 by naalan7001
[基金申请] 关于filecode +3 布布和一二 2026-08-07 6/300 2026-08-07 17:51 by 医学老男孩
[基金申请] 固定端突然变了,今天 +6 archvillain 2026-08-06 10/500 2026-08-07 16:03 by 医学老男孩
[基金申请] 听说今天filecode变了 +24 布布和一二 2026-08-06 47/2350 2026-08-07 16:02 by zhiyanjiang
[基金申请] filecode与中标关系的预测 +3 布布和一二 2026-08-07 3/150 2026-08-07 15:09 by gltch
[基金申请] filecode变化情况 +6 布布和一二 2026-08-07 22/1100 2026-08-07 14:45 by 且听虎啸
[论文投稿] 十年后又回来了,论文投稿求助 +4 哈哈114477 2026-08-01 4/200 2026-08-07 14:39 by jgy194592
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 7/350 2026-08-07 13:11 by 医学老男孩
[基金申请] 关于豆爷回答的JTJC与%2F数量 +4 yang182083 2026-08-06 6/300 2026-08-07 12:43 by 虫友是什么虫
[基金申请] 面上再次挂了,太难了,躺也躺不了,倦也卷不过,小学校之殇! +23 低垂的野花 2026-07-31 31/1550 2026-08-07 12:22 by speculiar
[基金申请] filecode +14 等待解的谜 2026-08-06 19/950 2026-08-07 12:20 by wlwhappy
[基金申请] 求各位大神看下 100+6 hpkpkpkp 2026-08-05 33/1650 2026-08-06 14:49 by zhiyanjiang
[基金申请] 影响面上的因素 +8 布布和一二 2026-08-05 11/550 2026-08-06 10:41 by 宝贝虫子
[基金申请] 8月时间戳变的,举个手。玩一下,释放压力 +9 archvillain 2026-08-04 11/550 2026-08-05 20:06 by wlwhappy
[基金申请] 好消息?这个有何含义??? +8 Tide man 2026-08-05 10/500 2026-08-05 16:14 by xmuxiaoyu
[基金申请] 有没有H口的?有收到消息的吗? +3 超级海虾 2026-08-04 3/150 2026-08-04 17:26 by 学教育滴
[基金申请] 纯娱乐,不喜欢勿喷 +7 Tide man 2026-08-04 10/500 2026-08-04 15:10 by loufangrui
[基金申请] 面上提前没消息,有中的吗 +14 archvillain 2026-08-02 18/900 2026-08-04 14:42 by archvillain
[基金申请] 什么时候能放榜呀? +3 Jacob678 2026-08-03 3/150 2026-08-03 16:14 by gltch
信息提示
请填处理意见