atom_modify map yes lattice bcc 4 region box block 0 10 0 10 0 4 create_box 1 box create_atoms 1 region box region 1 block 0 10 0 10 0 1 region 2 block 0 10 0 10 1 2 region 3 block 0 10 0 10 2 4 group 1 region 1 group 2 region 2 group 3 region 3 mass 1 197 writ...
atom_modify map array 表示设置和定义某些存储原子的属性 语法:atom_modify keyword values Keyword :id / map / first id value = yes或no 用来设置是否储存每一个原子的id(序号) 默认值为 yes map value = yes或array或hash 用来设置如何在需要时具有特定ID的原子被发现(array 比 hash快) first value = ...
atom_modifymaparraysort00 neighbor0.42bin timestep0.0001 #创建盒子 regionregblock0120060085unitsbox create_box1reg #设置原子属性 fixpropallproperty/atommolghostyes #势函数设置 pair_stylegran/hooke/history4e5NULL1e2NULL0.50 pair_coeff** #分组 groupparticlestype1 atom_modifyfirstparticles grouprigidtype1...
17、omic/bond/charge/dipole/dpd/ellipsoid/full/granular/molecular/hybrid default=atom_style atomic 定义使用什么样的原子类型,决定了原子的属性,该命令应该在其他命令前。 style = angle/atomic/bond/charge/dipole/dpd/ellipsoid/full/granular/molecular/hybrid atom_modify map/first 定义并行计算如何求最近邻 at...
lammps比较标准的代码格式 #Findminimumenergyfccconfiguration #MarkTschopp,2010 #---InitializeSimulation--- clear unitsmetal dimension3 boundaryppp atom_styleatomic atom_modifymaparray #---CreateAtoms--- latticefcc4 regionboxblock010101unitslattice create_box1box latticefcc4orientx100orienty010orientz001 c...
1.file=open("calc_fcc.in","w")2.file.write("clear\n")3.file.write("units metal \n")4.file.write("dimension3\n")5.file.write("boundary p p p \n")6.file.write("atom_style atomic \n")7.file.write("atom_modifymaparray \n")8.file.write("lattice fcc4\n")9.file.write("...
lammps详解 variabletequal800.0variableaequal4.05 设置温度t为800k设置晶格常数a为4.05 units metal类型为金属 dimension3 三维模拟 boundary ppp边界条件周期性 atom_style atomic原子样式为原子 neigh_modifydelay0every1每隔一步更新原子列表 latticefcc$alattice命令晶格类型为fcc晶格常数为a regionboxblock010010010...
4 atom_style angle/atomic/bond/charge/dipole/dpd/ellipsoid/full/granular/molecular/hybrid... 5 atom_modify map/first... 5 dimension N ,N=2/3 ...
atom_modify map array # --- Create Atoms --- lattice fcc 3.61 region box block 0 200 0 2...
atom_modify map array read_data data.500CO2 pair_style lj/charmm/coul/charmm 16.0 18.0 16.0 18.0 pair_coeff 1 1 0.0023266827 2.800 pair_coeff 1 2 0.0039798693 2.925 pair_coeff 2 2 0.0068077011 3.050 neighbor 2.5 bin neigh_modify every 100 delay 0 check no fix 1 all restrain bond 1 2 20...