24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 2126  |  回复: 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的回帖

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

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的回帖
相关版块跳转 我要订阅楼主 vampirherz 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿:西北大学,英一数一408-284分求调剂 +7 12.27 2026-03-27 7/350 2026-03-31 21:59 by lbsjt
[考研] 一志愿北京科技大学085601材料工程英一数二初试总分335求调剂 +4 双马尾痞老板2 2026-03-31 4/200 2026-03-31 21:08 by Wang200018
[考研] 352分-085602-一志愿985 +6 海纳百川Ly 2026-03-29 6/300 2026-03-31 21:06 by yuq
[考研] 材料科学与工程339求调剂 +3 hyz0119 2026-03-31 3/150 2026-03-31 18:31 by 1939136013狗壮
[考研] 085600,321分求调剂 +7 大馋小子 2026-03-31 7/350 2026-03-31 18:02 by 无际的草原
[考研] 362求调剂 +9 西南交材料专硕3 2026-03-31 9/450 2026-03-31 16:25 by w虫虫123
[考研] 353求调剂 +3 江上枫_26 2026-03-28 3/150 2026-03-31 15:53 by jp9609
[考研] 生物考研337分求调剂 +4 cgxin 2026-03-30 6/300 2026-03-31 14:18 by 记事本2026
[考研] 土木304求调剂 +4 兔突突突, 2026-03-31 5/250 2026-03-31 11:29 by 北风之神.
[考研] 276求调剂 +3 赵久华 2026-03-29 3/150 2026-03-31 10:06 by cal0306
[考研] 材料与化工调剂一志愿大连海事085600,349 +6 吃的不少 2026-03-30 6/300 2026-03-31 04:17 by fmesaito
[考研] 370求调剂 +3 080700调剂 2026-03-30 3/150 2026-03-31 01:09 by A_Zhe
[考研] 083000环境科学与工程调剂,总分281 +4 橙子(胜意) 2026-03-30 4/200 2026-03-31 00:44 by Linzejun
[考研] 生物学学硕,一志愿湖南大学,初试成绩338 +7 YYYYYNNNNN 2026-03-26 9/450 2026-03-30 20:29 by YYYYYNNNNN
[考研] 0703化学/290求调剂/本科经历丰富/工科也可 +13 丹青奶盖 2026-03-26 15/750 2026-03-30 12:35 by fangnagu
[考研] 343求调剂 +6 爱羁绊 2026-03-29 6/300 2026-03-29 12:00 by 无际的草原
[考研] 材料与化工(0856)304求B区调剂 +8 邱gl 2026-03-27 8/400 2026-03-28 12:42 by 唐沐儿
[考研] 一志愿南京航空航天大学材料学硕求调剂 +3 @taotao 2026-03-28 3/150 2026-03-28 10:26 by JourneyLucky
[考研] 085405 考的11408求各位老师带走 +3 Qiu学ing 2026-03-28 3/150 2026-03-28 09:19 by 乐呵呵的追梦人
[考研] 295求调剂 +5 1428151015 2026-03-27 6/300 2026-03-28 04:04 by fmesaito
信息提示
请填处理意见