24小时热门版块排行榜    

Znn3bq.jpeg
查看: 1219  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考博] 博士申请 +5 星…… 2026-05-18 6/300 2026-05-18 23:49 by 糊糊涂涂好
[基金申请] 面上本子正文33页,违规吗?会被低分嘛? +8 1234567wang 2026-05-17 10/500 2026-05-18 18:52 by zzahkj
[基金申请] 今年审到国自然15份,谈谈感受 +16 国自然国社科中 2026-05-17 16/800 2026-05-18 14:58 by gy116024
[教师之家] 上海大学实验技术岗位非升即走 +8 嘻嘻哈哈乐呵呵 2026-05-15 8/400 2026-05-18 11:53 by ning312
[基金申请] 青C资助名额大幅增加! +12 西葫芦炒鸡蛋 2026-05-13 16/800 2026-05-18 10:02 by Equinoxhua
[硕博家园] 我在等一个没有答案的答案 +3 Love_MH 2026-05-17 3/150 2026-05-18 02:22 by 竹林孤影
[找工作] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +4 ky2p12rrjj 2026-05-15 4/200 2026-05-17 19:47 by Equinoxhua
[硕博家园] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +6 l7k6xnh0yc 2026-05-14 7/350 2026-05-17 19:42 by Equinoxhua
[找工作] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +5 l7k6xnh0yc 2026-05-14 5/250 2026-05-17 19:39 by Equinoxhua
[考博] 找博士生导师 +4 小代想上岸 2026-05-15 5/250 2026-05-17 17:44 by 脱颖而出
[考博] 2026博士还有哪些学校有名额 +6 小王求读研 2026-05-15 7/350 2026-05-17 16:54 by 知音湖畔
[考博] 26/27博士推荐 +3 1木头人13949 2026-05-13 3/150 2026-05-17 09:41 by YuY66
[找工作] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +3 l7k6xnh0yc 2026-05-14 6/300 2026-05-17 07:31 by 11n4dfd8yn
[考研] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +4 l7k6xnh0yc 2026-05-14 8/400 2026-05-17 07:26 by 11n4dfd8yn
[考博] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +6 l7k6xnh0yc 2026-05-14 6/300 2026-05-17 07:11 by 11n4dfd8yn
[硕博家园] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +5 cjf4bx70cj 2026-05-14 7/350 2026-05-17 06:55 by 11n4dfd8yn
[博后之家] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +4 k37jurhrau 2026-05-16 4/200 2026-05-17 01:35 by ue3ir18jc3
[考研] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +3 ky2p12rrjj 2026-05-15 4/200 2026-05-17 00:50 by ue3ir18jc3
[硕博家园] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +3 ky2p12rrjj 2026-05-15 3/150 2026-05-17 00:45 by ue3ir18jc3
[论文投稿] 求助大佬sci投稿哪个好中 +3 江沅188 2026-05-12 4/200 2026-05-13 14:35 by 江沅188
信息提示
请填处理意见