24小时热门版块排行榜    

查看: 577  |  回复: 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的回帖

luxujie3

金虫 (著名写手)

【答案】应助回帖

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

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的回帖

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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 北科281学硕材料求调剂 +8 tcxiaoxx 2026-03-20 9/450 2026-03-23 12:16 by tcxiaoxx
[考研] 306求调剂 +7 chuanzhu川烛 2026-03-18 7/350 2026-03-23 09:22 by king123!
[考研] 一志愿东华大学化学070300,求调剂 +7 2117205181 2026-03-21 8/400 2026-03-22 22:55 by chixmc
[考研] 310求调剂 +4 baibai1314 2026-03-16 4/200 2026-03-22 20:19 by edmund7
[考研] 298求调剂一志愿211 +3 上岸6666@ 2026-03-20 3/150 2026-03-22 15:50 by ColorlessPI
[考研] 260求调剂 +3 朱芷琳 2026-03-20 4/200 2026-03-22 15:12 by 朱芷琳
[考研] 广西大学材料导师推荐 +3 夏夏夏小正 2026-03-17 5/250 2026-03-21 22:20 by 金昊ML
[考研] 材料求调剂 +5 @taotao 2026-03-21 5/250 2026-03-21 20:55 by lbsjt
[考研] 考研调剂 +3 呼呼?~+123456 2026-03-21 3/150 2026-03-21 20:04 by 无际的草原
[考研] 求调剂 +3 .m.. 2026-03-21 4/200 2026-03-21 16:25 by barlinike
[考研] 材料工程(专)一志愿985 初试335求调剂 +3 hiloiy 2026-03-17 4/200 2026-03-21 03:04 by JourneyLucky
[考研] 271材料工程求调剂 +8 .6lL 2026-03-18 8/400 2026-03-21 00:58 by JourneyLucky
[考研] 一志愿重庆大学085700资源与环境专硕,总分308求调剂 +3 墨墨漠 2026-03-18 3/150 2026-03-21 00:39 by JourneyLucky
[考研] 274求调剂 +10 S.H1 2026-03-18 10/500 2026-03-20 23:51 by JourneyLucky
[考研] 350求调剂 +5 weudhdk 2026-03-19 5/250 2026-03-20 22:04 by luoyongfeng
[考研] 0817 化学工程 299分求调剂 有科研经历 有二区文章 +22 rare12345 2026-03-18 22/1100 2026-03-20 20:39 by zhukairuo
[考研] 一志愿中国海洋大学,生物学,301分,求调剂 +5 1孙悟空 2026-03-17 6/300 2026-03-19 23:46 by zcl123
[考研] 0703化学调剂 +4 18889395102 2026-03-18 4/200 2026-03-19 16:13 by 30660438
[考研] 0703化学调剂 +5 pupcoco 2026-03-17 8/400 2026-03-19 13:58 by houyaoxu
[硕博家园] 湖北工业大学 生命科学与健康学院-课题组招收2026级食品/生物方向硕士 +3 1喜春8 2026-03-17 5/250 2026-03-17 17:18 by ber川cool子
信息提示
请填处理意见