You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lammps-tutorials.tex
+66-65Lines changed: 66 additions & 65 deletions
Original file line number
Diff line number
Diff line change
@@ -1880,14 +1880,15 @@ \subsubsection{Preparing the water reservoir}
1880
1880
\begin{note}
1881
1881
The binary file created by the \lmpcmdnote{write\_restart} command contains the
1882
1882
complete state of the simulation, including atomic positions, velocities, and box dimensions (similar to \lmpcmdnote{write\_data}), but also the groups,
1883
-
the compute, or the \lmpcmdnote{atom\_style}. Use the \guicmd{Inspect Restart} option of the LAMMPS-GUI to vizualize the content saved in \flecmd{water.restart}.
1883
+
the compute, or the \lmpcmdnote{atom\_style}. Use the \guicmd{Inspect Restart} option of the LAMMPS-GUI to vizualize the content saved in \flecmd{water.restart}.
1884
1884
\end{note}
1885
1885
1886
1886
\subsubsection{Solvating the PEG in water}
1887
-
Now that the water reservoir is equilibrated, we can safely include the PEG polymer
1888
-
in the water. The PEG molecule topology was downloaded from the ATB repository
1889
-
\cite{malde2011automated, oostenbrink2004biomolecular}. It has a formula
1890
-
$\text{C}_{28}\text{H}_{58}\text{O}_{15}$, and the parameters are taken from
1887
+
1888
+
Now that the water reservoir is equilibrated, we can safely add the PEG polymer
1889
+
to the water. The PEG molecule topology was downloaded from the ATB repository
1890
+
\cite{malde2011automated, oostenbrink2004biomolecular}. It has a formula
1891
+
$\text{C}_{16}\text{H}_{34}\text{O}_{9}$, and the parameters are taken from
1891
1892
the GROMOS 54A7 force field \cite{schmid2011definition}.
1892
1893
1893
1894
\begin{figure}
@@ -1898,84 +1899,84 @@ \subsubsection{Solvating the PEG in water}
1898
1899
\label{fig:PEG-in-vacuum}
1899
1900
\end{figure}
1900
1901
1901
-
Create a second folder alongside \flrcmd{pureH2O/} and call it \flrcmd{mergePEGH2O/}.
1902
-
Create a new blank file in it, call it \flecmd{input.lmp}. Within \flecmd{input.lmp},
1903
-
copy the same first lines as previously:
1902
+
Open the file named \flecmd{merge.lmp} that was downloaded
1903
+
alongside \lmpcmd{water.lmp} during the tutorial setup. It only contains two lines:
1904
1904
\begin{lstlisting}
1905
-
units real
1906
-
atom_style full
1907
-
bond_style harmonic
1908
-
angle_style harmonic
1909
-
dihedral_style harmonic
1910
-
pair_style lj/cut/coul/long 10
1911
-
kspace_style pppm 1e-5
1912
-
special_bonds lj 0.0 0.0 0.5 coul 0.0 0.0 1.0 &
1913
-
angle yes dihedral yes
1914
-
\end{lstlisting}
1915
-
Then, import the previously generated data file \flecmd{H2O.data} as well as the \flecmd{PARM.lmp} file:
for the PEG molecule, and then create a single molecule in the middle of the box:
1908
+
Most of the commands that were initially present in \lmpcmd{water.lmp}, such as
1909
+
the \lmpcmd{units} of the \lmpcmd{atom\_style} commands do not need to be repeated,
1910
+
as they were saved within the \flecmd{.restart} file. There is also no need to re-include the parameters from the \lmpcmd{.inc} file. The \lmpcmd{kspace\_style}
1911
+
command, however, is not saved by the \lmpcmd{write\_restart} command and must be
1912
+
repeated.
1913
+
1914
+
Using the molecule template for the polymer called
0 commit comments