Skip to content

Commit 30768e7

Browse files
committed
updated figures tutorial 1
1 parent 851dcee commit 30768e7

19 files changed

+708
-993
lines changed

figures/LJ-energy.png

307 Bytes
Loading

figures/chart-1.png

-34.1 KB
Binary file not shown.

figures/chart-and-output.png

139 KB
Loading

figures/output-1.png

-68.1 KB
Binary file not shown.

files/tutorial1/.manifest

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ improved.md.lmp
1010

1111
# 2) solution files
1212
# only downloaded on request
13+
solution/improved.md.dat
14+
solution/improved.md.lmp
15+
solution/improved.md.log
16+
solution/improved.md.mp4
17+
solution/improved.md.png
18+
solution/improved.min.data
19+
solution/improved.min.lmp
20+
solution/improved.min.log
21+
solution/improved.min.png
1322
solution/initial.lmp
1423
solution/initial.log
15-
solution/initial.parta.dat
16-
solution/initial.partb.dat
17-
solution/initial.run0.png
1824
solution/initial.min.png
1925
solution/initial.mp4
20-
solution/improved.min.lmp
21-
solution/improved.min.log
22-
solution/improved.min.png
23-
solution/improved.md.lmp
24-
solution/improved.md.log
25-
solution/improved.md.dat
26-
solution/improved.md.png
27-
solution/min_coords.data
26+
solution/initial.png
27+
2828

2929
# 3) folders not known to LAMMPS GUI will be skipped

files/tutorial1/solution/improved.md.lmp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ units lj
88
dimension 3
99
atom_style atomic
1010
boundary p p p
11+
1112
# 2) System definition
1213
pair_style lj/cut 4.0
1314
read_data improved.min.data
@@ -30,13 +31,17 @@ variable n1_in equal count(grp_t1,cyl_in)
3031
variable n2_in equal count(grp_t2,cyl_in)
3132
compute coor12 grp_t1 coord/atom cutoff 2.0 group grp_t2
3233
compute sumcoor12 grp_t1 reduce ave c_coor12
34+
3335
# 3) Settings
36+
3437
# 4) Visualization
3538
thermo 1000
36-
thermo_style custom step temp pe ke etotal press v_n1_in v_n2_in c_sumcoor12
37-
38-
dump viz all image 100 myimage.md.*.ppm type type shiny 0.1 box no 0.01 view 0 0 zoom 1.8 fsaa yes
39-
dump_modify viz adiam 1 1 adiam 2 3 acolor 1 turquoise acolor 2 royalblue backcolor white
39+
thermo_style custom step temp pe ke etotal &
40+
press v_n1_in v_n2_in c_sumcoor12
41+
dump viz all image 100 myimage-*.ppm type type &
42+
shiny 0.1 box no 0.01 view 0 0 zoom 1.8 fsaa yes size 800 800
43+
dump_modify viz adiam 1 1 adiam 2 3 acolor 1 &
44+
turquoise acolor 2 royalblue backcolor white
4045

4146
# 5) Run
4247
velocity all create 1.0 49284 mom yes dist gaussian

files/tutorial1/solution/improved.md.log

Lines changed: 316 additions & 316 deletions
Large diffs are not rendered by default.
258 KB
Loading

files/tutorial1/solution/improved.min.lmp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ units lj
88
dimension 3
99
atom_style atomic
1010
boundary p p p
11+
1112
# 2) System definition
1213
region simbox block -20 20 -20 20 -20 20
1314
create_box 2 simbox
@@ -16,17 +17,21 @@ region cyl_in cylinder z 0 0 10 INF INF side in
1617
region cyl_out cylinder z 0 0 10 INF INF side out
1718
create_atoms 1 random 1000 34134 cyl_out
1819
create_atoms 2 random 150 12756 cyl_in
20+
1921
# 3) Settings
2022
mass 1 1.0
2123
mass 2 10.0
2224
pair_style lj/cut 4.0
2325
pair_coeff 1 1 1.0 1.0
2426
pair_coeff 2 2 0.5 3.0
27+
2528
# 4) Visualization
2629
thermo 10
2730
thermo_style custom step etotal press
31+
2832
# 5) Run
2933
minimize 1.0e-6 1.0e-6 1000 10000
34+
3035
# 6) Save system
3136
write_data improved.min.data
3237

files/tutorial1/solution/improved.min.log

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Created orthogonal box = (-20 -20 -20) to (20 20 20)
44
1 by 1 by 1 MPI processor grid
55
Created 1000 atoms
66
using lattice units in orthogonal box = (-20 -20 -20) to (20 20 20)
7-
create_atoms CPU = 0.002 seconds
7+
create_atoms CPU = 0.001 seconds
88
Created 150 atoms
99
using lattice units in orthogonal box = (-20 -20 -20) to (20 20 20)
1010
create_atoms CPU = 0.000 seconds
@@ -128,9 +128,9 @@ Per MPI rank memory allocation (min/avg/max) = 10.44 | 10.44 | 10.44 Mbytes
128128
980 -1.3509009 -0.00062855692
129129
990 -1.3621364 -0.00057827024
130130
1000 -1.3722835 -0.00049492281
131-
Loop time of 0.756427 on 8 procs for 1000 steps with 1150 atoms
131+
Loop time of 0.126597 on 8 procs for 1000 steps with 1150 atoms
132132

133-
869.8% CPU use with 1 MPI tasks x 8 OpenMP threads
133+
884.9% CPU use with 1 MPI tasks x 8 OpenMP threads
134134

135135
Minimization stats:
136136
Stopping criterion = max iterations
@@ -144,12 +144,12 @@ Minimization stats:
144144
MPI task timing breakdown:
145145
Section | min time | avg time | max time |%varavg| %total
146146
---------------------------------------------------------------
147-
Pair | 0.2483 | 0.2483 | 0.2483 | 0.0 | 32.83
148-
Neigh | 0.11973 | 0.11973 | 0.11973 | 0.0 | 15.83
149-
Comm | 0.10413 | 0.10413 | 0.10413 | 0.0 | 13.77
150-
Output | 0.0049911 | 0.0049911 | 0.0049911 | 0.0 | 0.66
151-
Modify | 0.091781 | 0.091781 | 0.091781 | 0.0 | 12.13
152-
Other | | 0.1875 | | | 24.79
147+
Pair | 0.045 | 0.045 | 0.045 | 0.0 | 35.55
148+
Neigh | 0.022573 | 0.022573 | 0.022573 | 0.0 | 17.83
149+
Comm | 0.015767 | 0.015767 | 0.015767 | 0.0 | 12.45
150+
Output | 0.000642 | 0.000642 | 0.000642 | 0.0 | 0.51
151+
Modify | 0.014301 | 0.014301 | 0.014301 | 0.0 | 11.30
152+
Other | | 0.02832 | | | 22.37
153153

154154
Nlocal: 1150 ave 1150 max 1150 min
155155
Histogram: 1 0 0 0 0 0 0 0 0 0

0 commit comments

Comments
 (0)