Skip to content

Commit 4742c6b

Browse files
committed
tested tutorials 6-7
1 parent edb6cb2 commit 4742c6b

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

files/tutorial7/umbrella-sampling.meta

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
umbrella-sampling.1.dat -28 0.5
2+
umbrella-sampling.2.dat -24 0.5
3+
umbrella-sampling.3.dat -20 0.5
4+
umbrella-sampling.4.dat -16 0.5
5+
umbrella-sampling.5.dat -12 0.5
6+
umbrella-sampling.6.dat -8 0.5
7+
umbrella-sampling.7.dat -4 0.5
8+
umbrella-sampling.8.dat 0 0.5
9+
umbrella-sampling.9.dat 4 0.5
10+
umbrella-sampling.10.dat 8 0.5
11+
umbrella-sampling.11.dat 12 0.5
12+
umbrella-sampling.12.dat 16 0.5
13+
umbrella-sampling.13.dat 20 0.5
14+
umbrella-sampling.14.dat 24 0.5
15+
umbrella-sampling.15.dat 28 0.5

lammps-tutorials.tex

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3692,6 +3692,9 @@ \subsubsection{Method 1: Free sampling}
36923692
We impose the force $F(x)$ to the atoms in the simulation
36933693
using the \lmpcmd{fix addforce} command. Add the following
36943694
lines 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}
36963699
variable 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
37733777
about two orders of magnitude lower than inside the reservoir (Fig.~\ref{fig:US-density}\,a).
37743778
Next, we plot $-R T \ln(\rho/\rho_\mathrm{bulk})$ (i.e.~Eq.~\eqref{eq:G} where
37753779
the 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
38313835
contain the following lines:
38323836
\begin{lstlisting}
38333837
variable sigma equal 3.405
@@ -3850,7 +3854,7 @@ \subsubsection{Method 2: Umbrella sampling}
38503854
the biasing potential.
38513855

38523856
Let 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}
38553859
region myreg block -50 50 -15 15 -50 50
38563860
create_box 2 myreg
@@ -3951,15 +3955,15 @@ \subsubsection{Method 2: Umbrella sampling}
39513955
we use the WHAM algorithm as implemented by Marc Grossfield~\cite{grossfieldimplementation}.
39523956
You can download it from \href{http://membrane.urmc.rochester.edu/?page_id=126}{Alan Grossfield}'s
39533957
website. 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
39553959
the 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}
39613965
Download 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
39633967
by typing the following command in the terminal:
39643968
\begin{lstlisting}
39653969
./wham -30 30 50 1e-8 119.8 0 \

0 commit comments

Comments
 (0)