@@ -23,7 +23,6 @@ file in a text editor of your choice, and copy the following into it:
2323 kspace_style pppm/tip4p 1.0e-5
2424 kspace_modify slab 3.0
2525
26-
2726 .. admonition :: If you are using LAMMPS-GUI
2827 :class: gui
2928
@@ -32,8 +31,9 @@ file in a text editor of your choice, and copy the following into it:
3231 The editor should display the following content corresponding to **create.lmp **
3332
3433These lines are used to define the most basic parameters, including the
35- atom, bond, and angle styles, as well as the non-bonded interaction
36- potential. Here, ``lj/cut/tip4p/long `` imposes a Lennard-Jones potential with
34+ atom style, the forms of the non-bonded,
35+ bond, and angle potentials, as well as other specifics of
36+ the non-bonded interactions. Here, ``lj/cut/tip4p/long `` imposes a Lennard-Jones potential with
3737a cut-off at :math: `12 \,\text {Å}` and a long-range Coulomb potential.
3838The parameters ``O ``, ``H ``, ``O-H ``, and ``H-O-H `` correspond
3939respectively to the oxygens, hydrogens, O-H bonds, and H-O-H angle constraints of
@@ -82,7 +82,8 @@ along the :math:`x` direction. The ``create_box`` command creates a simulation
8282and 1 type of angle (both required by the water molecules).
8383The parameters for these bond and angle constraints will be given later. The ``extra (...) ``
8484keywords are for memory allocation. Finally, the ``labelmap `` commands assign
85- alphanumeric type labels to each numeric atom type, bond type, and angle type.
85+ alphanumeric type labels to each numeric atom type, bond type, and angle type, concepts
86+ already introduced in previous tutorials.
8687
8788Now, we can add atoms to the system. First, let us create two sub-regions corresponding
8889respectively to the two solid walls, and create a larger region from the union of the
@@ -116,7 +117,7 @@ bonds, and angles. Add the following lines to **create.lmp**:
116117
117118 Within the last three lines, a ``region `` named ``rliquid `` is
118119created based on the last defined lattice, ``fcc 4.04 ``. ``rliquid ``
119- will be used for depositing the water molecules. The ``molecule `` command
120+ will be used for introducing the water molecules. The ``molecule `` command
120121opens up the molecule template called **water.mol **, and names the
121122associated molecule ``h2omol ``. The new molecules are placed on the
122123``fcc 4.04 `` lattice by the ``create_atoms `` command. The first
@@ -209,8 +210,9 @@ Finally, the **parameters.inc** file contains the following two lines:
209210
210211 The ``bond_coeff `` command, used here for the O-H bond of the water
211212molecule, sets both the spring constant of the harmonic potential and the
212- equilibrium bond distance of :math: `0.9572 ~\text {Å}`. The constant can be 0 for a
213- rigid water molecule because the SHAKE algorithm will maintain the rigid
213+ equilibrium bond distance of :math: `0.9572 ~\text {Å}`. The force constant can be 0 for a
214+ rigid water molecule because the SHAKE algorithm which, will be used
215+ in the input at a later step, will constrain the intramolecular
214216structure of the water molecule (see below) :cite: `ryckaert1977numerical, andersen1983rattle `.
215217Similarly, the ``angle_coeff `` command for the H-O-H angle of the water molecule sets
216218the force constant of the angular harmonic potential to 0 and the equilibrium
@@ -265,8 +267,8 @@ Finally, add the following lines into **create.lmp**:
265267
266268 write_data create.data nocoeff
267269
268- The ``run 0 `` command runs the simulation for 0 steps , which is sufficient for
269- creating the system and saving its state. The ``write_data `` command
270+ The ``run 0 `` command initializes the simulation, which is required for cleanly
271+ saving the state, but it does not advance positions or velocities. The ``write_data `` command
270272generates a file called **system.data ** containing the information required
271273to restart the simulation from the final configuration produced by this input
272274file. With the ``nocoeff `` option, the parameters from the force field are
@@ -322,7 +324,8 @@ The only difference from the previous input is that, instead of creating a new
322324box and new atoms, we open the previously created **create.data ** file.
323325
324326Now, let us use the SHAKE algorithm to maintain the shape of the
325- water molecules :cite: `ryckaert1977numerical, andersen1983rattle `.
327+ water molecules :cite: `ryckaert1977numerical, andersen1983rattle `
328+ by adding the following line to the script.
326329
327330.. code-block :: lammps
328331
@@ -375,8 +378,8 @@ Let us equilibrate further the entire system by letting both fluid and wall
375378relax at ambient temperature. Here, the commands are written within the same
376379**equilibrate.lmp ** file, right after the ``reset_timestep `` command.
377380
378- Let us update the positions of all the atoms and use a Nosé-Hoover
379- thermostat. Add the following lines to **equilibrate.lmp **:
381+ Let us do a molecular dynamics simulation using
382+ the Nosé-Hoover thermostat. Add the following lines to **equilibrate.lmp **:
380383
381384.. code-block :: lammps
382385
@@ -555,9 +558,10 @@ and ``f_mysf2[1]``. Add these lines to **shearing.lmp**:
555558 thermo_style custom step temp etotal f_mysf1[1] f_mysf2[1]
556559
557560 Let us also extract the density and velocity profiles using
558- the ``chunk/atom `` and ``ave/chunk `` commands. These
559- commands discretize the simulation domain into spatial bins and compute and output
560- average properties of the atoms belonging to each bin, here the velocity
561+ the ``chunk/atom `` and ``ave/chunk `` commands. When deployed as
562+ below, these commands discretize the simulation domain
563+ into spatial bins and compute and output average proper-
564+ ties of the atoms belonging to each bin, here the velocity
561565along :math: `x` (``vx ``) within the bins. Add the following lines to **shearing.lmp **:
562566
563567.. code-block :: lammps
0 commit comments