Skip to content

Commit cb21012

Browse files
committed
further improvement of tutorial 4
1 parent 341501c commit cb21012

9 files changed

Lines changed: 4215 additions & 3884 deletions

File tree

Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
1+
# Makefile for building lammps-tutorials.pdf
2+
all: build
3+
4+
# Target to build the PDF
15
build:
2-
latexmk -pdf lammps-tutorials.tex
6+
latexmk -pdf lammps-tutorials.tex
7+
8+
# Target to clean up generated files
9+
clean:
10+
rm -f lammps-tutorials.pdf \
11+
lammps-tutorials.aux \
12+
lammps-tutorials.log \
13+
lammps-tutorials.out \
14+
lammps-tutorials.bbl \
15+
lammps-tutorials.blg

files/tutorial4/create.lmp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ atom_style full
55
bond_style harmonic
66
angle_style harmonic
77
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
8+
kspace_style pppm/tip4p 1.0e−5
99
kspace_modify slab 3.0
1010

files/tutorial4/minimize.lmp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ atom_style full
55
bond_style harmonic
66
angle_style harmonic
77
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
8+
kspace_style pppm/tip4p 1.0e−5
99
kspace_modify slab 3.0
1010

1111
read_data create.data

files/tutorial4/solution/create.data

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

files/tutorial4/solution/create.lmp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ kspace_modify slab 3.0
1111
lattice fcc 4.04
1212
region box block −3 3 −3 3 −5 5
1313
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
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
1919
labelmap atom 1 O 2 H 3 Na+ 4 Cl− 5 WALL
2020
labelmap bond 1 O−H
2121
labelmap angle 1 H−O−H
@@ -29,8 +29,8 @@ region rliquid block INF INF INF INF −2 2
2929
molecule h2omol water.mol
3030
create_atoms 0 region rliquid mol h2omol 482793
3131

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
32+
create_atoms Na+ random 15 5802 rliquid overlap 0.3 maxtry 500
33+
create_atoms Cl− random 15 9012 rliquid overlap 0.3 maxtry 500
3434
set type Na+ charge 1
3535
set type Cl− charge −1
3636

files/tutorial4/solution/create.log

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
using 8 OpenMP thread(s) per MPI task
22
using multi-threaded neighbor list subroutines
3+
WARNING: Detected non-ASCII characters in input. Will try to continue by replacing with ASCII equivalents where known. (src/input.cpp:478)
34
Lattice spacing in x,y,z = 4.04 4.04 4.04
45
Created orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
56
1 by 1 by 1 MPI processor grid
67
Created 432 atoms
78
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+
create_atoms CPU = 0.006 seconds
910
Read molecule template h2omol:
1011
# Water molecule.
1112
1 molecules
@@ -17,7 +18,7 @@ Read molecule template h2omol:
1718
0 impropers with max type 0
1819
Created 1944 atoms
1920
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+
create_atoms CPU = 0.002 seconds
2122
Created 15 atoms
2223
using lattice units in orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
2324
create_atoms CPU = 0.004 seconds
@@ -34,25 +35,34 @@ Setting atom values ...
3435
30 atoms in group ions
3536
1974 atoms in group fluid
3637
432 atoms in group wall
37-
1198 atoms in group top
38-
1208 atoms in group bot
38+
1191 atoms in group top
39+
1215 atoms in group bot
3940
216 atoms in group walltop
4041
216 atoms in group wallbot
4142
WARNING: Ignoring 'compress yes' for molecular system (src/delete_atoms.cpp:141)
4243
Deleted 726 atoms, new total = 1680
4344
Deleted 484 bonds, new total = 812
4445
Deleted 242 angles, new total = 406
46+
47+
CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE
48+
49+
Your simulation uses code contributions which should be cited:
50+
- Type Label Framework: https://doi.org/10.1021/acs.jpcb.3c08419
51+
The log file lists these citations in BibTeX format.
52+
53+
CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE-CITE
54+
4555
WARNING: No fixes with time integration, atoms won't move (src/verlet.cpp:60)
4656
PPPM initialization ...
4757
extracting TIP4P info from pair style
4858
using 12-bit tables for long-range coulomb (src/kspace.cpp:342)
49-
G vector (1/distance) = 0.22477066
50-
grid = 12 12 40
59+
G vector (1/distance) = 0.25237451
60+
grid = 18 18 60
5161
stencil order = 5
52-
estimated absolute RMS force accuracy = 0.023314918
53-
estimated relative force accuracy = 7.0212184e-05
62+
estimated absolute RMS force accuracy = 0.0034985124
63+
estimated relative force accuracy = 1.0535666e-05
5464
using double precision KISS FFT
55-
3d grid and FFT values/proc = 15162 5760
65+
3d grid and FFT values/proc = 39375 19440
5666
WARNING: Communication cutoff 0 is shorter than a bond length based estimate of 3.4358. This may lead to errors. (src/comm.cpp:731)
5767
WARNING: Increasing communication cutoff to 15.1118 for TIP4P pair style (src/KSPACE/pair_lj_cut_tip4p_long.cpp:497)
5868
Generated 9 of 10 mixed pair_coeff terms from geometric mixing rule
@@ -73,12 +83,12 @@ Setting up Verlet run ...
7383
Unit style : real
7484
Current step : 0
7585
Time step : 1
76-
Per MPI rank memory allocation (min/avg/max) = 17.03 | 17.03 | 17.03 Mbytes
86+
Per MPI rank memory allocation (min/avg/max) = 19.16 | 19.16 | 19.16 Mbytes
7787
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
88+
0 0 501411.03 0 501411.03 6165751.9
89+
Loop time of 0.000133443 on 8 procs for 0 steps with 1680 atoms
8090

81-
181.2% CPU use with 1 MPI tasks x 8 OpenMP threads
91+
81.7% CPU use with 1 MPI tasks x 8 OpenMP threads
8292

8393
MPI task timing breakdown:
8494
Section | min time | avg time | max time |%varavg| %total
@@ -90,30 +100,30 @@ Neigh | 0 | 0 | 0 | 0.0 | 0.00
90100
Comm | 0 | 0 | 0 | 0.0 | 0.00
91101
Output | 0 | 0 | 0 | 0.0 | 0.00
92102
Modify | 0 | 0 | 0 | 0.0 | 0.00
93-
Other | | 3.863e-06 | | |100.00
103+
Other | | 0.0001334 | | |100.00
94104

95105
Nlocal: 1680 ave 1680 max 1680 min
96106
Histogram: 1 0 0 0 0 0 0 0 0 0
97-
Nghost: 6818 ave 6818 max 6818 min
107+
Nghost: 6827 ave 6827 max 6827 min
98108
Histogram: 1 0 0 0 0 0 0 0 0 0
99-
Neighs: 829498 ave 829498 max 829498 min
109+
Neighs: 829213 ave 829213 max 829213 min
100110
Histogram: 1 0 0 0 0 0 0 0 0 0
101111

102-
Total # of neighbors = 829498
103-
Ave neighs/atom = 493.74881
112+
Total # of neighbors = 829213
113+
Ave neighs/atom = 493.57917
104114
Ave special neighs/atom = 1.45
105115
Neighbor list builds = 0
106116
Dangerous builds = 0
107117
System init for write_data ...
108118
PPPM initialization ...
109119
extracting TIP4P info from pair style
110120
using 12-bit tables for long-range coulomb (src/kspace.cpp:342)
111-
G vector (1/distance) = 0.22477066
112-
grid = 12 12 40
121+
G vector (1/distance) = 0.25237451
122+
grid = 18 18 60
113123
stencil order = 5
114-
estimated absolute RMS force accuracy = 0.023314918
115-
estimated relative force accuracy = 7.0212184e-05
124+
estimated absolute RMS force accuracy = 0.0034985124
125+
estimated relative force accuracy = 1.0535666e-05
116126
using double precision KISS FFT
117-
3d grid and FFT values/proc = 15162 5760
127+
3d grid and FFT values/proc = 39375 19440
118128
Generated 9 of 10 mixed pair_coeff terms from geometric mixing rule
119129
Last active /omp style is kspace_style pppm/tip4p/omp

0 commit comments

Comments
 (0)