| 查看: 1843 | 回复: 1 | ||
torresqian新虫 (初入文坛)
|
[求助]
create_atom建立特殊形状边界的原子集合
|
|
使用lammps的create_atom命令外加关键词var跟set创建形状为三角函数的原子真空边界,可根据某一点坐标确定是否在该位置生成原子(The var and set keywords can be used together to provide a criterion for accepting or rejecting the addition of an individual atom, based on its coordinates)。我参照手册中的示例分别建立了二维跟三维的模型,但均出现了variable for create_atom is invalid style。原示例命令如下: variable x equal 100 variable y equal 25 lattice hex 0.8442 region box block 0 $x 0 $y -0.5 0.5 create_box 1 box variable xx equal 0.0 variable yy equal 0.0 variable v equal "(0.2*v_y*ylat * cos(v_xx/xlat * 2.0*PI*4.0/v_x) + 0.5*v_y*ylat - v_yy) > 0.0" create_atoms 1 box var v set x xx set y yy 我自己建模如下 3d: variable x equal 20 variable y equal 10 variable z equal 10 units metal atom_style atomic lattice fcc 3.615 region box block 0 $x 0 $y 0 $z create_box 1 box variable xx equal 0.0 variable yy equal 0.0 variable zz equal 0.0 variable v equal "(0.3*v_y*ylat-0.15*v_y*ylat*cos(v_xx/xlat*2.8*PI/v_x) & -v_yy)>0.0" create_atom 1 box var v set x xx set y yy set z zz 2d参照示例代码仍然提示variable for create_atom is invalid style。 不知道可有人做过类似的模型,能否指点一二?lammps小白,请大神们赐教 |
» 猜你喜欢
filecode
已经有8人回复
大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑
已经有4人回复
filecode
已经有5人回复
求各位大神看下
已经有31人回复
咨询面上基金
已经有7人回复
影响面上的因素
已经有11人回复
8月时间戳变的,举个手。玩一下,释放压力
已经有11人回复
一个有机合成实验室都需要哪些设备?
已经有11人回复
面上再次挂了,太难了,躺也躺不了,倦也卷不过,小学校之殇!
已经有30人回复
好消息?这个有何含义???
已经有10人回复
2楼2021-03-18 13:50:57










回复此楼