Skip to content

Commit 15be6f6

Browse files
committed
deploy: 193a17f
1 parent b8700e0 commit 15be6f6

File tree

8 files changed

+79
-57
lines changed

8 files changed

+79
-57
lines changed
0 Bytes
Binary file not shown.
Binary file not shown.
1.14 KB
Binary file not shown.

sphinx/build/html/_sources/tutorial8/tutorial.rst.txt

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

sphinx/build/html/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sphinx/build/html/tutorial8/reactive-molecular-dynamics.html

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,9 @@ <h2>Creating the system<a class="headerlink" href="#creating-the-system" title="
322322
</div>
323323
<p>The <code class="docutils literal notranslate"><span class="pre">class2</span></code> styles compute a 6/9 Lennard-Jones potential <span id="id3">[<a class="reference internal" href="../non-tutorials/bibliography.html#id59" title="Huai Sun. Compass: an ab initio force-field optimized for condensed-phase applications overview with details on alkane and benzene compounds. The Journal of Physical Chemistry B, 102(38):7338–7364, 1998.">59</a>]</span>.
324324
The <code class="docutils literal notranslate"><span class="pre">class2</span></code> bond, angle, dihedral, and improper styles are used as
325-
well, see the documentation for a description of their respective potentials.
325+
well, see the documentation for a description the respective potential form they, each, prescribe.
326326
The <code class="docutils literal notranslate"><span class="pre">tail</span> <span class="pre">yes</span></code> option adds long-range van der Waals tail corrections to the
327-
energy and pressure.
328-
The <code class="docutils literal notranslate"><span class="pre">mix</span> <span class="pre">sixthpower</span></code> imposes the following mixing rule for the calculation
327+
energy and pressure. The <code class="docutils literal notranslate"><span class="pre">mix</span> <span class="pre">sixthpower</span></code> imposes the following mixing rule for the calculation
329328
of the cross coefficients:</p>
330329
<div class="math-wrapper docutils container">
331330
<div class="math notranslate nohighlight">
@@ -354,8 +353,9 @@ <h2>Creating the system<a class="headerlink" href="#creating-the-system" title="
354353
<span class="k">reset_timestep</span><span class="w"> </span><span class="m">0</span>
355354
</pre></div>
356355
</div>
356+
<p>These commands were covered in earlier tutorials and should already be familiar.</p>
357357
<p>Then, let us densify the system to a target value of <span class="math notranslate nohighlight">\(0.9~\text{g/cm}^3\)</span>
358-
by manually shrinking the simulation box at a constant rate. The dimension parallel
358+
by imposing the shrinking of the simulation box at a constant rate. The dimension parallel
359359
to the CNT axis is maintained fixed because the CNT is periodic in that direction.
360360
Add the following commands to <strong>mixing.lmp</strong>:</p>
361361
<div class="highlight-lammps notranslate"><div class="highlight"><pre><span></span><span class="k">velocity </span><span class="nv nv-Identifier">all</span><span class="w"> </span><span class="n">create</span><span class="w"> </span><span class="m">530</span><span class="w"> </span><span class="m">9845</span><span class="w"> </span><span class="n">dist</span><span class="w"> </span><span class="n">gaussian</span><span class="w"> </span><span class="n">rot</span><span class="w"> </span><span class="n">yes</span>
@@ -372,7 +372,8 @@ <h2>Creating the system<a class="headerlink" href="#creating-the-system" title="
372372
</pre></div>
373373
</div>
374374
<p>The <code class="docutils literal notranslate"><span class="pre">fix</span> <span class="pre">halt</span></code> command is used to stop the box shrinkage once the
375-
target density is reached.</p>
375+
target density is reached, and the other commands
376+
should be familiar from previous tutorials.</p>
376377
<p>For the next stage of the simulation, we will use <code class="docutils literal notranslate"><span class="pre">dump</span> <span class="pre">image</span></code> to
377378
output images every 200 steps:</p>
378379
<div class="highlight-lammps notranslate"><div class="highlight"><pre><span></span><span class="k">dump </span><span class="nv nv-Identifier">viz</span><span class="w"> </span><span class="nv nv-Identifier">all</span><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="m">200</span><span class="w"> </span><span class="n">myimage</span><span class="o">-*</span><span class="n">.ppm</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="n">shiny</span><span class="w"> </span><span class="m">0.1</span><span class="w"> </span><span class="n">box</span><span class="w"> </span><span class="n">no</span><span class="w"> </span><span class="m">0.01</span><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="m">1000</span><span class="w"> </span><span class="m">1000</span><span class="w"> </span><span class="n">view</span><span class="w"> </span><span class="m">90</span><span class="w"> </span><span class="m">0</span><span class="w"> </span><span class="n">zoom</span><span class="w"> </span><span class="m">1.8</span><span class="w"> </span><span class="n">fsaa</span><span class="w"> </span><span class="n">yes</span><span class="w"> </span><span class="n">bond</span><span class="w"> </span><span class="n">atom</span><span class="w"> </span><span class="m">0.5</span>
@@ -396,7 +397,7 @@ <h2>Creating the system<a class="headerlink" href="#creating-the-system" title="
396397
<span class="k">write_data </span><span class="nv nv-Identifier">mixing.data</span>
397398
</pre></div>
398399
</div>
399-
<p>For visualization purposes, the atoms from the CNT <code class="docutils literal notranslate"><span class="pre">group</span></code> is moved
400+
<p>For visualization purposes, the atoms of the CNT <code class="docutils literal notranslate"><span class="pre">group</span></code> are moved
400401
to the center of the box using <code class="docutils literal notranslate"><span class="pre">fix</span> <span class="pre">recenter</span></code>.
401402
As the time progresses, the system density,
402403
<span class="math notranslate nohighlight">\(\rho\)</span>, gradually converges toward the target value
@@ -514,7 +515,10 @@ <h3>Simulating the reaction<a class="headerlink" href="#simulating-the-reaction"
514515
</div>
515516
<p>With the <code class="docutils literal notranslate"><span class="pre">stabilization</span></code> keyword, the <code class="docutils literal notranslate"><span class="pre">bond/react</span></code> command will
516517
stabilize the atoms involved in the reaction using the <code class="docutils literal notranslate"><span class="pre">nve/limit</span></code>
517-
command with a maximum displacement of <span class="math notranslate nohighlight">\(0.03\,\text{Å}\)</span>. By default,
518+
command with a maximum displacement of <span class="math notranslate nohighlight">\(0.03\,\text{Å}\)</span>.
519+
The <code class="docutils literal notranslate"><span class="pre">fix</span> <span class="pre">nve/limit</span></code> command functions similar to
520+
<code class="docutils literal notranslate"><span class="pre">fix</span> <span class="pre">nve</span></code>, but restricts how far atoms can move in a single
521+
time step, even with very large forces. By default,
518522
each reaction is stabilized for 60 time steps. Each <code class="docutils literal notranslate"><span class="pre">react</span></code> keyword
519523
corresponds to a reaction, e.g., a transformation of <code class="docutils literal notranslate"><span class="pre">mol1</span></code> into <code class="docutils literal notranslate"><span class="pre">mol2</span></code>
520524
based on the atom map <strong>M-M.rxnmap</strong>. Implementation details about each reaction,
@@ -546,8 +550,9 @@ <h3>Simulating the reaction<a class="headerlink" href="#simulating-the-reaction"
546550
the group <code class="docutils literal notranslate"><span class="pre">all</span></code>. Instead, the group of atoms not currently
547551
undergoing stabilization is named by appending <code class="docutils literal notranslate"><span class="pre">_REACT</span></code> to the user-provided prefix.</p>
548552
</div>
549-
<p>Add the following commands to <strong>polymerize.lmp</strong> to operate in the NVT ensemble
550-
while ensuring that the CNT remains centered in the simulation box:</p>
553+
<p>Add the following commands to <strong>polymerize.lmp</strong> to carry out the dynamics
554+
using a Nosé-Hoover thermostat while ensuring that the CNT remains centered in
555+
the simulation box:</p>
551556
<div class="highlight-lammps notranslate"><div class="highlight"><pre><span></span><span class="k">fix </span><span class="nv nv-Identifier">mynvt</span><span class="w"> </span><span class="nv nv-Identifier">statted_grp_REACT</span><span class="w"> </span><span class="n">nvt</span><span class="w"> </span><span class="n">temp</span><span class="w"> </span><span class="m">530</span><span class="w"> </span><span class="m">530</span><span class="w"> </span><span class="m">100</span>
552557
<span class="k">group </span><span class="nv nv-Identifier">CNT</span><span class="w"> </span><span class="n">molecule</span><span class="w"> </span><span class="m">1</span><span class="w"> </span><span class="m">2</span><span class="w"> </span><span class="m">3</span>
553558
<span class="k">fix </span><span class="nv nv-Identifier">myrec</span><span class="w"> </span><span class="nv nv-Identifier">CNT</span><span class="w"> </span><span class="n">recenter</span><span class="w"> </span><span class="n">NULL</span><span class="w"> </span><span class="m">0</span><span class="w"> </span><span class="m">0</span><span class="w"> </span><span class="n">shift</span><span class="w"> </span><span class="n">all</span>
@@ -559,11 +564,11 @@ <h3>Simulating the reaction<a class="headerlink" href="#simulating-the-reaction"
559564
</pre></div>
560565
</div>
561566
<p>Here, the <code class="docutils literal notranslate"><span class="pre">thermo</span> <span class="pre">custom</span></code> command is used
562-
to print the cumulative reaction counts from <code class="docutils literal notranslate"><span class="pre">fix</span> <span class="pre">rxn</span></code>.
563-
Run the simulation using LAMMPS. As the simulation progresses, polymer chains are
564-
observed forming. During this reaction process, the
565-
temperature of the system remains well-controlled,
566-
while the number of reactions, <span class="math notranslate nohighlight">\(N_r\)</span>, increases with time.</p>
567+
to print the cumulative reaction counts which are calculated by <code class="docutils literal notranslate"><span class="pre">fix</span> <span class="pre">rxn</span></code>
568+
and thus can be extracted from it. Run the simulation using LAMMPS. As the
569+
simulation progresses, polymer chains are observed forming. During this reaction
570+
process, the temperature of the system remains well-controlled, while the number
571+
of reactions, <span class="math notranslate nohighlight">\(N_r\)</span>, increases with time.</p>
567572
<figure class="align-default">
568573
<img alt="Evolution of reacting species" class="only-dark" src="../_images/REACT-reacting-dm.png" />
569574
</figure>

0 commit comments

Comments
 (0)