@@ -2327,18 +2327,6 @@ \subsubsection{Stretching the PEG molecule}
23272327fix mynvt all nvt temp 300 300 100
23282328fix myrct PEG recenter 0 0 0 shift all
23292329\end {lstlisting }
2330-
2331- \begin {figure }
2332- \centering
2333- \includegraphics [width=\linewidth ]{PEG-distance}\\ [-2ex]
2334- \caption {a) Evolution of
2335- the radius of gyration $ R_\text {gyr}$ of the PEG molecule
2336- from \hyperref [all-atom-label]{Tutorial 3}, with the force
2337- applied starting at $ t = 15 \, \text {ps}$ . b) Histograms of the dihedral angles of type 1
2338- in the absence (orange) and in the presence (blue) of the applied force.}
2339- \label {fig:PEG-distance }
2340- \end {figure }
2341-
23422330To investigate the stretching of the PEG molecule, let us compute its radius of
23432331gyration~\cite {fixmanRadiusGyrationPolymer1962a } and the angles of its dihedral
23442332constraints using the following commands:
@@ -2356,6 +2344,17 @@ \subsubsection{Stretching the PEG molecule}
23562344$ \phi $ (compute \lmpcmd {dphi}) is returned as a vector by the \lmpcmd {compute dihedral/local}
23572345command and must be written to a file using the \lmpcmd {dump local} command.
23582346
2347+ \begin {figure }
2348+ \centering
2349+ \includegraphics [width=\linewidth ]{PEG-distance}\\ [-2ex]
2350+ \caption {a) Evolution of
2351+ the radius of gyration $ R_\text {gyr}$ of the PEG molecule
2352+ from \hyperref [all-atom-label]{Tutorial 3}, with the force
2353+ applied starting at $ t = 15 \, \text {ps}$ . b) Histograms of the dihedral angles of type 1
2354+ in the absence (orange) and in the presence (blue) of the applied force.}
2355+ \label {fig:PEG-distance }
2356+ \end {figure }
2357+
23592358Finally, let us simulate 15 picoseconds without any external force:
23602359\ begin{lstlisting}
23612360run 15000
@@ -2854,17 +2853,6 @@ \subsubsection{System preparation}
28542853The \lmpcmd {undump} command is used to cancel the previous \lmpcmd {dump} command.
28552854Then, a new \lmpcmd {dump} command with a larger dumping period is used.
28562855
2857- \begin {figure }
2858- \centering
2859- \includegraphics [width=\linewidth ]{NANOSHEAR-equilibration}\\ [-2ex]
2860- \caption {a)~Pressure, $ p$ , of the nanosheared electrolyte system
2861- simulated in \hyperref [sheared-confined-label]{Tutorial 4} as a function of the
2862- time, $ t$ . b)~Distance between the walls, $ \Delta z$ , as a function of $ t$ .
2863- \textcolor {blue}{The orange line
2864- shows the raw data, and the blue line represents a time-averaged curve.}}
2865- \label {fig:NANOSHEAR-equilibration }
2866- \end {figure }
2867-
28682856\begin {note }
28692857{\color {blue}
28702858Just like the \lmpcmd {undump} command can cancel an active \lmpcmd {dump}, other
@@ -2888,6 +2876,17 @@ \subsubsection{System preparation}
28882876variables \lmpcmd {walltopz} and \lmpcmd {wallbotz}, i.e.~the distance between the
28892877two centers of mass of the walls.
28902878
2879+ \begin {figure }
2880+ \centering
2881+ \includegraphics [width=\linewidth ]{NANOSHEAR-equilibration}\\ [-2ex]
2882+ \caption {a)~Pressure, $ p$ , of the nanosheared electrolyte system
2883+ simulated in \hyperref [sheared-confined-label]{Tutorial 4} as a function of the
2884+ time, $ t$ . b)~Distance between the walls, $ \Delta z$ , as a function of $ t$ .
2885+ \textcolor {blue}{The orange line
2886+ shows the raw data, and the blue line represents a time-averaged curve.}}
2887+ \label {fig:NANOSHEAR-equilibration }
2888+ \end {figure }
2889+
28912890Finally, let us run the simulation for 30~ps by adding a \lmpcmd {run} command
28922891to \flecmd {equilibrate.lmp}:
28932892\ begin{lstlisting}
@@ -3118,6 +3117,16 @@ \subsubsection{Prepare and relax}
31183117environment {\color {blue}through charge equilibration}.
31193118\end {note }
31203119
3120+ \begin {figure }
3121+ \includegraphics [width=\linewidth ]{SIO-slice}
3122+ \caption {A slice of the amorphous silica simulated during
3123+ \hyperref [reactive-silicon-dioxide-label]{Tutorial 5}, where atoms are colored by their charges.
3124+ Dangling oxygen groups appear in greenish, bulk Si atoms with a charge of about
3125+ $ 1.8 ~\text {e}$ appear in red/orange, and bulk O atoms with a charge of about
3126+ $ -0.9 ~\text {e}$ appear in blue.}
3127+ \label {fig:SIO-slice }
3128+ \end {figure }
3129+
31213130Next, copy the following three crucial lines into the \flecmd {relax.lmp} file:
31223131\ begin{lstlisting}
31233132pair_style reaxff NULL safezone 3.0 mincap 150
@@ -3147,7 +3156,6 @@ \subsubsection{Prepare and relax}
31473156If no control file is provided, as in this tutorial, LAMMPS uses its default values,
31483157which correspond to those in Adri van Duin's original stand-alone ReaxFF code~\cite {van2001reaxff }.}
31493158\end {note }
3150-
31513159Next, add the following commands to the \flecmd {relax.lmp} file to track the
31523160evolution of the charges during the simulation:
31533161\ begin{lstlisting}
@@ -3190,16 +3198,6 @@ \subsubsection{Prepare and relax}
31903198the histogram is updated and averaged, \lmpcmd {-1.5 2.5} set the value range,
31913199\lmpcmd {1000} is the number of bins, and \lmpcmd {v\_ vq} is the variable being histogrammed.}
31923200
3193- \begin {figure }
3194- \centering
3195- \includegraphics [width=\linewidth ]{SIO-charge}\\ [-2ex]
3196- \caption {a) Average charge per atom of the silicon, $ q_\text {Si}$ , atoms as
3197- a function of time, $ t$ , during equilibration of the $ \text {SiO}_2 $ system
3198- from \hyperref [reactive-silicon-dioxide-label]{Tutorial 5}. b) Volume of the
3199- system, $ V$ , as a function of $ t$ .}
3200- \label {fig:SIO-charge }
3201- \end {figure }
3202-
32033201We can also use the \lmpcmd {fix reaxff/species} to evaluate what species are
32043202present within the simulation. It will be useful later when the system is deformed,
32053203and bonds are broken:
@@ -3221,6 +3219,18 @@ \subsubsection{Prepare and relax}
32213219Run the \flecmd {relax.lmp} file using LAMMPS. As seen from \flecmd {relax.species},
32223220only one species is detected, called \lmpcmd {O384Si192}, representing the entire system.
32233221
3222+
3223+ \begin {figure }
3224+ \centering
3225+ \includegraphics [width=\linewidth ]{SIO-charge}\\ [-2ex]
3226+ \caption {a) Average charge per atom of the silicon, $ q_\text {Si}$ , atoms as
3227+ a function of time, $ t$ , during equilibration of the $ \text {SiO}_2 $ system
3228+ from \hyperref [reactive-silicon-dioxide-label]{Tutorial 5}. b) Volume of the
3229+ system, $ V$ , as a function of $ t$ .}
3230+ \label {fig:SIO-charge }
3231+ \end {figure }
3232+
3233+
32243234\begin {note }
32253235{\color {blue}With the \lmpcmd {aniso} keyword, the three dimensions of the simulation
32263236box can change independently. This is particularly relevant for solids and other
@@ -3239,13 +3249,12 @@ \subsubsection{Prepare and relax}
32393249plot the probability distributions, $ P(q)$ (see Fig.~\ref {fig:SIO-distribution }\, a).
32403250
32413251\begin {figure }
3242- \includegraphics [width=\linewidth ]{SIO-slice}
3243- \caption {A slice of the amorphous silica simulated during
3244- \hyperref [reactive-silicon-dioxide-label]{Tutorial 5}, where atoms are colored by their charges.
3245- Dangling oxygen groups appear in greenish, bulk Si atoms with a charge of about
3246- $ 1.8 ~\text {e}$ appear in red/orange, and bulk O atoms with a charge of about
3247- $ -0.9 ~\text {e}$ appear in blue.}
3248- \label {fig:SIO-slice }
3252+ \includegraphics [width=\linewidth ]{SIO-distribution}\\ [-4ex]
3253+ \caption {a) Probability distributions of charge of silicon (positive, blue) and oxygen
3254+ (negative, orange) atoms during the equilibration of the $ \text {SiO}_2 $ system
3255+ from \hyperref [reactive-silicon-dioxide-label]{Tutorial 5}. b) Same probability distributions
3256+ as in panel (a) after the deformation.}
3257+ \label {fig:SIO-distribution }
32493258\end {figure }
32503259
32513260\subsubsection {Deform the structure }
@@ -3285,15 +3294,6 @@ \subsubsection{Deform the structure}
32853294The only difference with the previous \flecmd {relax.lmp} file is the path to
32863295the \flecmd {relax.data} file.
32873296
3288- \begin {figure }
3289- \includegraphics [width=\linewidth ]{SIO-distribution}\\ [-4ex]
3290- \caption {a) Probability distributions of charge of silicon (positive, blue) and oxygen
3291- (negative, orange) atoms during the equilibration of the $ \text {SiO}_2 $ system
3292- from \hyperref [reactive-silicon-dioxide-label]{Tutorial 5}. b) Same probability distributions
3293- as in panel (a) after the deformation.}
3294- \label {fig:SIO-distribution }
3295- \end {figure }
3296-
32973297Next, let us use \lmpcmd {fix nvt} instead of \lmpcmd {fix npt} to apply a
32983298Nosé-Hoover thermostat without a barostat:
32993299\ begin{lstlisting}
@@ -3465,7 +3465,6 @@ \subsubsection{Decorate the surface}
34653465next a
34663466jump SELF loop
34673467\end {lstlisting }
3468-
34693468Run the simulation with LAMMPS. When the simulation is over,
34703469it can be seen from the \flecmd {decorate.species} file that
34713470all the created hydrogen atoms reacted with the $ \text {SiO}_{2}$ structure to
0 commit comments