24小时热门版块排行榜    

查看: 1984  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 面上函评意见出来了,像什么等级? 20+4 Tsingking1 2026-08-27 17/850 2026-09-01 19:51 by 超级无敌华子
[基金申请] 为什么国自然不能直接公布 +5 bjdxyxy 2026-08-26 5/250 2026-09-01 17:54 by 小伟大博士
[文学芳草园] 梦想 +5 myrtle 2026-08-26 7/350 2026-09-01 15:18 by myrtle
[基金申请] 学科评审组评审是指会评吗? +4 瞬息宇宙 2026-08-31 4/200 2026-09-01 14:58 by jiaoxg
[基金申请] 面上合作单位盖章 +5 ssyjh 2026-08-27 8/400 2026-09-01 12:58 by ssyjh
[基金申请] 麻烦专家们看看评委们的意见(F口面上) +7 gdd2018 2026-08-28 12/600 2026-09-01 08:32 by 尼古拉斯小虫
[基金申请] 怎么看青基中了没有啊 +6 叶九微 2026-08-26 6/300 2026-08-31 23:54 by yudaoqian88
[基金申请] 国社科又开始会评了,不知道这次命运如何 +7 雨打竹帘 2026-08-30 11/550 2026-08-31 23:16 by hittle2008
[基金申请] 投票:  有多少人是今天查系统知道结果的? +17 爱看书的可乐 2026-08-26 19/950 2026-08-31 21:30 by xiangy672
[基金申请] 面上意见出来了 +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
[基金申请] 基金不中,共勉 +12 eulota 2026-08-26 12/600 2026-08-31 08:42 by ZJTJZ
[基金申请] 有没有仍没收到信息的 +7 德尚中行 2026-08-27 8/400 2026-08-30 20:52 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
[基金申请] 看板上这么多中的,有点像50人群里49个人都是骗子的那种感觉…… +5 a089 2026-08-26 6/300 2026-08-27 14:05 by jonewore
[基金申请] 2026年8月25日国自然放榜前突然收到列入评审专家邮件,有关系吗? +25 木水思豆 2026-08-25 28/1400 2026-08-26 14:53 by draco1987
[基金申请] 项目信息和经费信息在系统里都可以看到了 +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
信息提示
请填处理意见