24小时热门版块排行榜    

查看: 1981  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[论文投稿] 小白求助 投论文要求的highlights应该如何写 5+3 l1963982152 2026-08-29 4/200 2026-09-01 09:04 by 北京莱茵编辑
[基金申请] 面上函评意见出来了,像什么等级? 20+3 Tsingking1 2026-08-27 14/700 2026-09-01 08:29 by 尼古拉斯小虫
[基金申请] 国社科又开始会评了,不知道这次命运如何 +7 雨打竹帘 2026-08-30 11/550 2026-08-31 23:16 by hittle2008
[基金申请] 基金未中,这种答复是模板吗? +6 zhaosm1982 2026-08-27 7/350 2026-08-31 21:18 by qdxxmc
[基金申请] 面上意见出来了 +12 黄鸟于飞Chao 2026-08-29 23/1150 2026-08-31 18:57 by 黄鸟于飞Chao
[基金申请] 中青基了要发朋友圈吗? +7 349506619 2026-08-28 7/350 2026-08-31 13:39 by 冼亮淀粉酶
[基金申请] 29号明天会评吗 +4 笨笨唐 2026-08-28 4/200 2026-08-31 09:30 by huixian257
[基金申请] 为什么到现在没收到通知? +5 tannykie 2026-08-29 5/250 2026-08-30 21:05 by purplejack
[考博] 找导师 +6 yuanjiabao 2026-08-29 7/350 2026-08-30 14:40 by 生科新手
[基金申请] 我就是申请一个面上项目而已,这评审意见是按照杰青的条件评的吧? +6 gouxfjh 2026-08-28 11/550 2026-08-30 07:57 by gouxfjh
[基金申请] 国自然评审意见 +13 wangmingqi 2026-08-28 19/950 2026-08-29 10:22 by Poppy1104
[基金申请] 为什么资助数各大高校都创新高,自己申请怎么就这么难 +12 Kittylucky 2026-08-27 13/650 2026-08-29 00:04 by superceng
[基金申请] 系统查不到 +11 董八千 2026-08-26 11/550 2026-08-28 18:06 by Leogzhya
[基金申请] 我不理解! +15 Edward_pc 2026-08-26 23/1150 2026-08-26 20:34 by zzuzxg
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 国合里面能看到了 +7 一怀馨秋 2026-08-26 7/350 2026-08-26 11:23 by zhaosm1982
[基金申请] 项目信息和经费信息在系统里都可以看到了 +6 wittyboy 2026-08-26 14/700 2026-08-26 10:55 by wittyboy
[基金申请] 国合可查了 +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[基金申请] 牛来!米来!面来! +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
[基金申请] 某些机构,以效率低为荣,以效率低作为存在感 +9 yuleib84 2026-08-25 10/500 2026-08-25 17:14 by alexon
信息提示
请填处理意见