group命令配合union关键字可实现两个组的合并,例如left和right组合并为boundary组,可以写为: groupboundaryunionleftright 配合substract关键字可实现减法操作,所有原子减去boundary原子即为中间moible原子,可以写为: groupmobilesubtractallboundary Cu拉伸建模全部代码如下: #模型基本设置unitsmetaldimension3boundarypspneighbor...
group命令配合union关键字可实现两个组的合并,例如left和right组合并为boundary组,可以写为: AI检测代码解析 group boundary union left right 1. 配合substract关键字可实现减法操作,所有原子减去boundary原子即为中间moible原子,可以写为: AI检测代码解析 group mobile subtract all boundary 1. Cu拉伸建模全部代码如下...
group.cpp中处理union的代码片段。mask[i] & otherbit判断当前atom是否属于参与union的group,只要属于,就用mask[i] |= bit置新的表示union group的位为1。 fix_addforce.cpp中post_force成员函数的代码片段。fix可以针对某个group使用。mask[i] & groupbit表示判断当前atom是否属于该group。 fix的mask fix为什么...
1.group语法:group ID style args参数:ID 用户自定义群组名称style 指定方式args 指定参数P.S.①将特定区域原子分组,详细方法参见链接https://lammps.sandia.gov/doc/group.htmlE.G.group edge region regstripgroup boundary union lower uppergroup boundary subtract all a2 a3group mobile subtract all boundary ...
建立上述模型,主要使用region命令中的block参数建立长方体结构,使用union参数对长方体进行区域合并,使用sphere参数建立金刚石球体。 建模过程如下: (1)生成最底层的边界层,前两行生成两个block(矩形)区域,第三行使用union将两个区域合并为一个区域 region boundary1 block 0 20 0 80 0 160 units box ...
group left region 1 #定义此区域里的原子叫 left region 2 block 29 INF INF INF INF INF #定义了一个叫 2 的区域 group right region 2 # 定义此区域里的原子叫 right group boundary union left right #定义 left+ right = boundary group mobile subtract all left # 定义 ...
regiondown union 2 down1 down2 regionhotblockINF INFINF INF0.00.25units lattice grouphotregionhot regioncoldblockINF INFINF INF-4.0-3.75units lattice groupcoldregioncold mass11.0 #mass06.633e-26 #epsilon01.67e-21 #sigma03.405e-10 velocityallcreate0.71 458127641 mom yesrot yes dist gaussian units...
group up region up group down region down group mmt type 1 2 3 4 5 6 7 8 9 10 11 group wat type 12 13 #需要用到的组。 subtract减法、减去、删除;intersect 相交;union 加法、联合 group upmmt intersect up mmt group downmmt intersect down mmt ...
union和intersect类型的区域依赖于子区域,因此在定义后不能删除子区域。side关键字用于决定区域是几何体内部还是外部,与union和intersect类型配合可以构建复杂几何区域。units关键字决定定义区域长度量的单位,取值box时坐标单位与距离单位相同,取值lattice时坐标是晶格距离单位。move或rotate关键字用于使区域动态...
group 3 union 1 2 表示将1,2组合并为3组。 delete_atoms命令: 表示删除不需要的原子,例如 delete_atoms group 1 表示将1组的原子删掉; delete_atoms region 2 表示将区域2中的原子删掉; 最后将这几个命令结合使用一下 构建一个bcc的W圆柱 法一: ...