@@ -23,10 +23,9 @@ following content corresponding to **mixing.lmp**:
23
23
24
24
The ``class2 `` styles compute a 6/9 Lennard-Jones potential :cite: `sun1998compass `.
25
25
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 .
27
27
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
30
29
of the cross coefficients:
31
30
32
31
.. math ::
@@ -71,8 +70,10 @@ Finally, let us use the ``minimize`` command to reduce the potential energy of t
71
70
minimize 1.0e-4 1.0e-6 100 1000
72
71
reset_timestep 0
73
72
73
+ These commands were covered in earlier tutorials and should already be familiar.
74
+
74
75
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
76
77
to the CNT axis is maintained fixed because the CNT is periodic in that direction.
77
78
Add the following commands to **mixing.lmp **:
78
79
@@ -91,7 +92,8 @@ Add the following commands to **mixing.lmp**:
91
92
run 9000
92
93
93
94
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.
95
97
96
98
For the next stage of the simulation, we will use ``dump image `` to
97
99
output images every 200 steps:
@@ -120,7 +122,7 @@ system in a file named **mixing.data**:
120
122
121
123
write_data mixing.data
122
124
123
- For visualization purposes, the atoms from the CNT ``group `` is moved
125
+ For visualization purposes, the atoms of the CNT ``group `` are moved
124
126
to the center of the box using ``fix recenter ``.
125
127
As the time progresses, the system density,
126
128
:math: `\rho `, gradually converges toward the target value
@@ -291,7 +293,10 @@ line to **polymerize.lmp**:
291
293
292
294
With the ``stabilization `` keyword, the ``bond/react `` command will
293
295
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,
295
300
each reaction is stabilized for 60 time steps. Each ``react `` keyword
296
301
corresponds to a reaction, e.g., a transformation of ``mol1 `` into ``mol2 ``
297
302
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.
329
334
the group ``all ``. Instead, the group of atoms not currently
330
335
undergoing stabilization is named by appending ``_REACT `` to the user-provided prefix.
331
336
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:
334
340
335
341
.. code-block :: lammps
336
342
@@ -344,11 +350,11 @@ while ensuring that the CNT remains centered in the simulation box:
344
350
run 25000
345
351
346
352
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.
352
358
353
359
.. figure :: figures/REACT-reacting-dm.png
354
360
:class: only-dark
0 commit comments