Skip to content

Commit 33c08ba

Browse files
Merge pull request #53 from lammpstutorials/adress-warning-tutorial4
Deal with warning in tutorial 4
2 parents ff27b98 + c43f6c7 commit 33c08ba

File tree

13 files changed

+4914
-9991
lines changed

13 files changed

+4914
-9991
lines changed
-11.9 KB
Loading

files/tutorial4/equilibrate.lmp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pair_style lj/cut/tip4p/long O H O-H H-O-H 0.1546 12.0
1212
kspace_style pppm/tip4p 1.0e-5
1313
kspace_modify slab 3.0
1414

15-
read_data minimize.data
15+
read_data create.data
1616

1717
include parameters.inc
1818
include groups.inc

files/tutorial4/minimize.lmp

Lines changed: 0 additions & 18 deletions
This file was deleted.

files/tutorial4/solution/create.log

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
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)
43
Lattice spacing in x,y,z = 4.04 4.04 4.04
54
Created orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
65
1 by 1 by 1 MPI processor grid
76
Created 432 atoms
87
using lattice units in orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
98
create_atoms CPU = 0.006 seconds
109
Read molecule template h2omol:
11-
# Water molecule.
10+
# LAMMPS Input File (License CC BY 4.0)
1211
1 molecules
1312
0 fragments
1413
3 atoms with max type 2
@@ -21,7 +20,7 @@ Created 1944 atoms
2120
create_atoms CPU = 0.002 seconds
2221
Created 15 atoms
2322
using lattice units in orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
24-
create_atoms CPU = 0.004 seconds
23+
create_atoms CPU = 0.005 seconds
2524
Created 15 atoms
2625
using lattice units in orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
2726
create_atoms CPU = 0.004 seconds
@@ -63,7 +62,7 @@ PPPM initialization ...
6362
estimated relative force accuracy = 1.0535666e-05
6463
using double precision KISS FFT
6564
3d grid and FFT values/proc = 39375 19440
66-
WARNING: Communication cutoff 0 is shorter than a bond length based estimate of 3.4358. This may lead to errors. (src/comm.cpp:731)
65+
WARNING: Communication cutoff 0 is shorter than a bond length based estimate of 3.4358. This may lead to errors. (src/comm.cpp:730)
6766
WARNING: Increasing communication cutoff to 15.1118 for TIP4P pair style (src/KSPACE/pair_lj_cut_tip4p_long.cpp:497)
6867
Generated 9 of 10 mixed pair_coeff terms from geometric mixing rule
6968
Last active /omp style is kspace_style pppm/tip4p/omp
@@ -86,9 +85,9 @@ Setting up Verlet run ...
8685
Per MPI rank memory allocation (min/avg/max) = 19.16 | 19.16 | 19.16 Mbytes
8786
Step Temp E_pair E_mol TotEng Press
8887
0 0 501411.03 0 501411.03 6165751.9
89-
Loop time of 0.000133443 on 8 procs for 0 steps with 1680 atoms
88+
Loop time of 3.207e-06 on 8 procs for 0 steps with 1680 atoms
9089

91-
81.7% CPU use with 1 MPI tasks x 8 OpenMP threads
90+
155.9% CPU use with 1 MPI tasks x 8 OpenMP threads
9291

9392
MPI task timing breakdown:
9493
Section | min time | avg time | max time |%varavg| %total
@@ -100,7 +99,7 @@ Neigh | 0 | 0 | 0 | 0.0 | 0.00
10099
Comm | 0 | 0 | 0 | 0.0 | 0.00
101100
Output | 0 | 0 | 0 | 0.0 | 0.00
102101
Modify | 0 | 0 | 0 | 0.0 | 0.00
103-
Other | | 0.0001334 | | |100.00
102+
Other | | 3.207e-06 | | |100.00
104103

105104
Nlocal: 1680 ave 1680 max 1680 min
106105
Histogram: 1 0 0 0 0 0 0 0 0 0

files/tutorial4/solution/equilibrate.data

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

files/tutorial4/solution/equilibrate.ipynb

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

files/tutorial4/solution/equilibrate.lmp

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,34 @@ pair_style lj/cut/tip4p/long O H O-H H-O-H 0.1546 12.0
1212
kspace_style pppm/tip4p 1.0e-5
1313
kspace_modify slab 3.0
1414

15-
read_data minimize.data
15+
read_data create.data
1616

1717
include parameters.inc
1818
include groups.inc
1919

20+
fix myshk H2O shake 1.0e-5 200 0 b O-H a H-O-H kbond 2000
21+
22+
dump mydmp all image 1 myimage-*.ppm type type &
23+
shiny 0.1 box no 0.01 view 90 0 zoom 1.8
24+
dump_modify mydmp backcolor white &
25+
acolor O red adiam O 2 &
26+
acolor H white adiam H 1 &
27+
acolor Na+ blue adiam Na+ 2.5 &
28+
acolor Cl- cyan adiam Cl- 3 &
29+
acolor WALL gray adiam WALL 3
30+
31+
thermo 1
32+
thermo_style custom step temp etotal press
33+
34+
minimize 1.0e-6 1.0e-6 1000 1000
35+
reset_timestep 0
36+
2037
fix mynvt all nvt temp 300 300 100
2138
fix myshk H2O shake 1.0e-5 200 0 b O-H a H-O-H
2239
fix myrct all recenter NULL NULL 0
2340
timestep 1.0
2441

42+
undump mydmp
2543
dump mydmp all image 250 myimage-*.ppm type type &
2644
shiny 0.1 box no 0.01 view 90 0 zoom 1.8
2745
dump_modify mydmp backcolor white &
@@ -41,3 +59,7 @@ thermo_style custom step temp etotal press v_deltaz
4159
run 30000
4260

4361
write_data equilibrate.data nocoeff
62+
63+
64+
65+

0 commit comments

Comments
 (0)