@@ -2772,55 +2772,50 @@ \subsubsection{Prepare and relax}
27722772changes once ReaxFF is used: the charge of each atom will adjust to its local
27732773environment.
27742774
2775- Now, let us copy three crucial lines into the \flecmd {input .lmp} file:
2775+ Next, copy the following three crucial lines into the \flecmd {relax .lmp} file:
27762776\ begin{lstlisting}
27772777pair_style reaxff NULL safezone 3.0 mincap 150
2778- pair_coeff * * reaxCHOFe.ff Si O
2779- fix myqeq all qeq/reaxff 1 0.0 10.0 1.0e-6 &
2780- reaxff maxiter 400
2781- \end {lstlisting }
2782- Here, the \textit {pair\_ style reaxff } is used with no control file. The
2783- \textit {safezone } and \textit {mincap } keywords have been added to avoid memory
2784- allocation issues, which sometimes can trigger the segmentation faults and
2785- \textit {bondchk } failed errors. The \textit {pair\_ coeff } uses the
2786- \href {\filepath tutorial5/reaxCHOFe.ff}{\dwlcmd {reaxCHOFe.ff}}
2787- file, which must be downloaded and saved within \flrcmd {RelaxSilica/}. Finally, the
2788- \textit {fix qeq/reaxff } is used to perform charge equilibration \cite {rappe1991charge }.
2789- The charge equilibration occurs at every step. The values 0.0 and 10.0 are the
2790- low and the high cutoffs, respectively, and $ 1.0 \text {e} -6 $ is a tolerance.
2791- Finally, \textit {maxiter } sets an upper limit to the number of attempts to
2778+ pair_coeff * * reaxCHOFe.inc Si O
2779+ fix myqeq all qeq/reaxff 1 0.0 10.0 1.0e-6 reaxff maxiter 400
2780+ \end {lstlisting }
2781+ In this case, the \lmpcmd {pair\_ style reaxff} is used without a control file. The
2782+ \lmpcmd {safezone} and \lmpcmd {mincap} keywords are added to prevent
2783+ allocation issues, which sometimes can trigger segmentation faults and
2784+ \lmpcmd {bondchk} errors. The \lmpcmd {pair\_ coeff} command uses the
2785+ \href {\filepath tutorial5/reaxCHOFe.inc}{\dwlcmd {reaxCHOFe.inc}}
2786+ file, which should have been downloaded during the tutorial set up. Finally, the
2787+ \lmpcmd {fix qeq/reaxff} is used to perform charge equilibration \cite {rappe1991charge },
2788+ which occurs at every step. The values 0.0 and 10.0 represent the
2789+ low and the high cutoffs, respectively, and $ 1.0 \text {e} -6 $ is the tolerance.
2790+ The \lmpcmd {maxiter} sets an upper limit to the number of attempts to
27922791equilibrate the charge.
27932792
2794- Then, let us add some commands to the \flecmd {input .lmp} file to measure the
2793+ Next, add the following commands to the \flecmd {relax .lmp} file to track the
27952794evolution of the charges during the simulation:
27962795\ begin{lstlisting}
27972796group grpSi type Si
27982797group grpO type O
27992798variable qSi equal charge(grpSi)/count(grpSi)
28002799variable qO equal charge(grpO)/count(grpO)
28012800\end {lstlisting }
2802- Let us also print the charge in the \textit {.log } file by using \textit {thermo\_ style },
2803- and create images of the system. Add the following lines into the \flecmd {input.lmp}:
2801+ Let us print the charge in the \flecmd {.log} file using the
2802+ \lmpcmd {thermo\_ style} command, and create images of the system. Add the
2803+ following lines to \flecmd {relax.lmp}:
28042804\ begin{lstlisting}
28052805thermo 200
2806- thermo_style custom step temp etotal press &
2807- vol v_qSi v_qO
2806+ thermo_style custom step temp etotal press vol v_qSi v_qO
28082807dump mydmp all image 200 dump.*.jpg type type &
2809- shiny 0.1 box no 0.01 view 0 0 zoom 1.8
2810- dump_modify mydmp backcolor white &
2811- acolor Si yellow adiam Si 2.5 &
2812- acolor O red adiam O 2
2808+ shiny 0.1 box no 0.01 view 0 0 zoom 1.8
2809+ dump_modify mydmp backcolor white acolor Si yellow &
2810+ adiam Si 2.5 acolor O red adiam O 2
28132811\end {lstlisting }
2814-
2815- In order to also visualize the system using an external tool, VMD, let us also
2816- create a \textit {.lammpstrj } file for visualization:
2812+ To also visualize the system using VMD, let us create a \lmpcmd {.lammpstrj} file:
28172813\ begin{lstlisting}
2818- dump dmp all custom 200 dump.lammpstrj &
2819- id typelabel q x y z
2814+ dump dmp all custom 200 dump.lammpstrj id typelabel q x y z
28202815\end {lstlisting }
2821- The \textit {.lammpstrj } that will be created when running lammps will contain
2822- 6 columns with respectively the atom IDs, the atom types, the atom charges ($ q$ ),
2823- and finally the atom coordinates ($ x$ , $ y$ , and $ z$ ).
2816+ The \lmpcmd {.lammpstrj} file generated during the LAMMPS run will contain
2817+ 6 columns with respectively atom IDs, atom typelabels, atom charges ($ q$ ),
2818+ and atom coordinates ($ x$ , $ y$ , and $ z$ ).
28242819
28252820Let us also use the \textit {fix reaxff/species } to evaluate what species are
28262821present within the simulation. It will be useful later when the system is deformed
@@ -2911,7 +2906,7 @@ \subsubsection{Deform the structure}
29112906mass O 15.999
29122907
29132908pair_style reaxff NULL safezone 3.0 mincap 150
2914- pair_coeff * * ../RelaxSilica/ reaxCHOFe.ff Si O
2909+ pair_coeff * * reaxCHOFe.inc Si O
29152910fix myqeq all qeq/reaxff 1 0.0 10.0 1.0e-6 &
29162911 reaxff maxiter 400
29172912\end {lstlisting }
@@ -3053,7 +3048,7 @@ \subsubsection{Decorate the surface}
30533048displace_atoms all move -12 0 0 # optional
30543049
30553050pair_style reaxff NULL safezone 3.0 mincap 150
3056- pair_coeff * * ../RelaxSilica/ reaxCHOFe.ff &
3051+ pair_coeff * * reaxCHOFe.inc &
30573052 Si O H
30583053fix myqeq all qeq/reaxff 1 0.0 10.0 1.0e-6 &
30593054 reaxff maxiter 400
0 commit comments