Skip to content

Commit 3e34fee

Browse files
authored
Update lammps-tutorials.tex
1 parent 787a6ac commit 3e34fee

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

lammps-tutorials.tex

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,13 +2466,13 @@ \subsubsection{System preparation}
24662466
kspace_modify slab 3.0
24672467
\end{lstlisting}
24682468
These lines are used to define the most basic parameters, including the
2469-
{\color{blue}atom style, the form of the bond and angle potentials and the non-bonded
2470-
interactions}. Here, \lmpcmd{lj/cut/tip4p/long} imposes a Lennard-Jones potential with
2471-
a cut-off at $12\,\text{\AA{}}$ and a long-range Coulomb potential. {\color{blue}
2472-
The parameters \lmpcmd{O}, \lmpcmd{H}, \lmpcmd{O-H}, and \lmpcmd{H-O-H} correspond
2473-
respectively to the oxygens, hydrogens, O-H bonds, and H-O-H angle constraints of
2474-
the water molecules; their definitions, provided by the \lmpcmd{labelmap} commands,
2475-
will be clarified below.}
2469+
{\color{blue}atom style, the form of the non-bonded, bond and angle potentials as well as
2470+
other specifics about the non-boned interactions}. Here, \lmpcmd{lj/cut/tip4p/long}
2471+
imposes a Lennard-Jones potential with a cut-off at $12\,\text{\AA{}}$ and a long-range
2472+
Coulomb potential. {\color{blue} The parameters \lmpcmd{O}, \lmpcmd{H}, \lmpcmd{O-H},
2473+
and \lmpcmd{H-O-H} correspond respectively to the oxygens, hydrogens, O-H bonds, and
2474+
H-O-H angle constraints of the water molecules; their definitions, provided by the
2475+
\lmpcmd{labelmap} commands, will be clarified below.}
24762476

24772477
So far, the commands are relatively similar to those in the previous tutorial,
24782478
\hyperref[all-atom-label]{Polymer in water}, with two major differences: the use
@@ -2620,8 +2620,9 @@ \subsubsection{System preparation}
26202620
The \lmpcmd{bond\_coeff} command, used here for the O-H bond of the water
26212621
molecule, sets both the spring constant of the harmonic potential and the
26222622
equilibrium bond distance of $0.9572~\text{\AA{}}$. The constant can be 0 for a
2623-
rigid water molecule because the SHAKE algorithm will maintain the rigid
2624-
structure of the water molecule (see below)~\cite{ryckaert1977numerical, andersen1983rattle}.
2623+
rigid water molecule because the SHAKE algorithm, {\color{blue} which will be summoned
2624+
later in the script using a command line,} will {\color{blue} fix the intramolecular
2625+
structure} of the water {\color{blue} molecules} (see below)~\cite{ryckaert1977numerical, andersen1983rattle}.
26252626
Similarly, the \lmpcmd{angle\_coeff} command for the H-O-H angle of the water molecule sets
26262627
the force constant of the angular harmonic potential to 0 and the equilibrium
26272628
angle to $104.52^\circ$.
@@ -2674,7 +2675,7 @@ \subsubsection{System preparation}
26742675

26752676
write_data create.data nocoeff
26762677
\end{lstlisting}
2677-
The \lmpcmd{run 0} command runs the simulation for 0 steps, which is sufficient for
2678+
The \lmpcmd{run 0} command runs the simulation for 0 steps, which {\color{blue} serves} for
26782679
creating the system and saving its state. The \lmpcmd{write\_data} command
26792680
generates a file called \lmpcmd{system.data} containing the information required
26802681
to restart the simulation from the final configuration produced by this input
@@ -2704,7 +2705,8 @@ \subsubsection{System preparation}
27042705
% to prevent the system from exploding due to overlapping atoms.
27052706

27062707
Open the \flecmd{equilibrate.lmp} file that was downloaded alongside
2707-
\flecmd{create.lmp} during the tutorial setup. It contains the following lines:
2708+
\flecmd{create.lmp} during the tutorial setup. {\color{blue} Simiarly
2709+
to before, it} contains the following lines:
27082710
\begin{lstlisting}
27092711
boundary p p f
27102712
units real
@@ -2826,8 +2828,8 @@ \subsubsection{System preparation}
28262828
relax at ambient temperature. Here, the commands are written within the same
28272829
\flecmd{equilibrate.lmp} file, right after the \lmpcmd{reset\_timestep} command.
28282830

2829-
Let us update the positions of all the atoms and use a Nosé-Hoover
2830-
thermostat. Add the following lines to \flecmd{equilibrate.lmp}:
2831+
{\color{blue} Let us do a molecular dynamics simulation using the Nosé-Hoover
2832+
thermostat.} Add the following lines to \flecmd{equilibrate.lmp}:
28312833
\begin{lstlisting}
28322834
fix mynvt all nvt temp 300 300 100
28332835
fix myshk H2O shake 1.0e-5 200 0 b O-H a H-O-H

0 commit comments

Comments
 (0)