24小时热门版块排行榜    

查看: 2384  |  回复: 1

yaohonghao

金虫 (小有名气)

[求助] Invalid attribute in dump custom command问题求助 已有1人参与

本人毕业设计做界面力学性能模拟,使用候怀宇和张新平老师编写的《材料科学与工程中的计算机应用》学习LAMMPS。
练习例5-3 Cu晶体拉伸过程的分子动力学模拟时,出现了Invalid attribute问题。查看了manual中dump命令没有发现问题。
如果把dump删了程序就出现Invalid Syntax in variable formula错误
求各位大神抽空帮个忙看看~~~
# ------------------------ INITIALIZATION ----------------------------
units                metal
atom_style        atomic
boundary         p p p

# ----------------------- ATOM DEFINITION ----------------------------
variable         a equal 3.615
lattice         fcc $a
region                 mybox block 0 10 0 6 0 6
create_box         1 mybox
create_atoms        1 box

# ------------------------ FORCE FIELDS ------------------------------
pair_style         eam
pair_coeff        1 1 Cu_u3.eam

# ------------------------- SETTINGS ---------------------------------

timestep         0.001
thermo                 200
thermo_style        custom step temp pe vol lx ly lz press
velocity         all create 300 72437 dist gaussian
fix                 1 all npt temp 300 300 0.5 iso 0 0 0.8 drag 1.0
run                 3000
unfix                 1
variable         L equal lx
variable        L0 equal $L
reset_timestep 0
fix                 npt all npt temp 300 300 0.5 y 0 0 0.8 z 0 0 0.8 drag 1.0

fix                 def  all deform 1 x erate 0.005 units box remap x

variable        ss equal (lx-${L0}/)/${L0}
variable         p1 equal v_ss
variable         p11 equal -pxx
variable         p22 equal -pyy
variable         p33 equal -pzz

compute                 p all pe/atom
compute         cs all centro/atom fcc
compute                s all stress/atom NULL

thermo                 1000
thermo_style         custom step temp v_ss v_p11 v_p22 v_p33 pe etotal lx press

dump                 1 all cfg 200 cu * .cfg mass type xs ys zs id c_p c_cs c_s[1] c_s[2] c_s[3]
dump_modify         1 element Cu

fix                 pp all print 100 "${p1} ${p11} ${p22} ${p33}" file ex3_ss.txt screen no
run                  200
回复此楼

» 猜你喜欢

» 本主题相关商家推荐: (我也要在这里推广)

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

alundilong

木虫 (正式写手)

【答案】应助回帖

感谢参与,应助指数 +1
每个case运行都会产生日志文件log.lammps
打开log.lammps看看
看最后一行说啥
2楼2016-03-20 22:14:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 yaohonghao 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 为什么网上很多人说本周 12号出结果 +4 瞬息宇宙 2026-08-10 4/200 2026-08-11 02:02 by 旁观2020
[基金申请] 基金中了 +15 laoda193707 2026-08-06 15/750 2026-08-11 00:11 by jiafei2190
[基金申请] 帮忙看看fileCode +4 wwncly 2026-08-10 8/400 2026-08-10 22:07 by demonstreets
[基金申请] 确定了,国自然21号放榜 +6 布布和一二 2026-08-10 7/350 2026-08-10 19:15 by 2000zf36392
[基金申请] 关于代码变化问题,想知道的进来 +17 且听虎啸 2026-08-07 24/1200 2026-08-10 18:35 by zhangduo2008
[基金申请] 静等基金结果 +5 gjjjzhong 2026-08-10 16/800 2026-08-10 17:19 by Tide man
[基金申请] 我的国基提前知道中了,可是同事的操作让我实在接受不了,怎么会有这样的人 +8 家与远方 2026-08-10 11/550 2026-08-10 17:09 by 六两废铜
[基金申请] 应该是93bebmhtak前后十一个字符比较关键 +14 Lanmanbaby 2026-08-09 22/1100 2026-08-10 14:57 by wwncly
[基金申请] 好奇怪的filecode +4 布布和一二 2026-08-08 5/250 2026-08-10 14:20 by 冰心玉壶晴
[基金申请] 据悉今年马上要出结果了 +7 瞬息宇宙 2026-08-10 8/400 2026-08-10 12:42 by Vivilian
[基金申请] 这样的filecode谁见过 +11 布布和一二 2026-08-08 22/1100 2026-08-10 11:10 by wmfsnow
[基金申请] 面上项目filecode邪修 +5 西山十月 2026-08-09 7/350 2026-08-10 07:32 by 仁砚薪传
[基金申请] filecode与中标关系的预测 +5 布布和一二 2026-08-07 5/250 2026-08-09 16:15 by 袁向阳007
[基金申请] 关于filecode,很负责任的告诉大家 +6 爱看书的可乐 2026-08-08 7/350 2026-08-08 22:13 by a_niu
[基金申请] 国基金的申报应该改成非等额制,评价高的钱多评价低的钱少,但是增加资助率 +7 a089 2026-08-07 7/350 2026-08-08 18:05 by gltch
[基金申请] 关于filecode +4 布布和一二 2026-08-07 7/350 2026-08-07 22:55 by zhanghaozhu
[基金申请] 化学口download_prp&fileCode的固定段好像这几天一直没变,有变的大神么? +3 Tide man 2026-08-07 4/200 2026-08-07 22:39 by Tide man
[基金申请] 固定端突然变了,今天 +6 archvillain 2026-08-06 10/500 2026-08-07 16:03 by 医学老男孩
[基金申请] filecode变化情况 +6 布布和一二 2026-08-07 22/1100 2026-08-07 14:45 by 且听虎啸
[基金申请] 纯娱乐,不喜欢勿喷 +7 Tide man 2026-08-04 10/500 2026-08-04 15:10 by loufangrui
信息提示
请填处理意见