Skip to content

Commit 193a17f

Browse files
committed
ensured consistency of tutorial 8
1 parent 02618ec commit 193a17f

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

docs/sphinx/source/tutorial8/tutorial.rst

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ following content corresponding to **mixing.lmp**:
2323
2424
The ``class2`` styles compute a 6/9 Lennard-Jones potential :cite:`sun1998compass`.
2525
The ``class2`` bond, angle, dihedral, and improper styles are used as
26-
well, see the documentation for a description of their respective potentials.
26+
well, see the documentation for a description the respective potential form they, each, prescribe.
2727
The ``tail yes`` option adds long-range van der Waals tail corrections to the
28-
energy and pressure.
29-
The ``mix sixthpower`` imposes the following mixing rule for the calculation
28+
energy and pressure. The ``mix sixthpower`` imposes the following mixing rule for the calculation
3029
of the cross coefficients:
3130

3231
.. math::
@@ -71,8 +70,10 @@ Finally, let us use the ``minimize`` command to reduce the potential energy of t
7170
minimize 1.0e-4 1.0e-6 100 1000
7271
reset_timestep 0
7372
73+
These commands were covered in earlier tutorials and should already be familiar.
74+
7475
Then, let us densify the system to a target value of :math:`0.9~\text{g/cm}^3`
75-
by manually shrinking the simulation box at a constant rate. The dimension parallel
76+
by imposing the shrinking of the simulation box at a constant rate. The dimension parallel
7677
to the CNT axis is maintained fixed because the CNT is periodic in that direction.
7778
Add the following commands to **mixing.lmp**:
7879

@@ -91,7 +92,8 @@ Add the following commands to **mixing.lmp**:
9192
run 9000
9293
9394
The ``fix halt`` command is used to stop the box shrinkage once the
94-
target density is reached.
95+
target density is reached, and the other commands
96+
should be familiar from previous tutorials.
9597

9698
For the next stage of the simulation, we will use ``dump image`` to
9799
output images every 200 steps:
@@ -120,7 +122,7 @@ system in a file named **mixing.data**:
120122
121123
write_data mixing.data
122124
123-
For visualization purposes, the atoms from the CNT ``group`` is moved
125+
For visualization purposes, the atoms of the CNT ``group`` are moved
124126
to the center of the box using ``fix recenter``.
125127
As the time progresses, the system density,
126128
:math:`\rho`, gradually converges toward the target value
@@ -291,7 +293,10 @@ line to **polymerize.lmp**:
291293
292294
With the ``stabilization`` keyword, the ``bond/react`` command will
293295
stabilize the atoms involved in the reaction using the ``nve/limit``
294-
command with a maximum displacement of :math:`0.03\,\text{Å}`. By default,
296+
command with a maximum displacement of :math:`0.03\,\text{Å}`.
297+
The ``fix nve/limit`` command functions similar to
298+
``fix nve``, but restricts how far atoms can move in a single
299+
time step, even with very large forces. By default,
295300
each reaction is stabilized for 60 time steps. Each ``react`` keyword
296301
corresponds to a reaction, e.g., a transformation of ``mol1`` into ``mol2``
297302
based on the atom map **M-M.rxnmap**. Implementation details about each reaction,
@@ -329,8 +334,9 @@ reaction sites, are also specified in this command.
329334
the group ``all``. Instead, the group of atoms not currently
330335
undergoing stabilization is named by appending ``_REACT`` to the user-provided prefix.
331336

332-
Add the following commands to **polymerize.lmp** to operate in the NVT ensemble
333-
while ensuring that the CNT remains centered in the simulation box:
337+
Add the following commands to **polymerize.lmp** to carry out the dynamics
338+
using a Nosé-Hoover thermostat while ensuring that the CNT remains centered in
339+
the simulation box:
334340

335341
.. code-block:: lammps
336342
@@ -344,11 +350,11 @@ while ensuring that the CNT remains centered in the simulation box:
344350
run 25000
345351
346352
Here, the ``thermo custom`` command is used
347-
to print the cumulative reaction counts from ``fix rxn``.
348-
Run the simulation using LAMMPS. As the simulation progresses, polymer chains are
349-
observed forming. During this reaction process, the
350-
temperature of the system remains well-controlled,
351-
while the number of reactions, :math:`N_r`, increases with time.
353+
to print the cumulative reaction counts which are calculated by ``fix rxn``
354+
and thus can be extracted from it. Run the simulation using LAMMPS. As the
355+
simulation progresses, polymer chains are observed forming. During this reaction
356+
process, the temperature of the system remains well-controlled, while the number
357+
of reactions, :math:`N_r`, increases with time.
352358

353359
.. figure:: figures/REACT-reacting-dm.png
354360
:class: only-dark

0 commit comments

Comments
 (0)