来源: “码农不会写诗”公众号
链接:Lammps命令学习-4之units
units style
  使用read data或create box命令定义模拟框之前设置用于模拟的单位类型
   https://docs.lammps.org/units.html
Syntax
units style
Description
 **设置用于模拟的单位类型,确定输入(包括in文件、data文件和力场文件等)中指定的、以及输出(包括到屏幕、日志文件和转储文件等)中所有数量的单位。
注意此命令需要在使用read data或create box命令定义模拟框之前使用。
units style
style = lj or real or metal or si or cgs or electron or micro or nano
 - lj:所有数量都是无单位的。Lammps将基本量mass、sigma(𝜎)、epsilon(𝜖)和波尔兹曼常数(KB)均设为1,模拟所指定的质量、距离、能量就是这些基本量的倍数。基于以下公式(官方文档)就可以将无单位量转换为正常量。
 
 - real:
 
 - metal:
 
 - si:
 
 - cgs:
 
 - electron:
 
 - micro:
 
 - nano:
 
 Example
units metal
units lj
Default
units lj
书山有路勤为径,学海无涯苦作舟。今天就到这里啦,拜了个拜~
上一篇:Lammps命令学习-3之boundary










![[Bugku] web-CTF-GET](https://i-blog.csdnimg.cn/direct/90661c0c5511403a810886eb4c2488fb.png)







