24小时热门版块排行榜    

Znn3bq.jpeg
汕头大学海洋科学接受调剂
查看: 1203  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 272分材料子求调剂 +41 Loy0361 2026-04-10 53/2650 2026-04-13 14:20 by 张zhihao
[考研] 335求调剂 +18 想上岸呀!! 2026-04-12 19/950 2026-04-13 14:15 by 张zhihao
[考研] 求调剂 +8 何气正 2026-04-13 9/450 2026-04-13 14:08 by maddjdld
[考研] 290求调剂 +18 柯淮然 2026-04-12 20/1000 2026-04-13 12:56 by cyh—315
[考研] 一志愿华工085600 331分 +7 天下ww 2026-04-09 7/350 2026-04-13 09:01 by lhj2009
[考研] 0831一轮调剂失败求助 +10 小熊睿睿_s 2026-04-11 10/500 2026-04-12 22:43 by 长弓傲
[考研] 0831生医工第一轮调剂失败求助 +12 小熊睿睿_s 2026-04-11 16/800 2026-04-12 16:28 by 钰璞
[考研] 求调剂 +16 张番茄不炒蛋 2026-04-10 17/850 2026-04-12 13:58 by 熬夜成!
[考研] 307求调剂 +10 tzq94092 2026-04-10 10/500 2026-04-12 08:18 by wise999
[考研] 22408调剂315分 +3 zhuangyan123 2026-04-09 3/150 2026-04-12 00:25 by 蓝云思雨
[考研] 调剂 +6 青灯不负 2026-04-09 6/300 2026-04-11 20:35 by dongdian1
[考研] 085410-273求调剂 +6 X1999 2026-04-10 6/300 2026-04-11 10:32 by Delta2012
[考研] 342电子信息专硕求调剂 +9 你让我怎么荔枝 2026-04-10 10/500 2026-04-11 08:33 by zhq0425
[考研] 化学工程与技术324调剂 +23 孙常华 2026-04-09 25/1250 2026-04-11 00:07 by 骑牛渡寒江
[考研] 一志愿中科大070300化学,314分求调剂 +12 wakeluofu 2026-04-09 12/600 2026-04-10 09:57 by liuhuiying09
[考研] 332,085601求调剂 +12 ydfyh 2026-04-09 14/700 2026-04-09 17:28 by wp06
[考研] 270求调剂 +3 031127 2026-04-06 4/200 2026-04-08 21:00 by 逆水乘风
[考研] 一志愿哈工大,初试329,求环境科学与工程调剂! +11 余未辛 2026-04-06 11/550 2026-04-08 15:21 by screening
[考研] 求考研材料调剂 +3 材化李可 2026-04-07 3/150 2026-04-08 00:21 by JourneyLucky
[考研] 325 调剂 +6 QQ小虾 2026-04-07 6/300 2026-04-07 15:17 by Ccclqqq
信息提示
请填处理意见