24小时热门版块排行榜    

Znn3bq.jpeg
汕头大学海洋科学接受调剂
查看: 1867  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 生物学调剂 +11 小冉要努力 2026-04-10 13/650 2026-04-13 11:46 by 电化学及催化
[考研] 279求调剂 +9 张番茄不炒蛋 2026-04-11 9/450 2026-04-12 22:22 by paopaotu326
[基金申请] 山东省基金2026 +5 jerry681 2026-04-08 6/300 2026-04-12 08:33 by kudofaye
[考研] 331求调剂 +5 王国帅 2026-04-11 5/250 2026-04-11 22:56 by 溪涧流水
[考研] 调剂 +4 电气300求调剂不 2026-04-08 7/350 2026-04-11 10:44 by 紫曦紫棋
[考研] 085500求调剂材料 +10 易11122 2026-04-09 10/500 2026-04-11 10:39 by maddjdld
[考研] 中药学调剂 初试324 +4 洋甘菊、 2026-04-10 6/300 2026-04-11 09:41 by gong120082
[考研] 287求调剂 +15 Fnhc 2026-04-07 21/1050 2026-04-10 19:09 by chemisry
[考研] 求调剂 +5 不会飞的鱼@ 2026-04-10 5/250 2026-04-10 19:07 by chemisry
[考研] 085404 298分求调剂 +10 呼啦呼啦呼呼呼 2026-04-10 11/550 2026-04-10 16:44 by wangy0907
[考研] 一志愿中科院105500专业总分315求调剂 +6 lallalh 2026-04-09 7/350 2026-04-09 17:51 by lallalh
[考研] 0860004 求调剂 309分 +6 Yin DY 2026-04-09 6/300 2026-04-09 10:19 by 啊李999
[考研] 334求调剂 +16 Riot2025 2026-04-08 17/850 2026-04-09 09:28 by wdyheheeh
[考研] 求调剂 +13 柒luck 2026-04-07 13/650 2026-04-08 22:46 by 猪会飞
[考研] 331求调剂 +5 luoxin0706. 2026-04-08 5/250 2026-04-08 22:15 by zhouyuwinner
[考研] 一志愿吉大化学327求调剂 +12 王王白石 2026-04-06 13/650 2026-04-08 16:05 by luoyongfeng
[考研] 22408 266求调剂 +11 masss11222 2026-04-07 14/700 2026-04-08 11:06 by yulian1987
[考研] 材料调剂 +13 汉123456 2026-04-07 14/700 2026-04-07 22:53 by 来看流星雨10
[考研] 一志愿西电085401求调剂 +4 sunw1306 2026-04-07 4/200 2026-04-07 16:40 by 啵啵啵0119
[考研] 325 调剂 +6 QQ小虾 2026-04-07 6/300 2026-04-07 15:17 by Ccclqqq
信息提示
请填处理意见