Skip to content

Commit 068f067

Browse files
committed
created files for tutorial 4
1 parent 64ea4aa commit 068f067

21 files changed

Lines changed: 18873 additions & 0 deletions

files/tutorial4/create.lmp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
boundary p p f
3+
units real
4+
atom_style full
5+
bond_style harmonic
6+
angle_style harmonic
7+
pair_style lj/cut/tip4p/long O H O−H H−O−H 0.1546 12.0
8+
kspace_style pppm/tip4p 1.0e−4
9+
kspace_modify slab 3.0
10+

files/tutorial4/groups.inc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
group H2O type O H
3+
group Na type Na+
4+
group Cl type Cl
5+
group ions union Na Cl
6+
group fluid union H2O ions
7+
8+
group wall type WALL
9+
region rtop block INF INF INF INF 0 INF
10+
region rbot block INF INF INF INF INF 0
11+
group top region rtop
12+
group bot region rbot
13+
group walltop intersect wall top
14+
group wallbot intersect wall bot

files/tutorial4/minimize.lmp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
boundary p p f
3+
units real
4+
atom_style full
5+
bond_style harmonic
6+
angle_style harmonic
7+
pair_style lj/cut/tip4p/long O H O−H H−O−H 0.1546 12.0
8+
kspace_style pppm/tip4p 1.0e−4
9+
kspace_modify slab 3.0
10+
11+
read_data create.data
12+
13+
include parameters.inc
14+
include groups.inc

files/tutorial4/parameters.inc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
mass O 15.9994
3+
mass H 1.008
4+
mass Na+ 22.990
5+
mass Cl− 35.453
6+
mass WALL 26.9815
7+
8+
pair_coeff O O 0.185199 3.1589
9+
pair_coeff H H 0.0 1.0
10+
pair_coeff Na+ Na+ 0.04690 2.4299
11+
pair_coeff Cl− Cl− 0.1500 4.04470
12+
pair_coeff WALL WALL 11.697 2.574
13+
pair_coeff O WALL 0.4 2.86645
14+
15+
bond_coeff O−H 0 0.9572
16+
angle_coeff H−O−H 0 104.52

files/tutorial4/solution/create.data

Lines changed: 4626 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
boundary p p f
3+
units real
4+
atom_style full
5+
bond_style harmonic
6+
angle_style harmonic
7+
pair_style lj/cut/tip4p/long O H O−H H−O−H 0.1546 12.0
8+
kspace_style pppm/tip4p 1.0e−5
9+
kspace_modify slab 3.0
10+
11+
lattice fcc 4.04
12+
region box block −3 3 −3 3 −5 5
13+
create_box 5 box &
14+
bond/types 1 &
15+
angle/types 1 &
16+
extra/bond/per/atom 2 &
17+
extra/angle/per/atom 1 &
18+
extra/special/per/atom 2
19+
labelmap atom 1 O 2 H 3 Na+ 4 Cl− 5 WALL
20+
labelmap bond 1 O−H
21+
labelmap angle 1 H−O−H
22+
23+
region rbotwall block −3 3 −3 3 −4 −3
24+
region rtopwall block −3 3 −3 3 3 4
25+
region rwall union 2 rbotwall rtopwall
26+
create_atoms WALL region rwall
27+
28+
region rliquid block INF INF INF INF −2 2
29+
molecule h2omol water.mol
30+
create_atoms 0 region rliquid mol h2omol 482793
31+
32+
create_atoms Na+ random 15 52802 rliquid overlap 0.3 maxtry 500
33+
create_atoms Cl− random 15 90182 rliquid overlap 0.3 maxtry 500
34+
set type Na+ charge 1
35+
set type Cl− charge −1
36+
37+
include parameters.inc
38+
include groups.inc
39+
40+
delete_atoms random fraction 0.15 yes H2O NULL 482793 mol yes
41+
42+
dump mydmp all image 200 myimage-*.ppm type type &
43+
shiny 0.1 box no 0.01 view 90 0 zoom 1.8
44+
dump_modify mydmp backcolor white &
45+
acolor O red adiam O 2 &
46+
acolor H white adiam H 1 &
47+
acolor Na+ blue adiam Na+ 2.5 &
48+
acolor Cl− cyan adiam Cl− 3 &
49+
acolor WALL gray adiam WALL 3
50+
51+
run 0
52+
53+
write_data create.data nocoeff
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
using 8 OpenMP thread(s) per MPI task
2+
using multi-threaded neighbor list subroutines
3+
Lattice spacing in x,y,z = 4.04 4.04 4.04
4+
Created orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
5+
1 by 1 by 1 MPI processor grid
6+
Created 432 atoms
7+
using lattice units in orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
8+
create_atoms CPU = 0.003 seconds
9+
Read molecule template h2omol:
10+
# Water molecule.
11+
1 molecules
12+
0 fragments
13+
3 atoms with max type 2
14+
2 bonds with max type 1
15+
1 angles with max type 1
16+
0 dihedrals with max type 0
17+
0 impropers with max type 0
18+
Created 1944 atoms
19+
using lattice units in orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
20+
create_atoms CPU = 0.001 seconds
21+
Created 15 atoms
22+
using lattice units in orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
23+
create_atoms CPU = 0.004 seconds
24+
Created 15 atoms
25+
using lattice units in orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
26+
create_atoms CPU = 0.004 seconds
27+
Setting atom values ...
28+
15 settings made for charge
29+
Setting atom values ...
30+
15 settings made for charge
31+
1944 atoms in group H2O
32+
15 atoms in group Na
33+
15 atoms in group Cl
34+
30 atoms in group ions
35+
1974 atoms in group fluid
36+
432 atoms in group wall
37+
1198 atoms in group top
38+
1208 atoms in group bot
39+
216 atoms in group walltop
40+
216 atoms in group wallbot
41+
WARNING: Ignoring 'compress yes' for molecular system (src/delete_atoms.cpp:141)
42+
Deleted 726 atoms, new total = 1680
43+
Deleted 484 bonds, new total = 812
44+
Deleted 242 angles, new total = 406
45+
WARNING: No fixes with time integration, atoms won't move (src/verlet.cpp:60)
46+
PPPM initialization ...
47+
extracting TIP4P info from pair style
48+
using 12-bit tables for long-range coulomb (src/kspace.cpp:342)
49+
G vector (1/distance) = 0.22477066
50+
grid = 12 12 40
51+
stencil order = 5
52+
estimated absolute RMS force accuracy = 0.023314918
53+
estimated relative force accuracy = 7.0212184e-05
54+
using double precision KISS FFT
55+
3d grid and FFT values/proc = 15162 5760
56+
WARNING: Communication cutoff 0 is shorter than a bond length based estimate of 3.4358. This may lead to errors. (src/comm.cpp:731)
57+
WARNING: Increasing communication cutoff to 15.1118 for TIP4P pair style (src/KSPACE/pair_lj_cut_tip4p_long.cpp:497)
58+
Generated 9 of 10 mixed pair_coeff terms from geometric mixing rule
59+
Last active /omp style is kspace_style pppm/tip4p/omp
60+
Neighbor list info ...
61+
update: every = 1 steps, delay = 0 steps, check = yes
62+
max neighbors/atom: 2000, page size: 100000
63+
master list distance cutoff = 14.3092
64+
ghost atom cutoff = 15.1118
65+
binsize = 7.1546, bins = 4 4 6
66+
1 neighbor lists, perpetual/occasional/extra = 1 0 0
67+
(1) pair lj/cut/tip4p/long/omp, perpetual
68+
attributes: half, newton on, omp
69+
pair build: half/bin/newton/omp
70+
stencil: half/bin/3d
71+
bin: standard
72+
Setting up Verlet run ...
73+
Unit style : real
74+
Current step : 0
75+
Time step : 1
76+
Per MPI rank memory allocation (min/avg/max) = 17.03 | 17.03 | 17.03 Mbytes
77+
Step Temp E_pair E_mol TotEng Press
78+
0 0 665588.16 0 665588.16 8064451.7
79+
Loop time of 3.863e-06 on 8 procs for 0 steps with 1680 atoms
80+
81+
181.2% CPU use with 1 MPI tasks x 8 OpenMP threads
82+
83+
MPI task timing breakdown:
84+
Section | min time | avg time | max time |%varavg| %total
85+
---------------------------------------------------------------
86+
Pair | 0 | 0 | 0 | 0.0 | 0.00
87+
Bond | 0 | 0 | 0 | 0.0 | 0.00
88+
Kspace | 0 | 0 | 0 | 0.0 | 0.00
89+
Neigh | 0 | 0 | 0 | 0.0 | 0.00
90+
Comm | 0 | 0 | 0 | 0.0 | 0.00
91+
Output | 0 | 0 | 0 | 0.0 | 0.00
92+
Modify | 0 | 0 | 0 | 0.0 | 0.00
93+
Other | | 3.863e-06 | | |100.00
94+
95+
Nlocal: 1680 ave 1680 max 1680 min
96+
Histogram: 1 0 0 0 0 0 0 0 0 0
97+
Nghost: 6818 ave 6818 max 6818 min
98+
Histogram: 1 0 0 0 0 0 0 0 0 0
99+
Neighs: 829498 ave 829498 max 829498 min
100+
Histogram: 1 0 0 0 0 0 0 0 0 0
101+
102+
Total # of neighbors = 829498
103+
Ave neighs/atom = 493.74881
104+
Ave special neighs/atom = 1.45
105+
Neighbor list builds = 0
106+
Dangerous builds = 0
107+
System init for write_data ...
108+
PPPM initialization ...
109+
extracting TIP4P info from pair style
110+
using 12-bit tables for long-range coulomb (src/kspace.cpp:342)
111+
G vector (1/distance) = 0.22477066
112+
grid = 12 12 40
113+
stencil order = 5
114+
estimated absolute RMS force accuracy = 0.023314918
115+
estimated relative force accuracy = 7.0212184e-05
116+
using double precision KISS FFT
117+
3d grid and FFT values/proc = 15162 5760
118+
Generated 9 of 10 mixed pair_coeff terms from geometric mixing rule
119+
Last active /omp style is kspace_style pppm/tip4p/omp

0 commit comments

Comments
 (0)