@@ -3692,6 +3692,9 @@ \subsubsection{Method 1: Free sampling}
36923692We impose the force $ F(x)$ to the atoms in the simulation
36933693using the \lmpcmd {fix addforce} command. Add the following
36943694lines to \flecmd {free-energy.lmp}:
3695+ % SG: apparently variable can't be cutted in 2 lines, either warn the reader, or find
3696+ % a way to write these commands on the entire width of the page, or divide the variables
3697+ % into several variables
36953698\ begin{lstlisting}
36963699variable U atom ${U0}*atan((x+${x0})/${dlt})&
36973700 -${U0}*atan((x-${x0})/${dlt})
@@ -3769,7 +3772,8 @@ \subsubsection{Method 1: Free sampling}
37693772
37703773\paragraph {Data analysis }
37713774
3772- Once the simulation is complete, the density profile shows that the density in the center of the box is
3775+ Once the simulation is complete, the density profile from \flecmd {free-sampling.dat}
3776+ shows that the density in the center of the box is
37733777about two orders of magnitude lower than inside the reservoir (Fig.~\ref {fig:US-density }\, a).
37743778Next, we plot $ -R T \ln (\rho /\rho _\mathrm {bulk})$ (i.e.~Eq.~\eqref {eq:G } where
37753779the pressure ratio $ p/p_\mathrm {bulk}$ is replaced by the density ratio
@@ -3827,7 +3831,7 @@ \subsubsection{Method 2: Umbrella sampling}
38273831
38283832\paragraph {LAMMPS input script }
38293833
3830- Open the file named \lmpcmd {umbrella-sampling.lmp}, which should
3834+ Open the file named \flecmd {umbrella-sampling.lmp}, which should
38313835contain the following lines:
38323836\ begin{lstlisting}
38333837variable sigma equal 3.405
@@ -3850,7 +3854,7 @@ \subsubsection{Method 2: Umbrella sampling}
38503854the biasing potential.
38513855
38523856Let us create a simulation box with two atom types, including a single particle of type 2,
3853- by adding the following lines to \lmpcmd {umbrella-sampling.lmp}:
3857+ by adding the following lines to \flecmd {umbrella-sampling.lmp}:
38543858\ begin{lstlisting}
38553859region myreg block -50 50 -15 15 -50 50
38563860create_box 2 myreg
@@ -3951,15 +3955,15 @@ \subsubsection{Method 2: Umbrella sampling}
39513955we use the WHAM algorithm as implemented by Marc Grossfield~\cite {grossfieldimplementation }.
39523956You can download it from \href {http://membrane.urmc.rochester.edu/?page_id=126}{Alan Grossfield}'s
39533957website. The executable called \flecmd {wham} generated by following the instructions
3954- from the website must be placed next to \lmpcmd {umbrella-sampling.lmp}. To apply
3958+ from the website must be placed next to \flecmd {umbrella-sampling.lmp}. To apply
39553959the WHAM algorithm to our simulation, we need a metadata file containing:
39563960\begin {itemize }
39573961\item the paths to all the data files,
39583962\item the values of $ x_\text {des}$ ,
39593963\item the values of $ k$ .
39603964\end {itemize }
39613965Download the \href {\filepath tutorial7/umbrella-sampling.meta}{\dwlcmd {umbrella-sampling.meta}} file
3962- and save it next to \lmpcmd {umbrella-sampling.lmp}. Then, run the WHAM algorithm
3966+ and save it next to \flecmd {umbrella-sampling.lmp}. Then, run the WHAM algorithm
39633967by typing the following command in the terminal:
39643968\ begin{lstlisting}
39653969./wham -30 30 50 1e-8 119.8 0 \
0 commit comments