@@ -2811,36 +2811,34 @@ \subsubsection{Prepare and relax}
28112811\end {lstlisting }
28122812To also visualize the system using VMD, let us create a \lmpcmd {.lammpstrj} file:
28132813\ begin{lstlisting}
2814- dump dmp all custom 200 dump .lammpstrj id typelabel q x y z
2814+ dump dmp all custom 200 relax .lammpstrj id typelabel q x y z
28152815\end {lstlisting }
28162816The \lmpcmd {.lammpstrj} file generated during the LAMMPS run will contain
281728176 columns with respectively atom IDs, atom typelabels, atom charges ($ q$ ),
28182818and atom coordinates ($ x$ , $ y$ , and $ z$ ).
28192819
2820- Let us also use the \textit {fix reaxff/species } to evaluate what species are
2821- present within the simulation. It will be useful later when the system is deformed
2820+ Let us also use the \lmpcmd {fix reaxff/species} to evaluate what species are
2821+ present within the simulation. It will be useful later when the system is deformed
28222822and some bonds are broken:
28232823\ begin{lstlisting}
2824- fix myspec all reaxff/species 5 1 5 &
2825- species.log element Si O
2824+ fix myspec all reaxff/species 5 1 5 species.log element Si O
28262825\end {lstlisting }
2827- Here, the information will be printed every 5 steps in a file called \textit {species.log }.
2826+ Here, the information will be printed every 5 steps in a file called \flecmd {species.log}.
28282827Let us perform a very short run using the anisotropic NPT command and relax the
28292828density of the system.
28302829\ begin{lstlisting}
28312830velocity all create 300.0 3482028
2832- fix mynpt all npt temp 300.0 300.0 100 &
2833- aniso 1.0 1.0 1000
2831+ fix mynpt all npt temp 300.0 300.0 100 aniso 1.0 1.0 1000
28342832timestep 0.5
28352833
28362834run 5000
28372835
2838- write_data silica-relaxed .data
2836+ write_data relax .data
28392837\end {lstlisting }
2840- Run the \flecmd {input.lmp} file using LAMMPS. As seen from \textit {species.log },
2838+ Run the \flecmd {input.lmp} file using LAMMPS. As seen from \flecmd {species.log},
28412839only one species is detected, called O384Si192, representing the entire system.
2842- The value of the charge of the atoms can be extracted from the \textit { dump .lammpstrj }
2843- file using Python. You can use this
2840+ The value of the charge of the atoms can be extracted from the \flecmd {relax .lammpstrj}
2841+ file using Python. You can use this
28442842\href {\filepath tutorial5/dump-reader.py}{\dwlcmd {dump-reader.py}}
28452843script to import the charge values into Python.
28462844As the simulation progresses, the charge of every atom fluctuates
@@ -2866,9 +2864,9 @@ \subsubsection{Prepare and relax}
28662864\label {fig:SIO-volume }
28672865\end {figure }
28682866
2869- We can also plot the charge distribution $ P(q)$ , using the charge values
2870- printed in the \textit {dump.lammptrj } file (Fig.\, \ref {fig:SIO-distribution }).
2871- The \textit {dump.lammptrj } file can be opened using VMD. By coloring the atoms
2867+ We can also plot the charge distribution $ P(q)$ using the charge values
2868+ printed in the \flecmd {dump.lammptrj} file (Fig.\, \ref {fig:SIO-distribution }).
2869+ The \flecmd {dump.lammptrj} file can be opened using VMD. By coloring the atoms
28722870by their charges, one can see that the atoms with the extreme-most charges are
28732871located at defects in the amorphous structure (here at the positions of the
28742872dangling oxygen groups) (Fig.\, \ref {fig:SIO-slice }).
@@ -2892,28 +2890,23 @@ \subsubsection{Prepare and relax}
28922890\end {figure }
28932891
28942892\subsubsection {Deform the structure }
2893+
28952894Let us apply a deformation to the structure to force some $ \text {Si}-\text {O}$
2896- bonds to break (and eventually re-assemble). Next to \flrcmd {RelaxSilica/},
2897- create a folder, call it \flrcmd {Deform/} and create a file called \flecmd {input.lmp}
2898- in it. Copy the same lines as previously in \flecmd {input.lmp}:
2895+ bonds to break (and eventually re-assemble). Open the \flecmd {deform.lmp}
2896+ file, which must constain the following lines:
28992897\ begin{lstlisting}
29002898units real
29012899atom_style full
29022900
2903- read_data ../RelaxSilica/silica-relaxed .data
2901+ read_data relax .data
29042902
29052903mass Si 28.0855
29062904mass O 15.999
29072905
29082906pair_style reaxff NULL safezone 3.0 mincap 150
29092907pair_coeff * * reaxCHOFe.inc Si O
2910- fix myqeq all qeq/reaxff 1 0.0 10.0 1.0e-6 &
2911- reaxff maxiter 400
2912- \end {lstlisting }
2913- The only differences with the previous \flecmd {input.lmp} file are the paths to
2914- the \flecmd {.data} and \flecmd {.ff} files located within \flrcmd {RelaxSilica/}.
2915- Copy the following lines as well:
2916- \ begin{lstlisting}
2908+ fix myqeq all qeq/reaxff 1 0.0 10.0 1.0e-6 reaxff maxiter 400
2909+
29172910group grpSi type Si
29182911group grpO type O
29192912variable qSi equal charge(grpSi)/count(grpSi)
@@ -2929,19 +2922,20 @@ \subsubsection{Deform the structure}
29292922 acolor Si yellow adiam Si 2.5 &
29302923 acolor O red adiam O 2
29312924
2932- dump dmp all custom 200 dump.lammpstrj &
2933- id typelabel q x y z
2925+ dump dmp all custom 200 deform.lammpstrj id typelabel q x y z
29342926
2935- fix myspec all reaxff/species 5 1 5 species.log &
2936- element Si O
2927+ fix myspec all reaxff/species 5 1 5 species.log element Si O
29372928\end {lstlisting }
2938- Then, let us use \textit {fix nvt } instead of \textit {fix npt } to apply a
2939- thermostat but no barostat:
2929+ The only difference with the previous \flecmd {relax.lmp} file is the path to
2930+ the \flecmd {relax.data} file. Copy the following lines into \flecmd {deform.lmp}:
2931+
2932+ Next, let us use \lmpcmd {fix nvt} instead of \lmpcmd {fix npt} to apply a
2933+ Nosé-Hoover thermostat without any barostat:
29402934\ begin{lstlisting}
29412935fix mynvt all nvt temp 300.0 300.0 100
29422936timestep 0.5
29432937\end {lstlisting }
2944- Here, no barostat is used because the box volume will be imposed by the \textit {fix deform }.
2938+ Here, no barostat is used because the box volume will be imposed by the \lmpcmd {fix deform}.
29452939
29462940\begin {figure }
29472941\includegraphics [width=\linewidth ]{SIO-deformed-charge}
0 commit comments