Skip to content

Commit 7e6dee5

Browse files
committed
improved coloring of LJ-evolution
1 parent 37b332d commit 7e6dee5

7 files changed

Lines changed: 21 additions & 20 deletions

File tree

figures/LJ-evolution.png

84.4 KB
Loading

files/tutorial1/.manifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ solution/improved.min.png
2323
solution/improved.md.lmp
2424
solution/improved.md.log
2525
solution/improved.md.dat
26+
solution/improved.md.png
2627
solution/min_coords.data
2728

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

files/tutorial1/solution/improved.md.lmp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ thermo 1000
3131
thermo_style custom step temp pe ke etotal press v_n1_in v_n2_in c_sumcoor12
3232

3333
dump mydmp all image 100 dump.md.*.ppm type type shiny 0.1 box no 0.01 view 0 0 zoom 1.8 fsaa yes
34-
dump_modify mydmp adiam 1 1 adiam 2 3 acolor 1 darkturquoise acolor 2 darkblue backcolor white
34+
dump_modify mydmp adiam 1 1 adiam 2 3 acolor 1 turquoise acolor 2 royalblue backcolor white
3535

3636
# 5) Run
3737
velocity all create 1.0 49284 mom yes dist gaussian

files/tutorial1/solution/improved.md.log

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Reading data file ...
77
1150 atoms
88
reading velocities ...
99
1150 velocities
10-
read_data CPU = 0.008 seconds
10+
read_data CPU = 0.016 seconds
1111
1000 atoms in group grp_t1
1212
150 atoms in group grp_t2
1313
165 atoms in group grp_in
@@ -351,20 +351,20 @@ Per MPI rank memory allocation (min/avg/max) = 12.62 | 12.62 | 12.62 Mbytes
351351
298000 0.99957512 -0.21748891 1.4979859 1.2804969 0.016812985 200 59 0.054054054
352352
299000 1.0174594 -0.24203802 1.5247876 1.2827496 0.016035544 202 60 0.045738046
353353
300000 0.99574358 -0.22448684 1.4922438 1.267757 0.015433292 191 59 0.043659044
354-
Loop time of 524.734 on 8 procs for 300000 steps with 1089 atoms
354+
Loop time of 611.436 on 8 procs for 300000 steps with 1089 atoms
355355

356-
Performance: 246982.373 tau/day, 571.718 timesteps/s, 622.601 katom-step/s
357-
438.2% CPU use with 1 MPI tasks x 8 OpenMP threads
356+
Performance: 211959.960 tau/day, 490.648 timesteps/s, 534.316 katom-step/s
357+
456.3% CPU use with 1 MPI tasks x 8 OpenMP threads
358358

359359
MPI task timing breakdown:
360360
Section | min time | avg time | max time |%varavg| %total
361361
---------------------------------------------------------------
362-
Pair | 17.781 | 17.781 | 17.781 | 0.0 | 3.39
363-
Neigh | 8.0319 | 8.0319 | 8.0319 | 0.0 | 1.53
364-
Comm | 6.3951 | 6.3951 | 6.3951 | 0.0 | 1.22
365-
Output | 429.93 | 429.93 | 429.93 | 0.0 | 81.93
366-
Modify | 60.066 | 60.066 | 60.066 | 0.0 | 11.45
367-
Other | | 2.532 | | | 0.48
362+
Pair | 19.164 | 19.164 | 19.164 | 0.0 | 3.13
363+
Neigh | 9.4899 | 9.4899 | 9.4899 | 0.0 | 1.55
364+
Comm | 7.3851 | 7.3851 | 7.3851 | 0.0 | 1.21
365+
Output | 504.32 | 504.32 | 504.32 | 0.0 | 82.48
366+
Modify | 68.283 | 68.283 | 68.283 | 0.0 | 11.17
367+
Other | | 2.798 | | | 0.46
368368

369369
Nlocal: 1089 ave 1089 max 1089 min
370370
Histogram: 1 0 0 0 0 0 0 0 0 0
280 KB
Loading

files/tutorial1/solution/min_coords.data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LAMMPS data file via write_data, version 27 Jun 2024, timestep = 1000, units = lj
1+
LAMMPS data file via write_data, version 29 Aug 2024, timestep = 1000, units = lj
22

33
1150 atoms
44
2 atom types

lammps-tutorials.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ \subsubsection{My first input}
845845
size 800 800 zoom 1.452 shiny 0.7 fsaa yes &
846846
view 80 10 box yes 0.025 axes no 0.0 0.0 &
847847
center s 0.483725 0.510373 0.510373
848-
dump_modify viz pad 9 boxcolor darkblue &
848+
dump_modify viz pad 9 boxcolor royalblue &
849849
backcolor white adiam 1 1.6 adiam 2 4.8
850850
\end{lstlisting}
851851
This command tells LAMMPS to generate NetPBM format images every 100
@@ -1057,9 +1057,8 @@ \subsubsection{Improving the script}
10571057
\end{figure}
10581058

10591059
Finally, let us complete the script by adding the following lines to
1060-
\flecmd{improved.md.lmp}. Note that there is no
1061-
need for a \lmpcmd{Settings} section, because the settings are taken
1062-
from the \flecmd{.data} file.
1060+
\flecmd{improved.md.lmp}. Note that there is no need for a \lmpcmd{Settings}
1061+
section, as the settings are taken from the \flecmd{.data} file.
10631062
\begin{lstlisting}
10641063
# 4) Visualization
10651064
thermo 1000
@@ -1068,12 +1067,13 @@ \subsubsection{Improving the script}
10681067

10691068
dump mydmp all image 100 dump.md.*.ppm type type &
10701069
shiny 0.1 box no 0.01 view 0 0 zoom 1.8 fsaa yes
1071-
dump_modify mydmp adiam 1 1 adiam 2 3 acolor 1 &
1072-
darkturquoise acolor 2 darkblue backcolor white
1070+
dump_modify mydmp adiam 1 1 adiam 2 3 acolor 1 &
1071+
turquoise acolor 2 royalblue backcolor white
10731072
\end{lstlisting}
1074-
The two variables, \lmpcmd{n1\_in}, \lmpcmd{n2\_in}, along with the compute
1073+
The two variables \lmpcmd{n1\_in}, \lmpcmd{n2\_in}, along with the compute
10751074
\lmpcmd{sumcoor12}, were added to the list of information printed during
1076-
the simulation.
1075+
the simulation. Additionally, images of the system will be created with
1076+
slightly less saturated colors than the default ones.
10771077

10781078
Finally, add the following lines to \flecmd{improved.md.lmp}:
10791079
\begin{lstlisting}

0 commit comments

Comments
 (0)