一给 发表于 2024-9-2 06:13:02

22. Lammps命令学习-7之read_restart

来源: “码农不会写诗”公众号
链接:Lammps命令学习-6之read_data
    read_restart file


  从restart文件中读取先前生存的系统配置从而可以继承先前的模拟。
  https://docs.lammps.org/read_restart.html
Syntax
read_restart file

Description
从restart文件中读取先前生存的系统配置从而可以继承先前的模拟。
此操作会重新创建模拟盒,包括其中所有的原子及其属性,以及一些相关的全局设置,所有这些设置会跟前一次模拟写入restart文件时一样。
read_restart file



[*]file = name of binary restart file to read in
restart文件是二进制格式,可以利用lammps命令行-r2data参数将restart文件转换为data文件。
例如在以下情况都可以将其转化为data文件后利用:1. 在差别呆板运行模拟,二进制文件大概无法通用时;2. 利用其他软件举行可视化或举行如原子筛选等后处置惩罚时。
lmp -h# 查看lammps可执行文件帮助信息
https://i-blog.csdnimg.cn/direct/c2db4e9d90114e86a92c09c1d5435fe7.png 通过以下命令之一可将restart文件(file.restart)转换为data文件(file.data)。
lmp -restart2data file.restart file.data
lmp -r2data file.restart file.data
以下是restart文件中已经存储的信息,即这些量在读取restart文件时,输入脚本中不需要重新指定。固然了,在读取restart文件后,可以重新界说这些设置中的许多项,比如将timestep重新设置为0等。


[*]units
[*]newton bond
[*]atom style and atom_modify settings id, map, sort
[*]comm style and comm_modify settings mode, cutoff, vel
[*]simulation box size and shape and boundary settings
[*]atom group definitions
[*]per-type atom settings such as mass
[*]per-atom attributes including their group assignments and molecular topology attributes (bonds, angles, etc)
[*]force field styles (pair, bond, angle, etc)
[*]force field coefficients (pair, bond, angle, etc) in some cases (see below)
[*]pair_modify settings, except the compute option
[*]special_bonds settings
以下是restart文件中未存储的信息,即在读取restart文件之后,必须在输入脚本中重新实行相关命令。


[*]newton pair
[*]fix commands
[*]compute commands
[*]variable commands
[*]neighbor list criteria including neigh_modify settings
[*]kspace_style and kspace_modify settings
[*]info for thermodynamic, dump, or restart output
简而言之,与系统配置相关的信息会存储在restart文件中,否则将需要重新界说或设置。
关于更细节的知识,本系列不会用到,姑且不细讲,以后有时机再共同探究。
Example
read_restart save.10000
read_restart restart.*
Default
none
书山有路勤为径,学海无涯苦作舟。本日就到这里啦,拜了个拜~
   上一篇:Lammps命令学习-6之read_data

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: 22. Lammps命令学习-7之read_restart