24小时热门版块排行榜    

Znn3bq.jpeg
查看: 603  |  回复: 3

yangwenbin99

铜虫 (小有名气)

[求助] 运行错误指正

LAMMPS (7 Jul 2009)
include in.shear
# 3d metal compression

units           metal

boundary        p p s

atom_style      atomic

lattice         fcc 4.08
Lattice spacing in x,y,z = 4.08 4.08 4.08

region          up block -7 6.8 -8 7.8 0 80

region          both block -28.56 28.56 -32.8 31.7 -10 400 units box

create_box      1 both
Created orthogonal box = (-28.56 -32.8 -10) to (28.56 31.7 400)
  1 by 1 by 1 processor grid

create_atoms    1 region up
Created 72128 atoms

mass            * 196.97

# EAM potentials

pair_style      eam

pair_coeff      * * au_u3.eam

neighbor        2 bin

neigh_modify    delay 5

region          1 block INF INF INF INF INF 4 units box

region          2 block INF INF INF INF 316 INF units box

group           bottom region 1
896 atoms in group bottom

group           top region 2
2688 atoms in group top

group           mobile subtract all bottom top
68544 atoms in group mobile

# equilibrate

fix             1 bottom setforce 0.0 0.0 0.0

fix             2 top setforce 0.0 0.0 0.0

compute         new3d mobile temp

compute         new1 all centro/atom

compute         new2 all stress/atom

compute         new3 all pressure new3d

timestep        0.001

dump            all all custom 500 dump.indent.* tag  x y z fz type c_new1 c_new2[1] c_new2[2] c_new2[3]
ERROR: Invalid keyword in dump custom command
我改了好多次就是不行,太不熟悉了,各位学长指点我一下吧,我没信心了,不知如何入手
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ddll_slsl

木虫 (正式写手)

【答案】应助回帖

★ ★
感谢参与,应助指数 +1
jiaoyixiong: 金币+2, 鼓励交流 2012-12-20 10:45:47
dump里面2个 all, 当然错误了。 你必须先仔细阅读手册,熟悉软件的应用。
2楼2012-12-20 09:10:16
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

luxujie3

金虫 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
对的,你的命令书写错误了,楼主可以把第一个all 改成数字,意思就是你使用dump命令一个编号,如1 、2等就可以了
3楼2012-12-21 13:55:05
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yangwenbin99

铜虫 (小有名气)

# 3d metal compression

units           metal

boundary        p p s

atom_style      atomic

lattice         fcc 4.08

region          up block -7 6.8 -8 7.8 0 80

region          both block -28.56 28.56 -32.8 31.7 -10 400 units box

create_box      1 both

create_atoms    1 region up

mass            * 196.97

# EAM potentials

pair_style      eam

pair_coeff      * * au_u3.eam

neighbor        2 bin

neigh_modify    delay 5

region          1 block INF INF INF INF INF 4 units box

region          2 block INF INF INF INF 316 INF units box

group           bottom region 1

group           top region 2

group           mobile subtract all bottom top

# equilibrate

fix             1 bottom setforce 0.0 0.0 0.0

fix             2 top setforce 0.0 0.0 0.0

compute         new3d mobile temp

compute         new1 all centro/atom

compute         new2 all stress/atom

compute         new3 all pressure new3d

timestep        0.001

dump           1 all custom 500 dump.indent.* tag type x y z fz c_new1 c_new2               [1] c_new2[2] c_new2[3]
minimize        1.0e-8 1.0e-8 1000 10000

# equilibrate

velocity        mobile create 300 5812775 temp new3d

fix             3 all nve

fix             4 mobile temp/rescale 100 300 300 10 1.0

fix_modify      4 temp new3d

thermo          100

thermo_style    custom step etotal temp press pzz pxx pyy pxy pxz pyz

thermo_modify   temp new3d

dump_modify     output every 100

run             10000

# addforce

unfix           1

unfix           2

fix             12 top setforce 0.0 0.0 0.0

fix             5 bottom setforce 0 0 3

run             3000

unfix           5

run             20000



学长你看上面是我的程序,all改成了数字,可是运行时又出现了ERROR: Invalid keyword in dump custom command
我看了手册也不会,求学长帮忙
4楼2012-12-21 16:52:15
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 yangwenbin99 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 评审有感 +14 popular289 2026-05-18 23/1150 2026-05-20 17:39 by lincyb
[基金申请] 面上本子正文33页,违规吗?会被低分嘛? +10 1234567wang 2026-05-17 12/600 2026-05-20 16:48 by metal_D
[论文投稿] Sci. Bull. 悲剧经验 +6 jyang1999 2026-05-16 7/350 2026-05-20 16:39 by feng6531
[基金申请] 今年审到国自然15份,谈谈感受 +19 国自然国社科中 2026-05-17 20/1000 2026-05-20 14:14 by 仲夏夜的星星
[基金申请] 国自然评分 +3 无名者登山 2026-05-20 4/200 2026-05-20 13:29 by vito刘
[有机交流] 反应很差,大量原料没有反应 5+3 Mr.Zot 2026-05-19 6/300 2026-05-20 10:36 by xtlilibin
[考博] 如果工作了想读博,可以边工作边读全日制嘛? 30+3 铁达火车 2026-05-18 5/250 2026-05-20 09:33 by tfang
[有机交流] 如何实现卤原子转化 +3 BT20230424 2026-05-15 8/400 2026-05-20 09:32 by xtlilibin
[文学芳草园] 献血感触 +6 呀呀好傻 2026-05-19 11/550 2026-05-19 22:26 by 而立得乐
[考博] 云南大学材料与能源学院解琳课题组钙钛矿博士招生 +3 光伏爱好者 2026-05-17 5/250 2026-05-19 19:13 by 光伏爱好者
[基金申请] 2026山东省优青 +3 luckinging 2026-05-14 4/200 2026-05-19 16:15 by 52wls
[考博] 找博士生导师 +6 小代想上岸 2026-05-15 7/350 2026-05-19 10:22 by free_fisher
[基金申请] 别被青基扩招骗了!26年科研内卷才刚刚开始 +3 国自然国社科中 2026-05-14 4/200 2026-05-19 08:48 by archvillain
[考博] 2026博士还有哪些学校有名额 +7 小王求读研 2026-05-15 8/400 2026-05-19 08:27 by zhyzzh
[考博] 博士申请 +5 星…… 2026-05-18 6/300 2026-05-18 23:49 by 糊糊涂涂好
[基金申请] 国自然上会要求 +5 无名者登山 2026-05-18 9/450 2026-05-18 17:50 by BlakeReary
[硕博家园] 我在等一个没有答案的答案 +3 Love_MH 2026-05-17 3/150 2026-05-18 02:22 by 竹林孤影
[文学芳草园] 半夜喝咖啡 +3 myrtle 2026-05-15 5/250 2026-05-18 01:03 by 小沈2018
[考博] 光量子物理方向 博士招生 1人(2026.09) +3 sandyworld 2026-05-15 4/200 2026-05-17 14:38 by sandyworld
[有机交流] 求助2,4-二氯-5-嘧啶甲醛的合成方法 20+3 光吃不拉 2026-05-14 6/300 2026-05-16 19:46 by Equinoxhua
信息提示
请填处理意见