24小时热门版块排行榜    

查看: 1199  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 生物学一志愿985,分数349求调剂 +4 zxts12 2026-03-21 7/350 2026-03-22 09:57 by zxts12
[考研] 生物学调剂 +4 Surekei 2026-03-21 4/200 2026-03-22 07:18 by ilovexiaobin
[考研] 广西大学材料导师推荐 +3 夏夏夏小正 2026-03-17 5/250 2026-03-21 22:20 by 金昊ML
[考研] 化学调剂 +5 yzysaa 2026-03-21 5/250 2026-03-21 22:12 by peike
[考研] 材料工程专硕 348分求调剂 +3 冬辞. 2026-03-17 5/250 2026-03-21 18:47 by 学员8dgXkO
[考研] 求调剂 +3 13341 2026-03-20 3/150 2026-03-21 18:28 by 学员8dgXkO
[考研] 求调剂 +3 白QF 2026-03-21 3/150 2026-03-21 13:12 by zhukairuo
[考研] 330求调剂0854 +3 assdll 2026-03-21 3/150 2026-03-21 13:01 by 搏击518
[考研] 316求调剂 +6 梁茜雯 2026-03-19 6/300 2026-03-21 06:32 by Ecowxq666!
[考研] 265求调剂 +3 Jack?k?y 2026-03-17 3/150 2026-03-21 03:17 by JourneyLucky
[考研] 324分 085600材料化工求调剂 +4 llllkkkhh 2026-03-18 4/200 2026-03-21 01:24 by JourneyLucky
[考研] 一志愿南京理工大学085701资源与环境302分求调剂 +4 葵梓卫队 2026-03-18 6/300 2026-03-20 23:02 by JourneyLucky
[考研] 求调剂,一志愿:南京航空航天大学大学 ,080500材料科学与工程学硕,总分289分 +4 @taotao 2026-03-19 4/200 2026-03-20 22:14 by JourneyLucky
[考研] 一志愿中南化学(0703)总分337求调剂 +8 niko- 2026-03-19 9/450 2026-03-20 21:57 by luoyongfeng
[考研] 0817 化学工程 299分求调剂 有科研经历 有二区文章 +22 rare12345 2026-03-18 22/1100 2026-03-20 20:39 by zhukairuo
[考研] 工科材料085601 279求调剂 +7 困于星晨 2026-03-17 9/450 2026-03-20 17:38 by 无懈可击111
[考研] 广西大学家禽遗传育种课题组2026年硕士招生(接收计算机专业调剂) +3 123阿标 2026-03-17 3/150 2026-03-20 15:58 by 飞行琦
[考研] 招收调剂硕士 +4 lidianxing 2026-03-19 12/600 2026-03-20 12:25 by lidianxing
[考研] 0854,计算机类招收调剂 +3 胡辣汤放糖 2026-03-15 6/300 2026-03-18 12:09 by 上岸上岸……..
[考研] 考研求调剂 +3 橘颂. 2026-03-17 4/200 2026-03-17 21:43 by 有只狸奴
信息提示
请填处理意见