Skip to content

Commit 664d98d

Browse files
committed
added figures
1 parent 6ba2663 commit 664d98d

File tree

3 files changed

+95
-27
lines changed

3 files changed

+95
-27
lines changed

docs/sphinx/source/tutorial3/tutorial.rst

+51-11
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ or the IDs of the atoms that are connected by bonds and angles.
117117

118118
.. container:: figurelegend
119119

120-
a) Temperature, :math:`T`, of the water reservoir as a function of the
120+
Figure: a) Temperature, :math:`T`, of the water reservoir as a function of the
121121
time, :math:`t`. The horizontal dashed line is the target temperature
122122
of :math:`300 \text{K}`. b) Evolution of the system density, :math:`\rho`, with :math:`t`
123123

@@ -151,8 +151,18 @@ The ``fix npt`` allows us to impose both a temperature of :math:`300\,\text{K}`
151151
(with a damping constant of :math:`1000\,\text{fs}`). With the ``iso`` keyword,
152152
the three dimensions of the box will be re-scaled simultaneously.
153153

154-
INSERT FIGURE PEG-water The water reservoir from \hyperref[all-atom-label]{Tutorial 3}
155-
after equilibration. Oxygen atoms are in red, and hydrogen atoms are in white.
154+
.. figure:: figures/water-light.png
155+
:alt: Water reservoir from molecular dynamics simulations
156+
:class: only-light
157+
158+
.. figure:: figures/water-dark.png
159+
:alt: Water reservoir from molecular dynamics simulations
160+
:class: only-dark
161+
162+
.. container:: figurelegend
163+
164+
Figure: The water reservoir after equilibration. Oxygen atoms are in red, and
165+
hydrogen atoms are in white.
156166

157167
Let us output the system into images by adding the following commands to **water.lmp**:
158168

@@ -222,11 +232,20 @@ Now that the water reservoir is equilibrated, we can safely add the PEG polymer
222232
to the water. The PEG molecule topology was downloaded from the ATB repository
223233
:cite:`malde2011automated, oostenbrink2004biomolecular`. It has a formula
224234
:math:`\text{C}_{16}\text{H}_{34}\text{O}_{9}`, and the parameters are taken from
225-
the {GROMOS} 54A7 force field :cite:`schmid2011definition` (Fig.~\ref{fig:PEG-in-vacuum}).
235+
the GROMOS 54A7 force field :cite:`schmid2011definition`.
236+
237+
.. figure:: figures/singlePEG-light.png
238+
:alt: PEG in vacuum as simulated with LAMMPS
239+
:class: only-light
240+
241+
.. figure:: figures/singlePEG-dark.png
242+
:alt: PEG in vacuum as simulated with LAMMPS
243+
:class: only-dark
244+
245+
.. container:: figurelegend
226246

227-
INSERT FIGURE PEG-in-vacuum
228-
The PEG molecule from \hyperref[all-atom-label]{Tutorial 3}.
229-
The carbon atoms are in gray, the oxygen atoms in red, and the hydrogen atoms in white.
247+
Figure: The PEG molecule with carbon atoms in gray, oxygen atoms in red,
248+
and hydrogen atoms in white.
230249

231250
Open the file named **merge.lmp** that was downloaded
232251
alongside **water.lmp** during the tutorial setup. It only contain one line:
@@ -311,9 +330,20 @@ Let us create images of the systems:
311330
acolor OAlc darkred adiam OAlc 2.6
312331
thermo 500
313332
314-
Inlude PEG-solvated figure : The PEG molecule solvated in water.
333+
.. figure:: figures/solvatedPEG_light.png
334+
:alt: PEG in water as simulated with LAMMPS
335+
:class: only-light
336+
337+
.. figure:: figures/solvatedPEG_dark.png
338+
:alt: PEG in water as simulated with LAMMPS
339+
:class: only-dark
340+
341+
.. container:: figurelegend
342+
343+
Figure : The PEG molecule solvated in water. Water is represented as a
344+
transparent field for clarity.
315345

316-
inally, to perform a short equilibration and save the final state to
346+
Finally, to perform a short equilibration and save the final state to
317347
a **.restart** file, add the following lines to the input:
318348

319349
.. code-block:: lammps
@@ -363,7 +393,17 @@ divides these atoms into two groups, ``end1`` (i.e.,~the OAlc atom to
363393
the right of the center) and ``end2`` (i.e.,~the OAlc atom to the right
364394
of the center), for applying force during the stretching process.
365395

366-
Add figure PEG-in-water PEG molecule stretched along the :math:`x` direction in water.
396+
.. figure:: figures/pulled_peg_light.png
397+
:alt: PEG in water as simulated with LAMMPS
398+
:class: only-light
399+
400+
.. figure:: figures/pulled_peg_dark.png
401+
:alt: PEG in water as simulated with LAMMPS
402+
:class: only-dark
403+
404+
.. container:: figurelegend
405+
406+
Figure: PEG molecule stretched along the :math:`x` direction in water.
367407

368408
Add the following ``dump`` command to create images of the system:
369409

@@ -394,7 +434,7 @@ the following lines to **pull.lmp**:
394434

395435
.. container:: figurelegend
396436

397-
a) Evolution of the radius of gyration :math:`R_\text{gyr}` of the PEG molecule,
437+
Figure: a) Evolution of the radius of gyration :math:`R_\text{gyr}` of the PEG molecule,
398438
with the force applied starting at :math:`t = 15\,\text{ps}`. b) Histograms of
399439
the dihedral angles of type 1 in the absence (orange) and in the presence (blue) of the applied force.
400440

docs/sphinx/source/tutorial4/tutorial.rst

+16-6
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,20 @@ file. With the ``nocoeff`` option, the parameters from the force field are
261261
not included in the **.data** file. Run the **create.lmp** file using LAMMPS,
262262
and a file named **create.data** will be created alongside **create.lmp**.
263263

264-
ADD FIGURE NANOSHEAR-system -- Side view of the system. Periodic images are represented in darker colors.
265-
Water molecules are in red and white, :math:`\text{Na}^+` ions in purple, :math:`\text{Cl}^-`
266-
ions in lime, and wall atoms in gray. Note the absence of atomic defect at the
267-
cell boundaries.
264+
.. figure:: figures/systemcreation-light.png
265+
:alt: LAMMPS: electrolyte made of water and salt between walls
266+
:class: only-light
267+
268+
.. figure:: figures/systemcreation-dark.png
269+
:alt: LAMMPS: electrolyte made of water and salt between walls
270+
:class: only-dark
271+
272+
.. container:: figurelegend
273+
274+
Figure: Side view of the system. Periodic images are represented in darker colors.
275+
Water molecules are in red and white, :math:`\text{Na}^+` ions in purple, :math:`\text{Cl}^-`
276+
ions in lime, and wall atoms in gray. Note the absence of atomic defect at the
277+
cell boundaries.
268278

269279
\paragraph{Energy minimization}
270280

@@ -417,7 +427,7 @@ the end of the simulation (Fig.~\ref{fig:NANOSHEAR-equilibration}).
417427

418428
.. container:: figurelegend
419429

420-
a) Pressure, :math:`p`, of the nanosheared electrolyte system as a function
430+
Figure: a) Pressure, :math:`p`, of the nanosheared electrolyte system as a function
421431
of the time, :math:`t`. b) Distance between the walls, :math:`\Delta z`, as a
422432
function of :math:`t`.
423433

@@ -496,7 +506,7 @@ two ``velocity`` commands.
496506

497507
.. container:: figurelegend
498508

499-
Velocity profiles for water (blue) and walls (orange) along the :math:`z`-axis.
509+
Figure: Velocity profiles for water (blue) and walls (orange) along the :math:`z`-axis.
500510

501511
Finally, let us generate images of the systems and print the values of the
502512
forces exerted by the fluid on the walls, as given by ``f_mysf1[1]``

docs/sphinx/source/tutorial5/tutorial.rst

+28-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Prepare and relax
22
=================
33

4-
54
The first step is to relax the structure with ReaxFF, which which will be achieved using
65
molecular dynamics. To ensure the system equilibrates properly, we will monitor certain
76
parameters over time, such as the system volume. To set up this
@@ -86,11 +85,20 @@ following lines to **relax.lmp**:
8685
Here, the atoms are colored by their charges ``q``, ranging from royal blue
8786
(when :math:`q=-1\,\text{e}`) to orange-red (when :math:`q=2\,\text{e}`).
8887

89-
ADD FIGURE SIO-deformed Amorphous silicon oxide after deformation.
90-
The atoms are colored by their
91-
charges. Dangling oxygen groups appear in greenish, bulk Si atoms with a charge of
92-
about :math:`1.8~\text{e}` appear in red/orange, and bulk O atoms with a charge of
93-
about :math:`-0.9 ~ \text{e}` appear in blue.
88+
.. figure:: figures/silicon-light.png
89+
:alt: Amorphous silica colored by charges using VMD
90+
:class: only-light
91+
92+
.. figure:: figures/silicon-dark.png
93+
:alt: Amorphous silica colored by charges using VMD
94+
:class: only-dark
95+
96+
.. container:: figurelegend
97+
98+
Figure: Amorphous silicon oxide. The atoms are colored by their
99+
charges. Dangling oxygen groups appear in greenish, bulk Si atoms with a charge of
100+
about :math:`1.8~\text{e}` appear in red/orange, and bulk O atoms with a charge of
101+
about :math:`-0.9 ~ \text{e}` appear in blue.
94102

95103
We can generate histograms of the charges for each atom type using
96104
``fix ave/histo`` commands:
@@ -150,10 +158,20 @@ plot the probability distributions, :math:`P(q)` (see Fig.~\ref{fig:SIO-distribu
150158
a function of time, :math:`t`, during equilibration of the :math:`\text{SiO}_2`
151159
system. b) Volume of the system, :math:`V`, as a function of :math:`t`.
152160

153-
FIGURE SIO-slice A slice of the amorphous silica, where atoms are colored by their charges.
154-
Dangling oxygen groups appear in greenish, bulk Si atoms with a charge of about
155-
:math:`1.8~\text{e}` appear in red/orange, and bulk O atoms with a charge of about
156-
:math:`-0.9~\text{e}` appear in blue.
161+
.. figure:: figures/deformed-light.png
162+
:alt: Amorphous silica colored by charges using VMD
163+
:class: only-light
164+
165+
.. figure:: figures/deformed-dark.png
166+
:alt: Amorphous silica colored by charges using VMD
167+
:class: only-dark
168+
169+
.. container:: figurelegend
170+
171+
Figure: A slice of the amorphous silica after deformation, where atoms are colored by their charges.
172+
Dangling oxygen groups appear in greenish, bulk Si atoms with a charge of about
173+
:math:`1.8~\text{e}` appear in red/orange, and bulk O atoms with a charge of about
174+
:math:`-0.9~\text{e}` appear in blue.
157175

158176
.. figure:: figures/SIO-distribution-dm.png
159177
:class: only-dark

0 commit comments

Comments
 (0)