@@ -2799,7 +2799,7 @@ \subsubsection{Prepare and relax}
27992799variable qO equal charge(grpO)/count(grpO)
28002800variable vq atom q
28012801\end {lstlisting }
2802- Let us print the averaged charges \lmpcmd {qSi} and \lmpcmd {qO} using the
2802+ To print the averaged charges \lmpcmd {qSi} and \lmpcmd {qO} using the
28032803\lmpcmd {thermo\_ style} command, and create images of the system. Add the
28042804following lines to \flecmd {relax.lmp}:
28052805\ begin{lstlisting}
@@ -2810,10 +2810,10 @@ \subsubsection{Prepare and relax}
28102810dump_modify viz adiam Si 2.6 adiam O 2.3 backcolor white &
28112811 amap -1 2 ca 0.0 2 min royalblue max orangered
28122812\end {lstlisting }
2813- Here, the atoms are colored by their charges \lmpcmd {q}, from royal blue
2813+ Here, the atoms are colored by their charges \lmpcmd {q}, ranging from royal blue
28142814(when $ q=-1 \, \text {e}$ ) to orange-red (when $ q=2 \, \text {e}$ ).
28152815
2816- We can generate histograms of the charges for each atom types using
2816+ You can generate histograms of the charges for each atom type using
28172817\lmpcmd {fix ave/histo} commands:
28182818\ begin{lstlisting}
28192819fix myhis1 grpSi ave/histo 10 500 5000 -1.5 2.5 1000 &
@@ -2822,8 +2822,8 @@ \subsubsection{Prepare and relax}
28222822 v_vq file relax-O.histo mode vector
28232823\end {lstlisting }
28242824We can also use the \lmpcmd {fix reaxff/species} to evaluate what species are
2825- present within the simulation. It will be useful later when the system is deformed
2826- and some bonds are broken:
2825+ present within the simulation. It will be useful later when the system is deformed,
2826+ and bonds are broken:
28272827\ begin{lstlisting}
28282828fix myspec all reaxff/species 5 1 5 relax.species element Si O
28292829\end {lstlisting }
@@ -2841,15 +2841,17 @@ \subsubsection{Prepare and relax}
28412841\end {lstlisting }
28422842Run the \flecmd {relax.lmp} file using LAMMPS. As seen from \flecmd {relax.species},
28432843only one species is detected, called \lmpcmd {O384Si192}, representing the entire system.
2844- The value of the charge of the atoms can be extracted from the \flecmd {relax.lammpstrj}
2845- file using Python.
28462844
28472845As the simulation progresses, the charge of every atom fluctuates
28482846because it is adjusting to the local environment of the atom (Fig.\, \ref {fig:SIO-charge }).
2849- It can also be seen that the averaged charges for both silicon and oxygen
2850- atoms vary abruptly at the beginning of the simulation, which correlates with
2851- a rapid volume change of the box during which the inter-atomic distances are
2852- expected to quickly change (Fig.\, \ref {fig:SIO-volume }).
2847+ It is also observed that the averaged charges for silicon and oxygen
2848+ atoms fluctuate significantly at the beginning of the simulation, corresponding
2849+ to a rapid change in the system volume, which causes interatomic distances to
2850+ shift quickly (Fig.\, \ref {fig:SIO-volume }). The atoms with the
2851+ most extreme charges are located at structural defects,
2852+ such as dangling oxygen groups (Fig.\, \ref {fig:SIO-slice }).
2853+ Finally, the charge distribution $ P(q)$ can be plotted using the charge values
2854+ from the \flecmd {.histo} files (Fig.\, \ref {fig:SIO-distribution }).
28532855
28542856\begin {figure }
28552857\centering
@@ -2867,13 +2869,6 @@ \subsubsection{Prepare and relax}
28672869\label {fig:SIO-volume }
28682870\end {figure }
28692871
2870- We can also plot the charge distribution $ P(q)$ using the charge values
2871- printed in the \flecmd {dump.lammptrj} file (Fig.\, \ref {fig:SIO-distribution }).
2872- The \flecmd {dump.lammptrj} file can be opened using VMD. By coloring the atoms
2873- by their charges, one can see that the atoms with the extreme-most charges are
2874- located at defects in the amorphous structure (here at the positions of the
2875- dangling oxygen groups) (Fig.\, \ref {fig:SIO-slice }).
2876-
28772872\begin {figure }
28782873\includegraphics [width=\linewidth ]{SIO-distribution}
28792874\caption {Probability distribution of charge of silicon (positive, blue) and oxygen
0 commit comments