Skip to content

Commit 67d6a5f

Browse files
Merge pull request #102 from lammpstutorials/add-tutorial-8
Add tutorial 8
2 parents d1cb454 + 592f571 commit 67d6a5f

File tree

9 files changed

+41
-27
lines changed

9 files changed

+41
-27
lines changed

docs/sphinx/source/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ lammpstutorials by Simon Gravelle : LAMMPS courses for beginners
2121
tutorial5/reactive-silicon-dioxide.rst
2222
tutorial6/water-adsorption-in-silica.rst
2323
tutorial7/free-energy-calculation.rst
24+
tutorial8/reactive-molecular-dynamics.rst
2425

2526
.. toctree::
2627
:maxdepth: 2

docs/sphinx/source/non-tutorials/scope.rst

+5-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Scope
44
*****
55

6-
This set of tutorials consists of seven tutorials arranged in order of
6+
This set of tutorials consists of eight tutorials arranged in order of
77
increasing difficulty. The novelties associated with each tutorial are
88
briefly described below.
99

@@ -59,8 +59,7 @@ an energy barrier, this tutorial describes a protocol
5959
for addressing energy landscapes that are difficult to sample using
6060
classical MD or MC methods.
6161

62-
..
63-
In :ref:`bond-react-label`, a CNT embedded in
64-
nylon-6,6 polymer melt is simulated. The
65-
REACTER protocol is used to model the polymerization of nylon, and the formation
66-
of water molecules is tracked over time~\cite{gissinger2020reacter}.
62+
In :ref:`bond-react-label`, a CNT embedded in
63+
nylon-6,6 polymer melt is simulated. The
64+
REACTER protocol is used to model the polymerization of nylon, and the formation
65+
of water molecules is tracked over time~\cite{gissinger2020reacter}.
Binary file not shown.
4.59 MB
Binary file not shown.
Loading
Loading
+11-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
.. figure:: avatars/avatar_light.webp
1+
.. figure:: avatars/avatar.webp
22
:height: 250
3-
:alt: Lennard Jones atoms simulated with LAMMPS
3+
:alt: Carbon nanotube (CNT) embedded in a polymer melt composed of polystyrene with LAMMPS
44
:class: only-light
55
:align: right
66

7-
.. figure:: avatars/avatar_dark.webp
7+
.. figure:: avatars/avatar-dm.webp
88
:height: 250
9-
:alt: Lennard Jones atoms simulated with LAMMPS
9+
:alt: Carbon nanotube (CNT) embedded in a polymer melt composed of polystyrene with LAMMPS
1010
:class: only-dark
1111
:align: right
1212

13-
The goal of this tutorial is to create a model of a carbon nanotube (CNT) embedded
14-
in a polymer melt made of polystyrene (PS) (Fig.~\ref{fig:REACT}). The
15-
REACTER protocol is used to simulate the polymerization of styrene monomers, and the
16-
polymerization reaction is followed in time :cite:`gissinger2017polymer, gissinger2020reacter, gissinger2024molecular`.
17-
In contrast with AIREBO :ref:`carbon-nanotube-label`
18-
and ReaxFF :ref:`reactive-silicon-dioxide-label`, the REACTER
19-
protocol relies on the use of a *classical* force field.
13+
The goal of this tutorial is to create a model of a carbon nanotube (CNT)
14+
embedded in a polymer melt composed of polystyrene (PS). The REACTER
15+
protocol is used to simulate the polymerization of styrene monomers, and the
16+
polymerization reaction is tracked over time :cite:`gissinger2017polymer,
17+
gissinger2020reacter, gissinger2024molecular`. In contrast to AIREBO
18+
:ref:`carbon-nanotube-label` and ReaxFF :ref:`reactive-silicon-dioxide-label`,
19+
the REACTER protocol relies on the use of a *classical* force field.

docs/sphinx/source/tutorial8/tutorial.rst

+23-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Creating the system
22
===================
33

4-
To begin this tutorial, select ``Start Tutorial 8`` from the
5-
``Tutorials`` menu of LAMMPS--GUI and follow the instructions.
6-
The editor should display the following content corresponding to **mixing.lmp**:
4+
To begin this tutorial, select ``Start Tutorial 8`` from the ``Tutorials`` menu
5+
of LAMMPS--GUI and follow the instructions. The editor should display the
6+
following content corresponding to **mixing.lmp**:
77

88
.. code-block:: lammps
99
@@ -29,9 +29,13 @@ of the cross coefficients:
2929

3030
.. math::
3131
32-
\sigma_{ij} & = & 2^{-1/6} (\sigma^6_i+\sigma_j^6)^{1/6}, ~ \text{and}
32+
\sigma_{ij} = 2^{-1/6} (\sigma^6_i+\sigma_j^6)^{1/6},
3333
34-
\epsilon_{ij} & = & \dfrac{2 \sqrt{\epsilon_i \epsilon_j} \sigma^3_i \sigma^3_j}{\sigma^6_i+\sigma_j^6}.
34+
and
35+
36+
.. math::
37+
38+
\epsilon_{ij} = \dfrac{2 \sqrt{\epsilon_i \epsilon_j} \sigma^3_i \sigma^3_j}{\sigma^6_i+\sigma_j^6}.
3539
3640
Let us read the |CNT_data_8| file, which contains a periodic single-walled
3741
CNT. Add the following line to **mixing.lmp**:
@@ -170,7 +174,7 @@ The third reaction uses the prefix ``P-P``,
170174
- |P_P_post_mol_8|,
171175
- |P_P_rxnmap_8|.
172176

173-
Here, the file names for each reaction use the abbreviation `M' for monomer and `P'
177+
Here, the file names for each reaction use the abbreviation ``M`` for monomer and ``P``
174178
for polymer.
175179

176180
.. |M_M_pre_mol_8| raw:: html
@@ -275,9 +279,19 @@ based on the atom map **M-M.rxnmap**. Implementation details about each reactio
275279
such as the reaction distance cutoffs and the frequency with which to search for
276280
reaction sties, are also specified in this command.
277281

278-
ADD REACT-final FIGURE: Final configuration.
279-
The atoms from the formed polymer named ``c1``, ``c2``, and
280-
``c3`` are colored in pink.
282+
.. figure:: figures/REACT-composite-dm.png
283+
:class: only-dark
284+
:alt: Evolution of reacting species
285+
286+
.. figure:: figures/REACT-composite.png
287+
:class: only-light
288+
:alt: Evolution of reacting species
289+
290+
.. container:: figurelegend
291+
292+
Figure: Initial (left) and final (right) configuration.
293+
The atoms from the formed polymer named ``c1``, ``c2``, and
294+
``c3`` are colored in pink.
281295

282296
.. admonition:: Note
283297
:class: non-title-info

0 commit comments

Comments
 (0)