Skip to content

Commit c5394cf

Browse files
committedNov 18, 2023
imporved solution
1 parent 8b2bf35 commit c5394cf

File tree

14 files changed

+47567
-36
lines changed

14 files changed

+47567
-36
lines changed
 

‎docs/inputs/level1/breaking-a-carbon-nanotube/exercises/membrane/CH.airebo

Lines changed: 37595 additions & 0 deletions
Large diffs are not rendered by default.

‎docs/inputs/level1/breaking-a-carbon-nanotube/exercises/membrane/cnt_atom.data

Lines changed: 713 additions & 0 deletions
Large diffs are not rendered by default.

‎docs/inputs/level1/breaking-a-carbon-nanotube/exercises/membrane/cnt_molecular.data

Lines changed: 8529 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Initialisation
2+
3+
variable T equal 300
4+
5+
units real
6+
atom_style molecular
7+
boundary p p p
8+
pair_style lj/cut 14
9+
10+
bond_style harmonic
11+
angle_style harmonic
12+
dihedral_style opls
13+
improper_style harmonic
14+
15+
special_bonds lj 0.0 0.0 0.5
16+
17+
read_data cnt_molecular.data
18+
include parm.lammps
19+
20+
change_box all x final -7 7 y final -7 7 # adjust the box size before replicating
21+
replicate 3 3 1 # replicate along x y to make 9 CNTs
22+
23+
region center block INF INF 7 21 INF INF
24+
group CNT_center region center
25+
displace_atoms CNT_center move 7 0 0
26+
27+
# let us first equilibrate using NPT anisotropic
28+
velocity all create ${T} 48455 mom yes rot yes
29+
fix mynpt all npt temp ${T} ${T} 100 x 1 1 1000 y 1 1 1000
30+
31+
thermo 100
32+
33+
timestep 1.0
34+
run 4000
35+
unfix mynpt
36+
reset_timestep 0
37+
38+
change_box all triclinic
39+
40+
dump mydmp all atom 500 dump.lammpstrj
41+
42+
# use simple NVT
43+
fix mynvt all nvt temp ${T} ${T} 100
44+
45+
# deform the box progressively
46+
fix muyef all deform 1 xy erate 5e-5
47+
48+
run 20000
49+
50+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pair_coeff 1 1 0.066047 3.4
2+
bond_coeff 1 469 1.4
3+
angle_coeff 1 63 120
4+
dihedral_coeff 1 0 7.25 0 0
5+
improper_coeff 1 5 180

0 commit comments

Comments
 (0)