lammps教程:模拟量实时显示之thermo_style custom命令详解

上一篇文章主要介绍了thermo以及thermo_style默认显示形式,如果需要在屏幕输出自定义的数据,需要用到thermo_style custom命令。
thermo_style custom命令格式为:

thermo_style custom 输出量1 输出量2 输出量3 ……

能够在thermo_style custom命令中输出的量不仅包含系统已经定义好的变量,还包括通过compute、fix、variable等命令生成的自定义变量。
主要有:

step, elapsed, elaplong, dt, time,
cpu, tpcpu, spcpu, cpuremain, part, timeremain,
atoms, temp, press, pe, ke, etotal,
evdwl, ecoul, epair, ebond, eangle, edihed, eimp,
emol, elong, etail,
enthalpy, ecouple, econserve,
vol, density, lx, ly, lz, xlo, xhi, ylo, yhi, zlo, zhi,
xy, xz, yz, xlat, ylat, zlat,
bonds, angles, dihedrals, impropers,
pxx, pyy, pzz, pxy, pxz, pyz,
fmax, fnorm, nbuild, ndanger,
cella, cellb, cellc, cellalpha, cellbeta, cellgamma,
c_ID, c_ID[I], c_ID[I][J],
f_ID, f_ID[I], f_ID[I][J],
v_name, v_name[I]

例如,每100步在屏幕上输出步数(step)、稳定(temp)、压力(press)、势能(pe)、体积(vol),三个方向尺寸(lx ly lz)可以写为:

thermo 100
thermo_style custom step temp press pe vol lx ly lz

显示结果如下:
在这里插入图片描述

thermo命令不仅把数据显示到屏幕上,同时把显示数据保存到log.lammps中,便于后期进行数据处理。
在这里插入图片描述

打开log.lammps文件,找到输出数据部分,复制到绘图软件即可。

更多lammps教程,关注公众号:lammps加油站
在这里插入图片描述

  • 3
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lammps加油站

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值