@@ -30,7 +30,7 @@ and a **.data** file is imported by the ``read_data`` command.
30
30
.. include :: ../shared/needhelp.rst
31
31
32
32
The initial topology given by |silica_data_5 |
33
- is a small amorphous silica structure. This structure was generated in a prior
33
+ corresponds to a small amorphous silica structure. This structure was generated in a prior
34
34
simulation using the Vashishta force field :cite: `vashishta1990interaction `.
35
35
If you open the **silica.data **
36
36
file, you will find in the ``Atoms `` section that all silicon atoms have a
@@ -46,7 +46,7 @@ charge of :math:`q = 1.1\,\text{e}`, and all oxygen atoms have a charge of :math
46
46
Assigning the same charge to all atoms of the same type is common with many
47
47
force fields, including the force fields used in the previous tutorials. This
48
48
changes once ReaxFF is used: the charge of each atom will adjust to its local
49
- environment.
49
+ environment through charge equilibration .
50
50
51
51
Next, copy the following three crucial lines into the **relax.lmp ** file:
52
52
@@ -56,7 +56,7 @@ Next, copy the following three crucial lines into the **relax.lmp** file:
56
56
pair_coeff * * ffield.reax.CHOFe Si O
57
57
fix myqeq all qeq/reaxff 1 0.0 10.0 1.0e-6 reaxff maxiter 400
58
58
59
- In this case, the ``pair_style reaxff `` is used without a control file. The
59
+ In this case, the ``pair_style reaxff `` is used without a control file (see note below) . The
60
60
``safezone `` and ``mincap `` keywords are added to prevent
61
61
allocation issues, which sometimes can trigger segmentation faults and
62
62
``bondchk `` errors. The ``pair_coeff `` command uses the |reaxCHOFe_inc_5 |
@@ -94,7 +94,11 @@ evolution of the charges during the simulation:
94
94
variable qO equal charge(grpO)/count(grpO)
95
95
variable vq atom q
96
96
97
- To print the averaged charges ``qSi `` and ``qO `` using the
97
+ The definition of the equal style variables qSi and qO make
98
+ use of functions pre-defined within LAMMPS that allow
99
+ calculating the total charge of atoms belonging to a group
100
+ (``charge() ``) and the total number of atoms in the group
101
+ (``count() ``). To print the averaged charges ``qSi `` and ``qO `` using the
98
102
``thermo_style `` command, and create images of the system. Add the
99
103
following lines to **relax.lmp **:
100
104
@@ -158,7 +162,7 @@ density of the system:
158
162
159
163
run 5000
160
164
161
- write_data relax.data
165
+ write_data relax.data nofix
162
166
163
167
.. admonition :: Note
164
168
:class: non-title-info
@@ -167,6 +171,8 @@ density of the system:
167
171
box can change independently. This is particularly relevant for solids and other
168
172
systems where anisotropic stresses may develop.
169
173
174
+ The ``write_data `` command is used with the nofix keyword to print a data file
175
+ without extra sections from the ``reaxff/species `` command.
170
176
Run the **relax.lmp ** file using LAMMPS. As seen from **relax.species **,
171
177
only one species is detected, called ``O384Si192 ``, representing the entire system.
172
178
@@ -284,7 +290,7 @@ the following line to **deform.lmp**:
284
290
285
291
run 25000
286
292
287
- write_data deform.data
293
+ write_data deform.data nofix
288
294
289
295
The ``fix deform `` command applies a continuous deformation
290
296
by elongating the simulation box along the x-axis at a constant engineering
@@ -406,10 +412,12 @@ types of atoms, and output the charge values into log files:
406
412
407
413
fix myspec all reaxff/species 5 1 5 decorate.species element Si O H
408
414
415
+
416
+ The commands above are, once again, similar to the ones of the previous script.
409
417
Here, the :math: `+1 \mathrm {e}{-10 }` was added to the denominator of the ``variable qH ``
410
- to avoid dividing by 0 at the beginning of the simulation. Finally, let us
411
- create a loop with 10 steps, and create two hydrogen atoms at random locations at
412
- every step:
418
+ to avoid dividing by 0 at the beginning of the simulation, as no hydrogen atoms exists in
419
+ the simulation domain yet. Finally, let us create a loop with 10 steps, and
420
+ create two hydrogen atoms at random locations at every step:
413
421
414
422
.. code-block :: lammps
415
423
0 commit comments