lammps教程:模拟量实时显示thermo命令详解(1)

在进行lammps模拟时,我们往往想实时的获取模拟的结果。
特别是对于一些比较大的体系,模拟时间长达几天甚至几十天,实时监控模拟运行结果就更重要了。
模拟信息的显示主要用到thermo、thermo_style、thermo_modify三个命令。
1 thermo命令
lammps提供了thermo命令实时把模拟结果信息输出到屏幕上,同时也会把信息存入到log文件,便于后期数据处理。
thermo命令语法格式:

thermo N

N表示每隔N步在屏幕上输出默认信息。
在这里插入图片描述

2.thermo_style命令
通常,thermo命令配合thermo_style使用。
thermo_style可以设置哪些信息会被显示到屏幕上,命令格式为:

thermo_style style args
one args = none
multi args = none
custom args = list of keywords

thermo_style有三种主要的显示方式:one、multi、custom。
thermo_style one命令是把信息都输出在一行中,这也是thermo_style默认的方式,如果不写thermo_style命令,系统默认的就是thermo_style one。
因此,下面2个命令是等价的:

#输出设置1
thermo	100
#输出设置2
thermo	100
thermo_style one

thermo_style multi命令使用多行显示信息,如下图所示:
在这里插入图片描述

thermo_style one和thermo_style multi使用比较简单,但是有个缺点,只能显示默认的几个信息量,无法自定义显示的内容。

下一篇文章将介绍thermo_style custom命令,实现自定义模拟量的输出。

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

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

lammps加油站

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

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

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

打赏作者

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

抵扣说明:

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

余额充值