179179 accessible to a larger audience, the `` black box'' nature of such
180180 software packages and wide array of options and features can make it
181181 challenging to use them correctly, particularly for beginners in the
182- topic of MD simulations. LAMMPS is one such versatile molecular
182+ topic of simulations. LAMMPS is one such versatile molecular
183183 simulation code, designed for modeling particle-based systems across a
184184 broad range of materials science and computational chemistry
185185 applications, including atomistic, coarse-grained, mesoscale,
@@ -302,9 +302,9 @@ \subsection{Scope}
302302moving the walls, and the fluid velocity profile is extracted.
303303
304304In \hyperref [reactive-silicon-dioxide-label]{Tutorial 5}, the ReaxFF
305- reactive force field is used, specifically designed to simulate chemical
305+ reactive force field, which is specifically designed to simulate chemical
306306reactions by dynamically adjusting atomic interactions
307- \cite {van2001reaxff }. ReaxFF includes charge equilibration (QEq), a
307+ \cite {van2001reaxff }, is used . ReaxFF includes charge equilibration (QEq), a
308308method that allows the partial charges of atoms to adjust according to
309309their local environment.
310310
@@ -661,8 +661,8 @@ \subsubsection{My first input}
661661$ \epsilon _{22} = 0.5 $ , and $ \sigma _{22} = 3.0 $ .
662662
663663\begin {note }
664- By default, LAMMPS calculates the mixed force
665- field coefficients for different atom types using geometric averages:
664+ By default, LAMMPS calculates the mixed Lennard-Jones
665+ coefficients for pairs of atoms having distinct atom types using geometric averages:
666666 $ \epsilon _{ij} = \sqrt {\epsilon _{ii} \epsilon _{jj}}$ ,
667667 $ \sigma _{ij} = \sqrt {\sigma _{ii} \sigma _{jj}}$ . In the present case,
668668 $ \epsilon _{12} = \sqrt {1.0 \times 0.5} = 0.707 $ , and
@@ -712,7 +712,7 @@ \subsubsection{My first input}
712712\end {note }
713713
714714You can now run LAMMPS (see subsection \ref {running-lammps-label }
715- for details on running LAMMPS). The simulation should finish quickly, and with the default
715+ for details on running LAMMPS). The simulation should finish quickly, and, with the default
716716settings, \lammpsgui {} will open two windows: one displaying the console
717717output and another with a chart. The \guicmd {Output} window will display information from
718718the executed commands, including the total energy and pressure at step 0,
@@ -773,7 +773,7 @@ \subsubsection{My first input}
773773
774774The potential energy, $ U$ , decreases from a positive value to a negative value
775775(Figs.~\ref {fig:chart-log } and~\ref {fig:evolution-energy }\, a). Note that
776- during energy minimization, the potential energy equals the total energy
776+ during the energy minimization, the potential energy equals the total energy
777777of the system, $ E = U$ , since the kinetic energy, $ K$ , is zero. The
778778initially positive potential energy is expected, as the atoms are
779779created at random positions within the simulation box, with some in very
@@ -799,7 +799,7 @@ \subsubsection{My first input}
799799
800800\paragraph {Molecular dynamics }
801801
802- After energy minimization, any overlapping atoms are displaced, and
802+ After the energy minimization, any overlapping atoms are displaced, and
803803the system is ready for a molecular dynamics simulation. To continue
804804from the result of the minimization step, append the MD simulation
805805commands to the same input script, \flecmd {initial.lmp}. Add the
@@ -1002,7 +1002,7 @@ \subsubsection{Improving the script}
10021002\end {lstlisting }
10031003The \lmpcmd {side in} and \lmpcmd {side out} keywords are used to define
10041004regions representing the inside and outside of the cylinder of radius
1005- 10 length units. Then, append a sixth section titled \lmpcmd {Save system} at the end
1005+ 10 length units, respectively . Then, append a sixth section titled \lmpcmd {Save system} at the end
10061006of the file, ensuring that the \lmpcmd {write\_ data} command is placed \emph {after }
10071007the \lmpcmd {minimize} command:
10081008\ begin{lstlisting}
@@ -1175,19 +1175,19 @@ \subsubsection{Improving the script}
11751175 a wide variety of data and one can identify the category from the
11761176 name of the compute style: global data (no suffix), local data
11771177 (/local suffix), per-atom data (/atom suffix), per-chunk data
1178- (/chunk suffix), per-gridpoint data (/grid suffix). In the example
1178+ (/chunk suffix), per-grid data (/grid suffix). In the example
11791179 above, the \lmpcmd {compute coord/atom} produces per-atom data, which
11801180 is used as input for \lmpcmd {compute reduce} which returns global
11811181 data. For global data three kinds of data exists: scalars (single
11821182 values), vectors (one-dimensional arrays), or arrays
11831183 (two-dimensional tables). When referencing results of a compute,
11841184 you can use indices: for example, \lmpcmd {c\_ mycompute} refers to
11851185 the entire scalar, vector, or array, and \lmpcmd {c\_ mycompute[1]}
1186- refers to its first element (in case of vector or array). In some
1186+ refers to its first element or column (in case of vector or array). In some
11871187 cases also wildcards like `` *'' can be used to, for instance, refer to all elements
11881188 of a vector instead of having specify all elements individually.
1189- In general, `` consumer'' commands (fix styles or dump styles,
1190- variables, or other compute styles) can only work with certain data
1189+ In general, `` consumer'' commands (\lmpcmd { fix} styles or \lmpcmd { dump} styles,
1190+ \lmpcmd { variables} , or other \lmpcmd { compute} styles) can only work with certain data
11911191 types or need to have keywords set to select which data to use.
11921192 You need to check the documentation of each command to ensure
11931193 compatibility.
@@ -1466,15 +1466,15 @@ \subsubsection{Unbreakable bonds}
14661466improper_coeff 1 5 180
14671467\end {lstlisting }
14681468The \lmpcmd {pair\_ coeff} command sets the parameters for non-bonded
1469- Lennard-Jones interactions atom type 1 to
1469+ Lennard-Jones interactions between atoms type 1 to
14701470$ \epsilon _{11} = 0.066 \, \text {kcal/mol}$ and
14711471$ \sigma _{11} = 3.4 \, \text {\AA {}}$ . The \lmpcmd {bond\_ coeff} provides
14721472the equilibrium distance $ r_0 = 1.4 \, \text {\AA {}}$ and the
14731473spring constant $ k_\text {b} = 469 \, \text {kcal/mol/\AA {}}^2 $ for the
1474- harmonic potential imposed between two neighboring carbon atoms. The potential
1474+ harmonic potential imposed between two bonded carbon atoms. The potential
14751475is given by $ U_\text {b} = k_\text {b} ( r - r_0 )^2 $ . The
14761476\lmpcmd {angle\_ coeff} gives the equilibrium angle $ \theta _0 $ and
1477- constant for the potential between three neighboring atoms :
1477+ constant for the potential between atoms forming an angle :
14781478$ U_\theta = k_\theta ( \theta - \theta _0 )^2 $ . The
14791479\lmpcmd {dihedral\_ coeff} and \lmpcmd {improper\_ coeff} define the potentials
14801480for the constraints between 4 atoms.
@@ -1941,7 +1941,7 @@ \subsection{Tutorial 3: Polymer in water}
19411941\end {figure }
19421942
19431943The goal of this tutorial is to use LAMMPS to solvate a small
1944- hydrophilic polymer (PEG - polyethylene glycol) in a reservoir of water
1944+ hydrophilic polymer molecule (PEG - polyethylene glycol) in a reservoir of water
19451945(Fig.~\ref {fig:PEG }). Once the water reservoir is properly equilibrated
19461946at the desired temperature and pressure, the polymer molecule is added
19471947and a constant stretching force is applied to both ends of the polymer.
@@ -2049,7 +2049,7 @@ \subsubsection{Preparing the water reservoir}
20492049create_atoms 0 random 700 87910 NULL mol h2omol 454756 &
20502050 overlap 1.0 maxtry 50
20512051\end {lstlisting }
2052- The first parameter is 0, meaning that the atom IDs from
2052+ The first parameter is 0, meaning that the atom types from
20532053the \flecmd {water.mol} file will be used.
20542054The \lmpcmd {overlap 1.0} option of the \lmpcmd {create\_ atoms} command ensures
20552055that no atoms are placed exactly in the same position, as this would cause the
@@ -2543,11 +2543,11 @@ \subsubsection{System preparation}
25432543\end {lstlisting }
25442544Within the last three lines, a region named \lmpcmd {rliquid} is
25452545created based on the last defined lattice, \lmpcmd {fcc 4.04}. \lmpcmd {rliquid}
2546- will be used for introducing the water molecules. The \lmpcmd {molecule} command
2546+ will be used for introducing the water molecules in the simulation domain . The \lmpcmd {molecule} command
25472547opens up the molecule template called \flecmd {water.mol}, and names the
25482548associated molecule \lmpcmd {h2omol}. The new molecules are placed on the
25492549\lmpcmd {fcc 4.04} lattice by the \lmpcmd {create\_ atoms} command. The first
2550- parameter is 0, meaning that the atom IDs from the \flecmd {water.mol} file
2550+ parameter is 0, meaning that the atom types from the \flecmd {water.mol} file
25512551will be used. The number \lmpcmd {482793} is a seed that is required by LAMMPS,
25522552it can be any positive integer.
25532553
@@ -2874,9 +2874,9 @@ \subsubsection{System preparation}
28742874thermo 250
28752875thermo_style custom step temp etotal press v_deltaz
28762876\end {lstlisting }
2877- The first two variables extract the centers of mass of the two walls. The
2877+ The first two variables extract the z coordinate of the centers of mass of the two walls. The
28782878\lmpcmd {deltaz} variable is then used to calculate the difference between the two
2879- variables \lmpcmd {walltopz} and \lmpcmd {wallbotz}, i.e.~the distance between the
2879+ variables \lmpcmd {walltopz} and \lmpcmd {wallbotz}, i.e.~the distance in the z direction between the
28802880two centers of mass of the walls.
28812881
28822882\begin {figure }
@@ -2968,7 +2968,7 @@ \subsubsection{Imposed shearing}
29682968\end {lstlisting }
29692969The \lmpcmd {setforce} commands cancel the forces on \lmpcmd {walltop} and
29702970\lmpcmd {wallbot} in the $ x$ direction. As a result, the atoms in these two groups will not
2971- experience any forces along $ x$ from the rest of the system. Consequently, in the absence of
2971+ experience any forces along $ x$ from their interaction with rest of the system. Consequently, in the absence of
29722972external forces, these atoms will conserve the initial velocities imposed by the
29732973two \lmpcmd {velocity} commands. As seen previously, although the
29742974forces on these atoms are set to zero, the \lmpcmd {fix setforce} still stores the
@@ -3102,7 +3102,7 @@ \subsubsection{Prepare and relax}
31023102\end {lstlisting }
31033103So far, the input is very similar to what was seen in the previous tutorials.
31043104Some basic parameters are defined (\lmpcmd {units} and \lmpcmd {atom\_ style}),
3105- and a \lmpcmd {.data} file is imported by the \lmpcmd {read\_ data} command.
3105+ and a \flecmd {.data} file is imported by the \lmpcmd {read\_ data} command.
31063106
31073107The initial topology given by \href {\filepath tutorial5/silica.data}{\dwlcmd {silica.data}}
31083108corresponds to a small amorphous silica structure.
@@ -3530,7 +3530,7 @@ \subsubsection{Generation of the silica block}
35303530\end {lstlisting }
35313531In line with what is done in previous tutorials, the
35323532\lmpcmd {create\_ atoms} commands are used to place
3533- 240 Si atoms and 480 O atoms, respectively. This corresponds to
3533+ 240 Si atoms and 480 O atoms, respectively, in the region previously defined . This corresponds to
35343534an initial density of approximately $ 2 $ \, g/cm$ ^3 $ , which is close
35353535to the expected final density of amorphous silica at 300\, K.
35363536
@@ -3571,23 +3571,23 @@ \subsubsection{Generation of the silica block}
35713571Finally, let us implement the annealing procedure which
35723572consists of three consecutive runs. This procedure was inspired
35733573by Ref.\, \cite {della1992molecular }. First, to melt the system,
3574- a $ 10 \, \text {ps}$ phase at $ T = 6000 \, \text {K}$ is performed:
3574+ a $ 10 \, \text {ps}$ run at $ T = 6000 \, \text {K}$ is performed:
35753575\ begin{lstlisting}
35763576velocity all create 6000 8289 rot yes dist gaussian
35773577fix mynvt all nvt temp 6000 6000 0.1
35783578timestep 0.001
35793579run 10000
35803580\end {lstlisting }
3581- Next, a second phase , during which the system is cooled down from $ T = 6000 \, \text {K}$
3581+ Next, a second run , during which the system is cooled down from $ T = 6000 \, \text {K}$
35823582to $ T = 300 \, \text {K}$ , is implemented as follows:
35833583\ begin{lstlisting}
35843584fix mynvt all nvt temp 6000 300 0.1
35853585run 30000
35863586\end {lstlisting }
3587- n this case, the initial and final target temperatures
3587+ In this case, the initial and final target temperatures
35883588set for the Nos\' e-Hoover thermostat is different, causing it to evolve
35893589linearly within the number of timesteps evoked in the \lmpcmd {run} command.
3590- In the third step , the system is equilibrated at the final desired
3590+ In the third run , the system is equilibrated at the final desired
35913591conditions, $ T = 300 \, \text {K}$ and $ p = 1 \, \text {atm}$ ,
35923592using an anisotropic pressure coupling:
35933593\ begin{lstlisting}
@@ -3844,7 +3844,7 @@ \subsubsection{Adding water}
38443844maintain the shape of the water molecules over time~\cite {ryckaert1977numerical , andersen1983rattle }.
38453845
38463846\begin {note }
3847- Here, a variable of type `atom' is used. Such variable
3847+ Here, a variable of style `atom' is used. Such variable
38483848 defines a per-atom property, i.e., it evaluates the specified expression
38493849 separately for each atom. This is often used to select atoms based on
38503850 their properties or types.
@@ -3992,7 +3992,7 @@ \subsubsection{Method 1: Free sampling}
39923992where $ \Delta G$ is the free energy difference, $ R$ is the gas constant, $ T$
39933993is the temperature, % $p$ is the pressure, and $p_0$ is a reference pressure.
39943994$ \rho $ is the density, and $ \rho _0 $ is a reference density.
3995- As an illustration, let us apply this method to a simple configuration
3995+ As an illustration, let us apply this method to a simple system
39963996that consists of a particles in a box in the presence of a
39973997position-dependent repulsive force that makes the center of the box a less
39983998favorable area to explore.
@@ -4015,8 +4015,8 @@ \subsubsection{Method 1: Free sampling}
40154015pair_modify shift yes
40164016boundary p p p
40174017\end {lstlisting }
4018- Here, we begin by defining variables for the Lennard-Jones interaction
4019- $ \sigma $ and $ \epsilon $ and for the repulsive potential
4018+ Here, we begin by defining variables for the Lennard-Jones parameters
4019+ ( $ \sigma $ and $ \epsilon $ ) and for the repulsive potential parameters
40204020$ U$ , which are $ U_0 $ , $ \delta $ , and
40214021$ x_0 $ [see Eqs.\, (\ref {eq:U }-\ref {eq:F }) below]. The cut-off value of
40224022$ 2 ^{1/6} \sigma = 3.822 $ was chosen to create a Weeks-Chandler-Andersen (WCA) potential,
@@ -4174,10 +4174,10 @@ \subsubsection{Method 1: Free sampling}
41744174\end {lstlisting }
41754175Here, the \lmpcmd {chunk/atom} command discretizes the simulation
41764176domain into spatial bins of size 2~\AA {} along the $ x$ direction,
4177- and the \lmpcmd {ave/chunk} command outputs the number density of
4177+ and the \lmpcmd {fix ave/chunk} command outputs the number density of
41784178atoms within each bin to the file \flecmd {free-sampling.dat}.
41794179The step count is reset to 0 using \lmpcmd {reset\_ timestep} to synchronize it
4180- with the output times of \lmpcmd {fix density/number }. Run the simulation using
4180+ with the output times of \lmpcmd {fix ave/chunk }. Run the simulation using
41814181LAMMPS.
41824182
41834183\paragraph {Data analysis }
@@ -4261,7 +4261,7 @@ \subsubsection{Method 2: Umbrella sampling}
42614261boundary p p p
42624262\end {lstlisting }
42634263The first difference from the previous case is the larger value
4264- for the repulsive potential $ U_0 $ , which makes the central area
4264+ for the repulsive potential parameter $ U_0 $ , which makes the central area
42654265of the system very unlikely to be visited by free particles. The second
42664266difference is the introduction of the variable $ k$ , which will be used for
42674267the biasing potential.
@@ -4455,7 +4455,7 @@ \subsubsection{Creating the system}
44554455pair_modify tail yes mix sixthpower
44564456special_bonds lj/coul 0 0 1
44574457\end {lstlisting }
4458- The \lmpcmd {class2} styles compute a 6/9 Lennard-Jones potential~\cite {sun1998compass }.
4458+ The \lmpcmd {class2} \lmpcmd {pair_styles} compute a 6/9 Lennard-Jones potential~\cite {sun1998compass }.
44594459The \textit {class2 } bond, angle, dihedral, and improper styles are used as
44604460well, see the documentation for a description of the respective potential
44614461form they, each, prescribe.
@@ -4721,7 +4721,7 @@ \subsubsection{Simulating the reaction}
47214721
47224722run 25000
47234723\end {lstlisting }
4724- Here, the \lmpcmd {thermo custom} command is used
4724+ Here, the \lmpcmd {thermo_style custom} command is used
47254725to print the cumulative reaction counts which are calculated by \lmpcmd {fix rxn}
47264726and thus can be extracted from it.
47274727Run the simulation using LAMMPS. As the simulation progresses, polymer chains are
0 commit comments