File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -450,7 +450,8 @@ the following:
450
450
view 80 10 box yes 0.025 axes no 0.0 0.0 center s 0.483725 0.510373 0.510373
451
451
dump_modify viz pad 9 boxcolor royalblue backcolor white adiam 1 1.6 adiam 2 4.8
452
452
453
- This command tells LAMMPS to generate NetPBM format images every 100
453
+ The $\& $ is used to continue the command on a new line.
454
+ These commands tell LAMMPS to generate NetPBM format images every 100
454
455
steps. The two ``type `` keywords are for *color * and
455
456
*diameter *, respectively. Run the **initial.lmp ** using
456
457
LAMMPS again, and a new window named ``Slide Show `` will pop up.
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ lines into **water.lmp**:
86
86
molecule h2omol water.mol
87
87
create_atoms 0 random 700 87910 NULL mol h2omol 454756 overlap 1.0 maxtry 50
88
88
89
+ The first parameter is 0, meaning that the atom IDs from
90
+ the **water.mol ** file will be used.
89
91
The ``overlap 1.0 `` option of the ``create_atoms `` command ensures
90
92
that no atoms are placed exactly in the same position, as this would cause the
91
93
simulation to crash. The ``maxtry 50 `` asks LAMMPS to try at most 50 times
@@ -139,7 +141,9 @@ Resetting the step of the simulation to 0 using the
139
141
``reset_timestep `` command is optional.
140
142
It is used here because the number of iterations performed by the ``minimize ``
141
143
command is usually not a round number, since the minimization stops when one of
142
- four criteria is reached. We will use ``fix npt `` to control the temperature
144
+ four criteria is reached, which can disrupt the intended frequency
145
+ of outputs such as ``dump `` commands that depend on the timestep count.
146
+ We will use ``fix npt `` to control the temperature
143
147
and pressure of the molecules with a Nosé-Hoover thermostat and barostat,
144
148
respectively :cite: `nose1984unified, hoover1985canonical, martyna1994constant `.
145
149
Add the following line into **water.lmp **:
You can’t perform that action at this time.
0 commit comments