折叠石墨烯lammps代码
时间: 2023-07-09 19:36:00 浏览: 132
lammps__Si原子轰击石墨烯.in.rar_in_lammps_lammps in_lammps硅_石墨烯 LAMMPS
5星 · 资源好评率100%
折叠石墨烯的LAMMPS代码如下所示:
```
# LAMMPS input script for folding graphene
# Setup
units real
dimension 2
boundary p p p
atom_style atomic
neighbor 2.0 bin
neigh_modify every 1 delay 0 check no
# Graphene parameters
region box block 0 20 0 20 -0.1 0.1 units box
create_box 2 box
lattice custom 2.46 &
a1 1.0 0.0 0.0 &
a2 0.5 0.866025 0.0 &
a3 0.0 0.0 20.0
create_atoms 1 box
mass 1 12.01
mass 2 1.008
# Folding parameters
variable angle equal 30
variable rotmat equal "rotate(0,0,v_angle)"
region fold block INF INF INF INF INF INF
group folded region fold
group unfolded subtract all folded
fix 1 all wall/region fold harmonic 10.0 2.0 0.0
fix 2 all deform 1 xy erate 0.1 remap v rotmat
fix 3 all nve
fix 4 folded setforce 0.0 0.0 0.0
# Output
dump 1 all atom 100 dump.folded
thermo_style custom step temp pe
thermo 10
# Run simulation
timestep 0.001
run 10000
```
这个代码使用LAMMPS模拟折叠石墨烯的过程。在代码中,首先定义了模拟的基本参数,包括单位、维度、周期性边界条件等。然后定义了石墨烯的结构参数,包括晶格常数、原子种类、原子质量等。接着定义了折叠参数,包括折叠角度、旋转矩阵、折叠区域等。最后定义了输出参数和模拟运行参数,并运行了模拟。
阅读全文