@@ -37,7 +37,7 @@ except that they are specifically designed for the four-point water model. As a
3737LAMMPS automatically creates a four-point water molecule, assigning type O
3838atoms as oxygen and type H atoms as hydrogen. The fourth massless atom (M) of the
3939TIP4P water molecule does not have to be defined explicitly, and the value of
40- :math: `0.1546 \,\text {\AA {} }` corresponds to the O-M distance of the
40+ :math: `0.1546 \,\text {Å }` corresponds to the O-M distance of the
4141TIP4P-2005 water model :cite: `abascal2005general `. All other atoms in the simulation
4242are treated as usual, with long-range Coulomb interactions. Another novelty, here, is
4343the use of ``kspace modify slab 3.0 `` that is combined with the non-periodic
@@ -51,9 +51,8 @@ Let us create the box and the label maps by adding the following lines to **crea
5151
5252 lattice fcc 4.04
5353 region box block -3 3 -3 3 -5 5
54- create_box 5 box bond/types 1 angle/types 1 &
55- extra/bond/per/atom 2 extra/angle/per/atom 1 &
56- extra/special/per/atom 2
54+ create_box 5 box bond/types 1 angle/types 1 extra/bond/per/atom 2 extra/angle/per/atom 1 &
55+ extra/special/per/atom 2
5756 labelmap atom 1 O 2 H 3 Na+ 4 Cl- 5 WALL
5857 labelmap bond 1 O-H
5958 labelmap angle 1 H-O-H
@@ -62,7 +61,7 @@ The ``lattice`` command defines the unit cell. Here, the face-centered cubic (f
6261with a scale factor of 4.04 has been chosen for the future positioning of the atoms
6362of the walls. The ``region `` command defines a geometric region of space. By choosing
6463:math: `\text {xlo}=-3 ` and :math: `\text {xlo}=3 `, and because we have previously chosen a lattice with a scale
65- factor of 4.04, the region box extends from :math: `-12.12 ~\text {\AA {}} ` to :math: `12.12 ~\text {\AA {} }`
64+ factor of 4.04, the region box extends from :math: `-12.12 ~\text {Å} ` to :math: `12.12 ~\text {Å }`
6665along the :math: `x` direction. The ``create_box `` command creates a simulation box with
67665 types of atoms: the oxygen and hydrogen of the water molecules, the two ions (:math: `\text {Na}^+`,
6867:math: `\text {Cl}^-`), and the atoms from the walls. The simulation contains 1 type of bond
@@ -87,12 +86,15 @@ following lines to **create.lmp**:
8786 Atoms will be placed in the positions of the previously defined lattice, thus
8887forming fcc solids.
8988
90- To add the water molecules, the molecule
91- template called \h ref{\f ilepath tutorial4/water.mol}{\d wlcmd{water.mol}}
89+ To add the water molecules, the molecule template called |water_mol_4 |
9290must be located next to **create.lmp **. The template contains all the
9391necessary information concerning the water molecule, such as atom positions,
9492bonds, and angles. Add the following lines to **create.lmp **:
9593
94+ .. |water_mol_4 | raw :: html
95+
96+ <a href="../../../../../.dependencies/lammpstutorials-inputs/tutorial4/water.mol" target="_blank">water.mol</a>
97+
9698.. code-block :: lammps
9799
98100 region rliquid block INF INF INF INF -2 2
@@ -138,11 +140,16 @@ lines into **create.lmp**:
138140 include parameters.inc
139141 include groups.inc
140142
141- Both \h ref{\f ilepath tutorial4/parameters.inc}{\d wlcmd{parameters.inc}}
142- and \h ref{\f ilepath tutorial4/groups.inc}{\d wlcmd{groups.inc}} files
143- must be located next to **create.lmp **.
143+ Both |parameters_inc_4 | and |groups_inc_4 | files
144+ must be located next to **create.lmp **. The **parameters.inc ** file contains the masses, as follows:
145+
146+ .. |parameters_inc_4 | raw :: html
147+
148+ <a href="../../../../../.dependencies/lammpstutorials-inputs/tutorial4/parameters.inc" target="_blank">parameters.inc</a>
144149
145- The **parameters.inc ** file contains the masses, as follows:
150+ .. |groups_inc_4 | raw :: html
151+
152+ <a href="../../../../../.dependencies/lammpstutorials-inputs/tutorial4/groups.inc" target="_blank">groups.inc</a>
146153
147154.. code-block :: lammps
148155
@@ -182,14 +189,15 @@ to make the walls less hydrophilic, the value of
182189:math: `\epsilon _\text {O-WALL}` was reduced.
183190
184191Finally, the **parameters.inc ** file contains the following two lines:
192+
185193.. code-block :: lammps
186194
187195 bond_coeff O-H 0 0.9572
188196 angle_coeff H-O-H 0 104.52
189197
190198 The ``bond_coeff `` command, used here for the O-H bond of the water
191199molecule, sets both the spring constant of the harmonic potential and the
192- equilibrium bond distance of :math: `0.9572 ~\text {\AA {} }`. The constant can be 0 for a
200+ equilibrium bond distance of :math: `0.9572 ~\text {Å }`. The constant can be 0 for a
193201rigid water molecule because the SHAKE algorithm will maintain the rigid
194202structure of the water molecule (see below) :cite: `ryckaert1977numerical, andersen1983rattle `.
195203Similarly, the ``angle_coeff `` command for the H-O-H angle of the water molecule sets
@@ -208,7 +216,7 @@ several ``group`` commands to selects atoms based on their types:
208216 group fluid union H2O ions
209217
210218 The **groups.inc ** file also defines the ``walltop `` and ``wallbot ``
211- groups, which contain the WALL atoms located in the :math: `z > 0 ` and :math: `z < 0 ` regions, respectively::
219+ groups, which contain the WALL atoms located in the :math: `z > 0 ` and :math: `z < 0 ` regions, respectively:
212220
213221.. code-block :: lammps
214222
@@ -228,7 +236,6 @@ to delete about :math:`15~\%` of the water molecules:
228236
229237 delete_atoms random fraction 0.15 yes H2O NULL 482793 mol yes
230238
231-
232239 To create an image of the system, add the following ``dump `` image
233240into **create.lmp ** (see also Fig.~\r ef{fig:NANOSHEAR-system}):
234241
@@ -525,7 +532,7 @@ along :math:`x` (``vx``) within the bins. Add the following lines to **shearing
525532
526533 run 200000
527534
528- Here, a bin size of :math: `0.25 \,\text {\AA {} }` is used for the density
535+ Here, a bin size of :math: `0.25 \,\text {Å }` is used for the density
529536profiles generated by the ``ave/chunk `` commands, and three
530537**.dat ** files are created for the water, the walls, and the ions,
531538respectively. With values of ``10 15000 200000 ``, the velocity
@@ -552,7 +559,7 @@ the fluid on the shearing wall, and :math:`\dot{\gamma}` the shear rate
552559:cite: `gravelle2021violations `. Here, the shear rate is
553560approximately :math: `\dot {\gamma } = 20 \cdot 10 ^9 \,\text {s}^{-1 }` (Fig.~\r ef{fig:NANOSHEAR-profiles}),
554561the average force on each wall is given by ``f_mysf1[1] `` and ``f_mysf2[1] ``
555- and is approximately :math: `2.7 \,\mathrm {kcal/mol/\AA }` in magnitude. Using a surface area
562+ and is approximately :math: `2.7 \,\mathrm {kcal/mol/Å }` in magnitude. Using a surface area
556563for the walls of :math: `A = 6 \cdot 10 ^{-18 }\,\text {m}^2 `, one obtains an estimate for
557564the shear viscosity for the confined fluid of :math: `\eta = 3.1 \,\text {mPa.s}` using Eq.~\e qref{eq:eta}.
558565
0 commit comments