Skip to content

Commit dd0bd86

Browse files
committed
keep improving tutorial 5
1 parent ea38cb8 commit dd0bd86

File tree

2 files changed

+44
-36
lines changed

2 files changed

+44
-36
lines changed

docs/sphinx/source/tutorial5/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
The objective of this tutorial is to demonstrate how the reactive force field ReaxFF
1515
can be used to calculate the partial charges of a system undergoing deformation, as well as
1616
the formation and breaking of chemical bonds :cite:`van2001reaxff, zou2012investigation`.
17-
The system simulated in this tutorial is a block of silicon dioxide :math:`\text{SiO}_2` (Fig.~\ref{fig:SIO})
17+
The system simulated in this tutorial is a block of silicon dioxide :math:`\text{SiO}_2`
1818
which is deformed until it ruptures. Particular attention is given to the evolution
1919
of atomic charges during deformation, with a focus on tracking chemical reactions
2020
resulting from the deformation over time.

docs/sphinx/source/tutorial5/tutorial.rst

Lines changed: 43 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ Prepare and relax
33

44
The first step is to relax the structure with ReaxFF, which which will be achieved using
55
molecular dynamics. To ensure the system equilibrates properly, we will monitor certain
6-
parameters over time, such as the system volume. To set up this
7-
tutorial, select ``Start Tutorial 5`` from the
8-
``Tutorials`` menu of LAMMPS--GUI and follow the instructions.
9-
The editor should display the following content corresponding to **relax.lmp**:
6+
parameters over time, such as the system volume.
7+
8+
Create a folder if needed and
9+
place the initial input file, **relax.lmp**, into it. Then, open the
10+
file in a text editor of your choice, and copy the following into it:
1011

1112
.. code-block:: lammps
1213
@@ -15,6 +16,13 @@ The editor should display the following content corresponding to **relax.lmp**:
1516
1617
read_data silica.data
1718
19+
.. admonition:: If you are using LAMMPS-GUI
20+
:class: gui
21+
22+
To begin this tutorial, select ``Start Tutorial 5`` from the
23+
``Tutorials`` menu of LAMMPS--GUI and follow the instructions.
24+
The editor should display the following content corresponding to **relax.lmp**
25+
1826
So far, the input is very similar to what was seen in the previous tutorials.
1927
Some basic parameters are defined (``units`` and ``atom_style``),
2028
and a **.data** file is imported by the ``read_data`` command.
@@ -134,15 +142,13 @@ Run the **relax.lmp** file using LAMMPS. As seen from **relax.species**,
134142
only one species is detected, called ``O384Si192``, representing the entire system.
135143

136144
As the simulation progresses, the charge of every atom fluctuates
137-
because it is adjusting to the local environment of the atom (Fig.~\ref{fig:SIO-charge}\,a).
145+
because it is adjusting to the local environment of the atom.
138146
It is also observed that the averaged charges for silicon and oxygen
139147
atoms fluctuate significantly at the beginning of the simulation, corresponding
140148
to a rapid change in the system volume, which causes interatomic distances to
141-
shift quickly (Fig.~\ref{fig:SIO-charge}\,b). The atoms with the
149+
shift quickly. The atoms with the
142150
most extreme charges are located at structural defects,
143-
such as dangling oxygen groups (Fig.~\ref{fig:SIO-slice}).
144-
Finally, the generated **.histo** files can be used to
145-
plot the probability distributions, :math:`P(q)` (see Fig.~\ref{fig:SIO-distribution}\,a).
151+
such as dangling oxygen groups.
146152

147153
.. figure:: figures/SIO-charge-dm.png
148154
:class: only-dark
@@ -154,25 +160,28 @@ plot the probability distributions, :math:`P(q)` (see Fig.~\ref{fig:SIO-distribu
154160

155161
.. container:: figurelegend
156162

157-
a) Average charge per atom of the silicon, :math:`q_\text{Si}`, atoms as
163+
Figure: a) Average charge per atom of the silicon, :math:`q_\text{Si}`, atoms as
158164
a function of time, :math:`t`, during equilibration of the :math:`\text{SiO}_2`
159165
system. b) Volume of the system, :math:`V`, as a function of :math:`t`.
160166

161-
.. figure:: figures/deformed-light.png
167+
.. figure:: figures/silicon-light.png
162168
:alt: Amorphous silica colored by charges using VMD
163169
:class: only-light
164170

165-
.. figure:: figures/deformed-dark.png
171+
.. figure:: figures/silicon-dark.png
166172
:alt: Amorphous silica colored by charges using VMD
167173
:class: only-dark
168174

169175
.. container:: figurelegend
170176

171-
Figure: A slice of the amorphous silica after deformation, where atoms are colored by their charges.
177+
Figure: A slice of the amorphous silica, where atoms are colored by their charges.
172178
Dangling oxygen groups appear in greenish, bulk Si atoms with a charge of about
173179
:math:`1.8~\text{e}` appear in red/orange, and bulk O atoms with a charge of about
174180
:math:`-0.9~\text{e}` appear in blue.
175181

182+
Finally, the generated **.histo** files can be used to
183+
plot the probability distributions, :math:`P(q)`.
184+
176185
.. figure:: figures/SIO-distribution-dm.png
177186
:class: only-dark
178187
:alt: Average charge per atom of the silicon
@@ -183,14 +192,13 @@ plot the probability distributions, :math:`P(q)` (see Fig.~\ref{fig:SIO-distribu
183192

184193
.. container:: figurelegend
185194

186-
a) Probability distributions of charge of silicon (positive, blue) and oxygen
195+
Figure: a) Probability distributions of charge of silicon (positive, blue) and oxygen
187196
(negative, orange) atoms during the equilibration of the :math:`\text{SiO}_2`
188197
system. b) Same probability distributions as in panel (a) after the deformation.
189198

190199
Deform the structure
191200
--------------------
192201

193-
194202
Let us apply a deformation to the structure to force some :math:`\text{Si}-\text{O}`
195203
bonds to break (and eventually re-assemble). Open the **deform.lmp**
196204
file, which must contain the following lines:
@@ -235,22 +243,6 @@ Nosé-Hoover thermostat without a barostat:
235243
Here, no barostat is used because the change in the box volume will be imposed
236244
by the ``fix deform``.
237245

238-
.. figure:: figures/SIO-deformed-charge-dm.png
239-
:class: only-dark
240-
:alt: Evolution of the pressure and distance for the elecrolyte
241-
242-
.. figure:: figures/SIO-deformed-charge.png
243-
:class: only-light
244-
:alt: Evolution of the pressure and distance for the elecrolyte
245-
246-
.. container:: figurelegend
247-
248-
a) Average charge per atom of the silicon, :math:`q_\text{Si}`, atoms as
249-
a function of time, :math:`t`, during deformation of the :math:`\text{SiO}_2` system.
250-
The break down of the
251-
silica structure occurs near :math:`t = 11`\,ps. b) Temperature, :math:`T`, of the
252-
system as a function of :math:`t`.
253-
254246
Let us run for 5000 steps without deformation, then apply the ``fix deform``
255247
to progressively elongate the box along the :math:`x`-axis during 25000 steps. Add
256248
the following line to **deform.lmp**:
@@ -268,15 +260,31 @@ the following line to **deform.lmp**:
268260
Run the **deform.lmp** file using LAMMPS. During the deformation, the charge
269261
values progressively evolve until the structure eventually breaks down. After the
270262
structure breaks down, the charges equilibrate near new average values that differ
271-
from the initial averages (Fig.~\ref{fig:SIO-deformed-charge}\,a). The difference
263+
from the initial averages. The difference
272264
between the initial and the final charges can be explained by the presence of
273265
defects, as well as new solid/vacuum interfaces, and the fact that surface atoms
274-
typically have different charges compared to bulk atoms (Fig.~\ref{fig:SIO-deformed}).
266+
typically have different charges compared to bulk atoms.
275267
You can also see a sharp increase in temperature during the rupture of
276-
the material (Fig.~\ref{fig:SIO-deformed-charge}\,b).
268+
the material.
269+
270+
.. figure:: figures/deformed-charge-dm.png
271+
:class: only-dark
272+
:alt: Evolution of the pressure and distance for the elecrolyte
273+
274+
.. figure:: figures/deformed-charge.png
275+
:class: only-light
276+
:alt: Evolution of the pressure and distance for the elecrolyte
277+
278+
.. container:: figurelegend
279+
280+
a) Average charge per atom of the silicon, :math:`q_\text{Si}`, atoms as
281+
a function of time, :math:`t`, during deformation of the :math:`\text{SiO}_2` system.
282+
The break down of the
283+
silica structure occurs near :math:`t = 11` ps. b) Temperature, :math:`T`, of the
284+
system as a function of :math:`t`.
277285

278286
You can examine the charge distribution after deformation, as well as during
279-
deformation (Fig.~\ref{fig:SIO-distribution}\,b). As expected, the final
287+
deformation. As expected, the final
280288
charge distribution slightly differs from the previously calculated one. If
281289
no new species were formed during the simulation, the **deform.species** file
282290
should look like this:

0 commit comments

Comments
 (0)