首 页 行业热点 新车 试驾评测 养车用车 车型库

lammps有没有模拟层错的语句

发布网友

我来回答

1个回答

热心网友

lammps中用variable设置循环语句的方法

C语言中for循环是:
for (x = 10; x <=1000; i=i+10)
那么在lammps中如何用variable变量来表示呢?
方法一:variable x index string ...
units metal
atom_style atomic
variable x index 5.4305 5.4306 5.4307 5.4308 5.4309 5.4310 5.4311 5.4312 5.4313 5.4314 5.4315
lattice diamond $x
region box block 0 3 0 3 0 3
create_box 1 box
create_atoms 1 box
pair_style lj/cut 2.8
pair_coeff 1 1 1.0 1.0
mass 1 12
timestep 0.005
mp 1 all cfg 1 a*.cfg id type xs ys zs id
#fix extra all print 100 "Coords of marker atom = $x"
#fix extra all print 100 "Coords of marker atom = $x" file coord.txt
fix extra all print 10 "$x $p" append data.d title ""
run 100
clear
next x
jump silicon.in

方法二:label loop
# label for loop # 这里是标记循环体,该语句之前的脚本不参与循环; 似乎这句不对!
variable i loop 100 # 这里设置i从1到100,步长为1
variable x equal 10*$i #这里设置x为i的10倍,即从10到1000,步长为10
……
clear
next i #下一个循环变量
jump in.filename ##for loop #这里输入该脚本的文件名

lammps案例:堆垛层错能的计算 lammps案例:堆垛层错能的计算 lammps模拟 lammps模拟剪切教程 关于对错的经典语句 遇到错的人的句子 ms动力学模拟 关于错的句子 自己错了的句子 错在自己还怪别人语句 跟错人的句子
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com