24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1017  |  回复: 1

congmingbing

木虫 (正式写手)

[交流] 【求助】lammps计算heat/flux出错 已有1人参与

在lammps手册上看到了compute heat/flux command,用提供的输入文件执行,出错了,错误信息是
ERROR: Illegal compute heat/flux command,不知道这个错误怎么解决,感觉像是版本的问题。我用的lammps是在主页上下载的lammps-15Jan10.tar.gz,这个应该是最新版了吧。
刚开始学lammps,还请高手指点!万分感谢。
下面是in文件。
##################################

atom_style      atomic
units                 real
dimension        3
boundary        p p p
lattice         fcc  5.376  orient x 1 0 0 orient y 0 1 0 orient z 0 0 1
region          box block 0 4 0 4 0 4
create_box         1 box
create_atoms         1 box
mass                 1 39.948
pair_style        lj/cut 13.0
pair_coeff        * * 0.2381 3.405
group                 every region box
velocity         all create 70 102486 mom yes rot yes dist gaussian
timestep         4.0
thermo                10

# ------------- Equilibration and thermalisation ----------------

fix                 NPT all npt 70 70 10 xyz 0.0 0.0 100.0 drag 0.2
run                 8000
unfix           NPT

# --------------- Equilibration in nve -----------------

fix                 NVE all nve
run                 8000

# -------------- Flux calculation in nve ---------------

reset_timestep  0
compute                myKE all ke/atom
compute                myPE all pe/atom
compute                myStress all stress/atom virial
compute         flux all heat/flux myKE myPE myStress
log             flux.log
variable        J equal c_flux[1]/vol
thermo_style         custom step temp v_J
run                 100000
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

congmingbing

木虫 (正式写手)

换了最新的版本,解决了。呵呵
2楼2010-06-17 19:32:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 congmingbing 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 283分求调剂 +10 试试看呗 2026-04-04 10/500 2026-04-06 23:08 by chenzhimin
[考研] 301求调剂 +14 121. 2026-04-04 14/700 2026-04-06 22:52 by qlm5820
[考研] 287分求调剂 有专利国奖一志愿哈工大085406 +6 白易辰 2026-04-06 7/350 2026-04-06 22:46 by 875465
[考研] 一志愿华东理工085601材料工程303分求调剂 +6 a1708 2026-04-06 6/300 2026-04-06 22:37 by guanxin1001
[考研] 调剂求助(生物与医药) +3 @6952 2026-04-06 3/150 2026-04-06 21:48 by Ecowxq666!
[考研] 327求调剂 +5 Xxjc1107. 2026-04-06 5/250 2026-04-06 21:43 by dongzh2009
[考研] 0703化学调剂 348分 +7 唉我超真没招了 2026-04-06 7/350 2026-04-06 19:50 by lijunpoly
[考研] 22408 331分求调剂 +4 y__1 2026-04-06 4/200 2026-04-06 17:26 by 土木硕士招生
[考研] 复试调剂 +8 春日来信- 2026-04-03 8/400 2026-04-05 18:58 by 蓝云思雨
[考研] 08专硕275调剂 +5 AaAa7420 2026-04-05 5/250 2026-04-05 18:01 by jkddd
[考研] 341求调剂 +3 学无止境,冲 2026-04-05 3/150 2026-04-05 09:40 by lbsjt
[考研] 材料与化工306分找调剂 +23 沧海轻舟e 2026-04-02 27/1350 2026-04-04 21:52 by laoshidan
[考研] 292求调剂 +11 2022080213 2026-04-04 13/650 2026-04-04 18:38 by macy2011
[考研] 一志愿中国石油大学化学工程323分求调剂 +4 化工专硕323分 2026-04-03 6/300 2026-04-03 22:12 by dongzh2009
[考研] 335求调剂 +7 沈清璃 2026-04-03 7/350 2026-04-03 18:55 by lijunpoly
[考研] 320求调剂 +5 振—TZ 2026-04-02 5/250 2026-04-03 14:42 by fxue1114
[考研] 一志愿陕西师范大学生物学317分 +5 1563日。 2026-04-02 5/250 2026-04-03 06:58 by ilovexiaobin
[考研] 272求调剂,接受跨专业调剂! +4 闲鱼卢 2026-03-31 4/200 2026-04-02 11:18 by guyan1000
[考研] 348环境工程调剂 +3 吴彦祖24k 2026-04-01 3/150 2026-04-02 09:14 by nanaliuyun
[考研] 292求调剂 +17 木虫er12138 2026-04-01 17/850 2026-04-01 21:37 by 七度不信任
信息提示
请填处理意见