24小时热门版块排行榜    

查看: 1965  |  回复: 3

ppkdcsldy

新虫 (初入文坛)

[求助] lammps计算导热率老是出错求助 已有1人参与

求助,lammps新手,背景想要计算铜热导率,过程是給一块铜加热,一块受热,求受热铜热导率,不知道编写过程有什么问题,在thermo_style custom step temp  v_k这一步之后老是出现Step Temp k ,全部家当就5个金币,全部送了- -鞠躬
ERROR: Variable formula fix array is accessed out-of-range (variable.cpp:2912)
而且fix nve 之后计算步数超过十万步后会跑原子,求助
dimension           3
boundary           p f p
units                   metal
atom_style           atomic
neigh_modify   delay 0 every 1
#convert units
variable kB equal 1.3806504e-23  #[J/K] Boltzmann
variable eV equal 1.602e-19 #[J]
variable Am equal 1.0e-10 #[m]
variable ps equal 1.0e-12 #[s]
variable convert equal ${eV}/${ps}/${Am}
lattice     fcc 3.6149 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1
region      box block 0 6 -2 10 0 6 units box
create_box  1 box
mass        1 63.546
pair_style  eam
pair_coeff  1 1 Cu_u3.eam

region      dx block INF INF 0 3.6149 INF INF units box
create_atoms 1 region dx
group    dx1 region dx
region      sm block INF INF 4.0 10 INF INF units box
create_atoms 1 region sm
group    sm1 region sm
region      dxx block INF INF -1.5 0 INF INF units box
create_atoms 1 region dxx
group    dxx1 region dxx

fix                walls all wall/reflect yhi 10 units box

fix                30 dxx1 setforce 0.0 0.0 0.0

#some setting

velocity all create 273 289956
fix      a all nvt temp 273 273 0.2
timestep        0.001
thermo                1000

thermo_style         custom step  etotal enthalpy temp press
run      10000
#compute
variable v equal 216
variable T equal 313.15
variable s equal 10
variable ts equal 0.001
unfix    a  
fix      b dx1 nvt temp 313.15 313.15 0.2
fix      c sm1 nve
compute  KE sm1 ke/atom
variable TMP atom c_KE/0.0001292355
compute  PE sm1 pe/atom
compute  Stress sm1 stress/atom virial
compute  flux sm1 heat/flux KE PE Stress
#variable Jy equal c_flux[2]/$v
fix      JJ sm1 ave/correlate 10 200 2000 &
         c_flux[2] type auto file HEATFLUX.dat ave running
variable scale equal ${convert}/${kB}/$T/$T/$v*$s*${ts}
variable k equal trap(f_JJ[4])*${scale}
thermo_style custom step temp  v_k
fix      AT sm1 ave/spatial 1 400 1000 y 4.0 0.1 v_TMP file tmp.profile units box
run 90000
print "$k"@smutao@oxox6085
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xiamomengjie

新虫 (小有名气)

您好,lammps计算结果对材料的实际导热率有指导意义吗?除了铜,不知道你还有没算过其它材料的导热率?我不懂编程,但是很希望了解各种材料的导热率。
2楼2017-03-28 20:39:43
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

pgohi

至尊木虫 (著名写手)

对着说明书缺认一下命令格式,

发自小木虫Android客户端
3楼2017-03-28 21:45:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

长~吻海蛇

铜虫 (初入文坛)

【答案】应助回帖

这你得贴出出的是什么错误啊,运行后的最后一行都写着的
4楼2017-05-06 16:13:14
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 ppkdcsldy 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 Vi50GxzrFcSG 2026-08-07 6/300 2026-08-08 10:19 by 3OOjAIS77qg2
[硕博家园] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 HEQlVqMTIA7d 2026-08-07 5/250 2026-08-08 08:59 by 6vVgjDL4CnGu
[基金申请] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 KXLV3nuBVBY7 2026-08-07 4/200 2026-08-08 08:21 by 6vVgjDL4CnGu
[基金申请] 基金中了 +14 laoda193707 2026-08-06 14/700 2026-08-08 00:23 by 实验小白ha
[基金申请] 娱乐 +6 Tide man 2026-08-03 6/300 2026-08-07 22:40 by 铁帽子农民
[基金申请] 化学口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变了 +24 布布和一二 2026-08-06 47/2350 2026-08-07 16:02 by zhiyanjiang
[基金申请] filecode与中标关系的预测 +3 布布和一二 2026-08-07 3/150 2026-08-07 15:09 by gltch
[基金申请] filecode变化情况 +6 布布和一二 2026-08-07 22/1100 2026-08-07 14:45 by 且听虎啸
[论文投稿] 十年后又回来了,论文投稿求助 +4 哈哈114477 2026-08-01 4/200 2026-08-07 14:39 by jgy194592
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 7/350 2026-08-07 13:11 by 医学老男孩
[基金申请] 关于豆爷回答的JTJC与%2F数量 +4 yang182083 2026-08-06 6/300 2026-08-07 12:43 by 虫友是什么虫
[基金申请] filecode +14 等待解的谜 2026-08-06 19/950 2026-08-07 12:20 by wlwhappy
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
[基金申请] 8月时间戳变的,举个手。玩一下,释放压力 +9 archvillain 2026-08-04 11/550 2026-08-05 20:06 by wlwhappy
[考博] 【2027博士申请】纳米药物递送方向 20+3 13586093586 2026-08-03 4/200 2026-08-05 09:59 by lfy8008
[基金申请] 纯娱乐,不喜欢勿喷 +7 Tide man 2026-08-04 10/500 2026-08-04 15:10 by loufangrui
[基金申请] 面上提前没消息,有中的吗 +14 archvillain 2026-08-02 18/900 2026-08-04 14:42 by archvillain
[基金申请] 什么时候能放榜呀? +3 Jacob678 2026-08-03 3/150 2026-08-03 16:14 by gltch
信息提示
请填处理意见