24小时热门版块排行榜    

查看: 2255  |  回复: 2
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

vampirherz

新虫 (初入文坛)

[求助] 老师给的程序一直提示Could not find compute stress/atom temperature ID 已有2人参与

in.crack文件和eam函数都是老师给的,用来检测LAMMPS是否成功安装,但是不知道为什么会出现ERROR:Could not find compute stress/atom temperature ID

in.crack 文件如下:
dimension 3
boundary  s  s  p

atom_style atomic
units metal

neighbor 2.0 bin
neigh_modify delay 5

lattice fcc 3.52 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1
region box block 0 100 0 50 -3 3
create_box 5 box
create_atoms 1 region box

mass *  58.71

pair_style  eam
pair_coeff * * Ni_u3.eam

region 1 block INF INF INF   1.50 INF INF
region 2 block INF INF  48.50 INF INF INF
region 3 block 98.50 INF  1.50 48.50 INF INF
region 4 block INF   1.50 1.50 48.50  INF INF
region 5 block 0.00 10.00 24.50 25.50 INF INF


group lower region 1
group upper region 2
group rightboundary region 3
group leftboundary  region 4

group boundary union lower upper
group mobile subtract all boundary

set group mobile type 1
set group lower type 2
set group upper type 3
set group rightboundary type 4
set group leftboundary  type 5

delete_atoms region 5

timestep 0.001
thermo 1000
thermo_style custom step cpu atoms temp lx ly etotal

compute temperature mobile temp
velocity mobile create  0.1E-04 5812775 temp temperature
thermo_modify temp temperature
thermo_modify norm yes

fix 1 all nve
fix 2 boundary setforce 0.0 0.0 0.0
fix 3 mobile temp/rescale  200  0.1E-04  0.1E-04  0.1E-07 1.0
fix_modify 3 temp temperature


min_style cg
minimize  0.1E-10 0.0  20000  100000

reset_timestep 0

fix 4  rightboundary setforce 0.0 NULL NULL

compute stress mobile stress/atom pair
compute displ mobile displace/atom
compute centro mobile centro/atom fcc
compute pe mobile pe/atom


dump 1 all cfg 1000 dump.*.cfg id type xs ys zs c_stress[2] c_displ[2] c_centro c_pe  



label loop
variable t loop 20
displace_atoms all ramp y -0.05 0.05 y 1.50 48.50
run 10000
next t
jump in.crack loop
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

alundilong

木虫 (正式写手)

【答案】应助回帖

感谢参与,应助指数 +1
版本问题。
compute ID group-ID stress/atom temp-ID keyword ...
你可以改成compute stress mobile stress/atom temperature pair
因为id为temperature的这个compute已经定义了,而且是对mobile这个group的,如下
compute temperature mobile temp
3楼2015-08-11 23:48:24
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 3 个回答

xbb20121991

银虫 (小有名气)

【答案】应助回帖

★ ★ ★ ★ ★
感谢参与,应助指数 +1
vampirherz: 金币+5 2015-08-14 00:09:57
compute stress mobile stress/atom pair 中的缺少temp-ID这一项。
你装的是最新版,可能就得添加上这一部分。
如果不定义就写Null,因为你算了temperature这个温度。也可以写上temperature。

老师的那个版本,可能命令不用这么写,所以就不会报错
2楼2015-08-11 10:57:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 7lpolszZVXgi 2026-08-14 6/300 2026-08-15 04:21 by 4wMiSEwB6436
[硕博家园] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +3 HFw0lei2R37i 2026-08-14 4/200 2026-08-15 04:17 by 4wMiSEwB6436
[考博] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +4 k0dTPqJtl0jt 2026-08-14 4/200 2026-08-15 01:40 by 4wMiSEwB6436
[基金申请] 各位道友,我要去昆明玩几天,回来见。 +7 Tide man 2026-08-14 8/400 2026-08-15 01:11 by arzu_hma
[论文投稿] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 HFw0lei2R37i 2026-08-14 5/250 2026-08-15 00:16 by 4wMiSEwB6436
[基金申请] 奇怪,两个人的filecode固定段从头到尾一模一样 +8 布布和一二 2026-08-10 11/550 2026-08-14 14:58 by Equinoxhua
[基金申请] 应该是93bebmhtak前后十一个字符比较关键 +23 Lanmanbaby 2026-08-09 37/1850 2026-08-14 13:40 by Equinoxhua
[论文投稿] 职称评审,求友友推荐见刊最快的期刊 +5 工厂打螺丝 2026-08-08 5/250 2026-08-14 11:03 by 玖戈弋
[硕博家园] 读博的好处 +4 lnee 2026-08-11 4/200 2026-08-14 10:20 by ahsoarli
[基金申请] FileCode能看出啥? +10 要乐观耀哥 2026-08-10 32/1600 2026-08-14 09:37 by 要乐观耀哥
[文学芳草园] 阿姨 +4 汪汪锅 2026-08-09 4/200 2026-08-13 19:43 by arzu_hma
[硕博家园] 一作与独作在应聘高校教师时区别大吗 +3 mbygzh 2026-08-08 4/200 2026-08-13 19:31 by 龙-樱
[基金申请] 分享一下我之前已中青C的计划书的filecode +4 布布和一二 2026-08-11 5/250 2026-08-13 12:56 by cratir
[基金申请] 结合人工智能,周易传统文化,filecode打分制来了,3分以上希望很大。 +3 Tide man 2026-08-12 4/200 2026-08-13 08:35 by ZJTJZ
[基金申请] 2019年青年基金涵评意见,大家看看几个A,几个B? +11 Tide man 2026-08-11 11/550 2026-08-13 07:35 by 撸猫猫
[基金申请] 确定了,国自然21号放榜 +6 布布和一二 2026-08-10 7/350 2026-08-10 19:15 by 2000zf36392
[基金申请] 国自然结果 +4 Vierhys 2026-08-10 8/400 2026-08-10 15:06 by Vierhys
[基金申请] 据悉今年马上要出结果了 +7 瞬息宇宙 2026-08-10 8/400 2026-08-10 12:42 by Vivilian
[基金申请] fileCode有新解读? +10 Tide man 2026-08-08 18/900 2026-08-09 12:55 by 仁砚薪传
[基金申请] 关于filecode,很负责任的告诉大家 +6 爱看书的可乐 2026-08-08 7/350 2026-08-08 22:13 by a_niu
信息提示
请填处理意见