Skip to content

Commit a202849

Browse files
committed
finished cleaning tutorial 4
1 parent cb21012 commit a202849

9 files changed

Lines changed: 5042 additions & 4732 deletions

File tree

files/tutorial4/equilibrate.lmp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
read_data minimize.data
12+
13+
include parameters.inc
14+
include groups.inc
15+

files/tutorial4/shearing.lmp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
read_data equilibrate.data
12+
13+
include parameters.inc
14+
include groups.inc
15+

files/tutorial4/solution/equilibrate.data

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

files/tutorial4/solution/equilibrate.lmp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@ fix myshk H2O shake 1.0e−5 200 0 b O−H a H−O−H
1818
fix myrct all recenter NULL NULL 0
1919
timestep 1.0
2020

21-
dump mydmp all image 200 myimage-*.ppm type type &
21+
dump mydmp all image 250 myimage-*.ppm type type &
2222
shiny 0.1 box no 0.01 view 90 0 zoom 1.8
2323
dump_modify mydmp backcolor white &
2424
acolor O red adiam O 2 &
2525
acolor H white adiam H 1 &
2626
acolor Na+ blue adiam Na+ 2.5 &
2727
acolor Cl− cyan adiam Cl− 3 &
2828
acolor WALL gray adiam WALL 3
29-
thermo 500
3029

3130
variable walltopz equal xcm(walltop,z)
3231
variable wallbotz equal xcm(wallbot,z)
3332
variable deltaz equal v_walltopz−v_wallbotz
34-
fix myat1 all ave/time 100 1 100 v_deltaz file interwall_distance.dat
33+
34+
thermo 250
35+
thermo_style custom step temp etotal press v_deltaz
3536

3637
run 30000
3738

Lines changed: 242 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,242 @@
1+
using 8 OpenMP thread(s) per MPI task
2+
using multi-threaded neighbor list subroutines
3+
Reading data file ...
4+
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+
reading atom labelmap ...
7+
reading bond labelmap ...
8+
reading angle labelmap ...
9+
reading atoms ...
10+
1680 atoms
11+
reading velocities ...
12+
1680 velocities
13+
scanning bonds ...
14+
2 = max bonds/atom
15+
scanning angles ...
16+
1 = max angles/atom
17+
orthogonal box = (-12.12 -12.12 -20.2) to (12.12 12.12 20.2)
18+
1 by 1 by 1 MPI processor grid
19+
reading bonds ...
20+
812 bonds
21+
reading angles ...
22+
406 angles
23+
Finding 1-2 1-3 1-4 neighbors ...
24+
special bond factors lj: 0 0 0
25+
special bond factors coul: 0 0 0
26+
2 = max # of 1-2 neighbors
27+
1 = max # of 1-3 neighbors
28+
1 = max # of 1-4 neighbors
29+
2 = max # of special neighbors
30+
special bonds CPU = 0.001 seconds
31+
read_data CPU = 0.042 seconds
32+
1218 atoms in group H2O
33+
15 atoms in group Na
34+
15 atoms in group Cl
35+
30 atoms in group ions
36+
1248 atoms in group fluid
37+
432 atoms in group wall
38+
852 atoms in group top
39+
828 atoms in group bot
40+
216 atoms in group walltop
41+
216 atoms in group wallbot
42+
Finding SHAKE clusters ...
43+
0 = # of size 2 clusters
44+
0 = # of size 3 clusters
45+
0 = # of size 4 clusters
46+
406 = # of frozen angles
47+
find clusters CPU = 0.001 seconds
48+
PPPM initialization ...
49+
extracting TIP4P info from pair style
50+
using 12-bit tables for long-range coulomb (src/kspace.cpp:342)
51+
G vector (1/distance) = 0.25237451
52+
grid = 18 18 60
53+
stencil order = 5
54+
estimated absolute RMS force accuracy = 0.0034985124
55+
estimated relative force accuracy = 1.0535666e-05
56+
using double precision KISS FFT
57+
3d grid and FFT values/proc = 39375 19440
58+
WARNING: Communication cutoff 0 is shorter than a bond length based estimate of 3.4358. This may lead to errors. (src/comm.cpp:731)
59+
WARNING: Increasing communication cutoff to 15.1118 for TIP4P pair style (src/KSPACE/pair_lj_cut_tip4p_long.cpp:497)
60+
Generated 9 of 10 mixed pair_coeff terms from geometric mixing rule
61+
Last active /omp style is kspace_style pppm/tip4p/omp
62+
Neighbor list info ...
63+
update: every = 1 steps, delay = 0 steps, check = yes
64+
max neighbors/atom: 2000, page size: 100000
65+
master list distance cutoff = 14.3092
66+
ghost atom cutoff = 15.1118
67+
binsize = 7.1546, bins = 4 4 6
68+
1 neighbor lists, perpetual/occasional/extra = 1 0 0
69+
(1) pair lj/cut/tip4p/long/omp, perpetual
70+
attributes: half, newton on, omp
71+
pair build: half/bin/newton/omp
72+
stencil: half/bin/3d
73+
bin: standard
74+
Setting up Verlet run ...
75+
Unit style : real
76+
Current step : 0
77+
Time step : 1
78+
Per MPI rank memory allocation (min/avg/max) = 19.96 | 19.96 | 19.96 Mbytes
79+
Step Temp TotEng Press v_deltaz
80+
0 195.26511 -37795.526 -20887.597 28.28
81+
250 232.27823 -37436.953 -13859.156 28.224131
82+
500 289.71547 -36997.694 -18733.784 28.213748
83+
750 291.51658 -36752.986 -12759.68 28.328293
84+
1000 297.97401 -36707.271 -18403.708 28.483078
85+
1250 289.47179 -36730.103 -15694.087 28.688668
86+
1500 303.28306 -36664.834 -16608.648 28.967119
87+
1750 294.98678 -36710.3 -17064.448 29.322353
88+
2000 300.14536 -36623.92 -17289.549 29.660241
89+
2250 308.32131 -36612.464 -17311.766 30.025099
90+
2500 300.2547 -36642.101 -15850.768 30.337654
91+
2750 304.09099 -36563.928 -18967.245 30.644654
92+
3000 297.80502 -36598.736 -16633.14 30.934611
93+
3250 295.44758 -36518.415 -18657.304 31.096237
94+
3500 288.46243 -36589.598 -16198.531 31.237927
95+
3750 294.05745 -36549.131 -17609.755 31.338167
96+
4000 303.90312 -36532.629 -16843.768 31.351265
97+
4250 295.93646 -36532.516 -17280.201 31.297871
98+
4500 306.4059 -36544.084 -18244.31 31.177856
99+
4750 312.01639 -36507.157 -16426.913 31.035481
100+
5000 307.29778 -36570.29 -18249.507 30.803341
101+
5250 297.01732 -36615.761 -16498.598 30.483898
102+
5500 281.56765 -36708.988 -16897.581 30.198443
103+
5750 305.87057 -36636.778 -16622.415 29.969421
104+
6000 302.51018 -36672.061 -17138.142 29.667817
105+
6250 297.39648 -36601.905 -15524.3 29.356708
106+
6500 297.21136 -36748.479 -15223.489 29.141286
107+
6750 294.44548 -36798.889 -16588.259 29.006534
108+
7000 309.15698 -36703.184 -15499.214 28.838859
109+
7250 295.49969 -36785.618 -16496.846 28.746626
110+
7500 309.14217 -36750.967 -16384.561 28.667253
111+
7750 304.88662 -36672.637 -16266.985 28.565564
112+
8000 299.30197 -36746.816 -14988.715 28.481843
113+
8250 315.87161 -36694.905 -17070.05 28.483576
114+
8500 298.15169 -36786.688 -15417.079 28.466934
115+
8750 291.1702 -36847.007 -16277.272 28.536366
116+
9000 303.66364 -36765.338 -15349.339 28.620093
117+
9250 303.54607 -36751.535 -15742.63 28.714115
118+
9500 304.71282 -36665.132 -17932.517 28.805149
119+
9750 293.93516 -36747.021 -15616.272 28.825629
120+
10000 297.50483 -36746.717 -15628.795 28.79897
121+
10250 295.83392 -36823.61 -16458.109 28.779699
122+
10500 311.78216 -36748.274 -17558.384 28.765269
123+
10750 301.01847 -36733.893 -15559.865 28.646696
124+
11000 307.47095 -36734.922 -16735.635 28.551303
125+
11250 291.57328 -36821.668 -16207.85 28.458455
126+
11500 313.87763 -36770.642 -16377.887 28.363781
127+
11750 302.69333 -36851.592 -15949.515 28.340738
128+
12000 307.22569 -36758.367 -16844.056 28.298383
129+
12250 296.01918 -36804.895 -16067.9 28.207218
130+
12500 298.01113 -36828.93 -16299.135 28.165025
131+
12750 297.94507 -36836.593 -15721.749 28.172412
132+
13000 316.948 -36789.252 -16646.288 28.204538
133+
13250 293.63566 -36842.032 -15624.255 28.289008
134+
13500 310.5345 -36757.278 -15790.753 28.321949
135+
13750 301.00951 -36770.515 -15254.694 28.417951
136+
14000 291.82107 -36838.788 -16409.696 28.552703
137+
14250 306.03961 -36751.848 -14850.42 28.559422
138+
14500 291.13322 -36841.462 -15702.619 28.579752
139+
14750 300.82882 -36788.809 -15472.009 28.614837
140+
15000 305.09861 -36801.509 -16090.026 28.658203
141+
15250 303.28965 -36843.091 -16246.215 28.630459
142+
15500 295.42715 -36918.226 -15839.213 28.572414
143+
15750 304.29863 -36835.68 -17016.14 28.538192
144+
16000 292.78191 -36885.377 -15436.873 28.485205
145+
16250 286.3344 -36974.478 -15764.088 28.372474
146+
16500 306.47139 -36883.187 -16397.852 28.287448
147+
16750 293.60715 -36916.544 -15026.719 28.241182
148+
17000 312.66807 -36838.022 -15561.737 28.197392
149+
17250 295.68257 -36908.815 -15980.842 28.233347
150+
17500 299.68448 -36874.043 -16209.851 28.199537
151+
17750 307.22711 -36805.123 -14556.366 28.137894
152+
18000 292.99391 -36879.878 -16759.836 28.150913
153+
18250 311.03378 -36822.505 -15672.263 28.170514
154+
18500 302.26081 -36854.251 -14639.495 28.222761
155+
18750 291.2757 -36894.901 -16655.637 28.29753
156+
19000 311.76207 -36828.821 -14765.978 28.309174
157+
19250 304.08573 -36921.78 -16174.531 28.397196
158+
19500 294.4363 -36886.812 -15614.509 28.479546
159+
19750 314.84002 -36791.314 -15805.311 28.571846
160+
20000 310.98039 -36891.139 -16475.706 28.63118
161+
20250 295.96939 -36924.108 -14884.407 28.663669
162+
20500 290.34475 -36855.33 -16684.759 28.645933
163+
20750 305.47907 -36814.52 -15174.217 28.696914
164+
21000 295.69633 -36910.395 -16942.206 28.720366
165+
21250 304.50195 -36820.533 -15684.019 28.586479
166+
21500 294.27848 -36897.687 -15504.534 28.453431
167+
21750 307.8989 -36855.62 -16126.539 28.297444
168+
22000 296.87866 -36933.722 -15843.975 28.126083
169+
22250 305.12031 -36909.05 -16665.104 27.914203
170+
22500 303.6656 -36882.759 -15782.095 27.649354
171+
22750 303.19051 -36957.99 -13737.512 27.517987
172+
23000 289.068 -37004.639 -16860.431 27.408123
173+
23250 307.10849 -36902.97 -13575.588 27.362659
174+
23500 301.9796 -36964.7 -16138.705 27.341708
175+
23750 302.04615 -36943.06 -14682.908 27.446369
176+
24000 303.55071 -36916.648 -15769.225 27.638065
177+
24250 299.28723 -36921.37 -16222.902 27.728968
178+
24500 291.5983 -37019.435 -15465.817 27.80032
179+
24750 298.12473 -36935.211 -15972.57 27.873797
180+
25000 285.7955 -36987.666 -15532.856 27.865816
181+
25250 303.25167 -36884.418 -16895.863 27.812628
182+
25500 291.64331 -36948.742 -15313.099 27.825571
183+
25750 303.21897 -36909.115 -15854.083 27.814838
184+
26000 302.53357 -36939.146 -14137.918 27.861024
185+
26250 295.26883 -36989.282 -16115.572 27.868712
186+
26500 305.17131 -36897.871 -14681.182 27.92563
187+
26750 288.76941 -36986.603 -16103.981 27.91584
188+
27000 291.80769 -36984.93 -15484.922 27.923419
189+
27250 304.23374 -36892.366 -14278.612 27.953653
190+
27500 299.41784 -36991.213 -15858.494 27.918312
191+
27750 308.39833 -36923.553 -14879.879 27.943377
192+
28000 302.77869 -36943.642 -15824.154 27.961717
193+
28250 301.42839 -36967.04 -14710.463 27.923713
194+
28500 303.69052 -36998.79 -16159.865 27.934355
195+
28750 313.40796 -36935.563 -15593.739 27.906203
196+
29000 314.33693 -36945.419 -15453.239 27.919606
197+
29250 297.23048 -36988.607 -15800.301 27.909852
198+
29500 317.0411 -36907.326 -13785.11 27.916182
199+
29750 306.62569 -36988.639 -16055.811 27.931907
200+
30000 284.41998 -37029.035 -15326.199 27.92206
201+
Loop time of 671.775 on 8 procs for 30000 steps with 1680 atoms
202+
203+
Performance: 3.858 ns/day, 6.220 hours/ns, 44.658 timesteps/s, 75.025 katom-step/s
204+
812.1% CPU use with 1 MPI tasks x 8 OpenMP threads
205+
206+
MPI task timing breakdown:
207+
Section | min time | avg time | max time |%varavg| %total
208+
---------------------------------------------------------------
209+
Pair | 277.08 | 277.08 | 277.08 | 0.0 | 41.25
210+
Bond | 0.63486 | 0.63486 | 0.63486 | 0.0 | 0.09
211+
Kspace | 338.5 | 338.5 | 338.5 | 0.0 | 50.39
212+
Neigh | 19.484 | 19.484 | 19.484 | 0.0 | 2.90
213+
Comm | 4.1445 | 4.1445 | 4.1445 | 0.0 | 0.62
214+
Output | 13.359 | 13.359 | 13.359 | 0.0 | 1.99
215+
Modify | 18.077 | 18.077 | 18.077 | 0.0 | 2.69
216+
Other | | 0.4928 | | | 0.07
217+
218+
Nlocal: 1680 ave 1680 max 1680 min
219+
Histogram: 1 0 0 0 0 0 0 0 0 0
220+
Nghost: 6841 ave 6841 max 6841 min
221+
Histogram: 1 0 0 0 0 0 0 0 0 0
222+
Neighs: 795654 ave 795654 max 795654 min
223+
Histogram: 1 0 0 0 0 0 0 0 0 0
224+
225+
Total # of neighbors = 795654
226+
Ave neighs/atom = 473.60357
227+
Ave special neighs/atom = 1.45
228+
Neighbor list builds = 1443
229+
Dangerous builds = 0
230+
System init for write_data ...
231+
PPPM initialization ...
232+
extracting TIP4P info from pair style
233+
using 12-bit tables for long-range coulomb (src/kspace.cpp:342)
234+
G vector (1/distance) = 0.25237451
235+
grid = 18 18 60
236+
stencil order = 5
237+
estimated absolute RMS force accuracy = 0.0034985124
238+
estimated relative force accuracy = 1.0535666e-05
239+
using double precision KISS FFT
240+
3d grid and FFT values/proc = 39375 19440
241+
Generated 9 of 10 mixed pair_coeff terms from geometric mixing rule
242+
Last active /omp style is kspace_style pppm/tip4p/omp
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Time-averaged data for fix myat1
2+
# TimeStep f_mysf1[1] f_mysf2[1]
3+
1000 -4.37215 2.286
4+
2000 1.86016 8.2834
5+
3000 -1.98866 3.10032
6+
4000 -3.03073 4.76226
7+
5000 -2.74076 0.585792
8+
6000 -3.11492 -0.888404

files/tutorial4/solution/shearing.lmp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pair_style lj/cut/tip4p/long O H O−H H−O−H 0.1546 12.0
88
kspace_style pppm/tip4p 1.0e−5
99
kspace_modify slab 3.0
1010

11-
read_data minimize.data
11+
read_data equilibrate.data
1212

1313
include parameters.inc
1414
include groups.inc
@@ -23,13 +23,14 @@ fix_modify mynvt2 temp Twall
2323

2424
fix myshk H2O shake 1.0e−5 200 0 b O−H a H−O−H
2525
fix myrct all recenter NULL NULL 0
26+
timestep 1.0
2627

2728
fix mysf1 walltop setforce 0 NULL NULL
2829
fix mysf2 wallbot setforce 0 NULL NULL
2930
velocity wallbot set −2e−4 NULL NULL
3031
velocity walltop set 2e−4 NULL NULL
3132

32-
dump mydmp all image 200 myimage-*.ppm type type &
33+
dump mydmp all image 250 myimage-*.ppm type type &
3334
shiny 0.1 box no 0.01 view 90 0 zoom 1.8
3435
dump_modify mydmp backcolor white &
3536
acolor O red adiam O 2 &
@@ -38,22 +39,19 @@ dump_modify mydmp backcolor white &
3839
acolor Cl− cyan adiam Cl− 3 &
3940
acolor WALL gray adiam WALL 3
4041

41-
thermo 500
42+
thermo 250
4243
thermo_modify temp Tfluid
4344
thermo_style custom step temp etotal f_mysf1[1] f_mysf2[1]
4445

4546
compute cc1 H2O chunk/atom bin/1d z 0.0 1.0
4647
compute cc2 wall chunk/atom bin/1d z 0.0 1.0
4748
compute cc3 ions chunk/atom bin/1d z 0.0 1.0
49+
4850
fix myac1 H2O ave/chunk 10 15000 200000 &
4951
cc1 density/mass vx file shearing-water.dat
5052
fix myac2 wall ave/chunk 10 15000 200000 &
5153
cc2 density/mass vx file shearing-wall.dat
5254
fix myac3 ions ave/chunk 10 15000 200000 &
5355
cc3 density/mass vx file shearing-ions.dat
54-
fix myat1 all ave/time 10 100 1000 f_mysf1[1] &
55-
f_mysf2[1] file shearing-forces.dat
5656

57-
timestep 1.0
5857
run 200000
59-
write_data system.data nocoeff

journal-article.bib

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,3 +735,14 @@ @article{kadaoluwa2021systematic
735735
year={2021},
736736
publisher={ACS Publications}
737737
}
738+
739+
@article{mills1955remeasurement,
740+
title={A remeasurement of the self-diffusion coefficients of sodium ion in aqueous sodium chloride solutions},
741+
author={Mills, Reginald},
742+
journal={Journal of the American Chemical Society},
743+
volume={77},
744+
number={23},
745+
pages={6116--6119},
746+
year={1955},
747+
publisher={ACS Publications}
748+
}

0 commit comments

Comments
 (0)