Skip to content

Commit d26b11b

Browse files
committed
update umbrella sampling tex
1 parent f80faa3 commit d26b11b

File tree

4 files changed

+13
-178
lines changed

4 files changed

+13
-178
lines changed

files/tutorial7/solution/umbrella-sampling.ipynb

Lines changed: 0 additions & 164 deletions
Large diffs are not rendered by default.

files/tutorial7/umbrella-sampling.lmp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ variable epsilon equal 0.238
44
variable U0 equal 10*${epsilon}
55
variable dlt equal 1.0
66
variable x0 equal 10.0
7-
variable k equal 1.5
7+
variable k equal 0.5
88

99
units real
1010
atom_style atomic

lammps-tutorials.tex

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3786,7 +3786,7 @@ \subsubsection{Method 2: Umbrella sampling}
37863786
variable U0 equal 10*${epsilon}
37873787
variable dlt equal 1.0
37883788
variable x0 equal 10
3789-
variable k equal 1.5
3789+
variable k equal 0.5
37903790

37913791
units real
37923792
atom_style atomic
@@ -3797,7 +3797,7 @@ \subsubsection{Method 2: Umbrella sampling}
37973797
The first difference from the previous case is the larger value
37983798
for the repulsive potential $U_0$, which makes the central area
37993799
of the system very unlikely to be visited by free particles. The second
3800-
difference is the introduction of the variable $k$, which will be used for
3800+
difference is the introduction of the variable $k$, which will be used for
38013801
the biasing potential.
38023802

38033803
Let us create a simulation box with two atom types, including a single particle of type 2,
@@ -3859,14 +3859,13 @@ \subsubsection{Method 2: Umbrella sampling}
38593859
\label{fig:US-system-biased}
38603860
\end{figure}
38613861

3862-
Now, we create a loop with 25 steps and progressively move the center of the
3863-
bias potential by increments of 0.4\,nm. Add the following lines
3864-
to \flecmd{umbrella-sampling.lmp}:
3862+
Now, we create a loop with 15 steps and progressively move the center of the
3863+
bias potential by increments of 0.4\,nm. Add the following lines to \flecmd{umbrella-sampling.lmp}:
38653864
\begin{lstlisting}
38663865
variable a loop 25
38673866
label loop
38683867

3869-
variable xdes equal 4*${a}-52
3868+
variable xdes equal 4*${a}-32
38703869
variable xave equal xcm(topull,x)
38713870
fix mytth topull spring tether ${k} ${xdes} 0 0 0
38723871

@@ -3875,19 +3874,19 @@ \subsubsection{Method 2: Umbrella sampling}
38753874
fix myat1 all ave/time 10 10 100 &
38763875
v_xave v_xdes file umbrella-sampling.${a}.dat
38773876

3878-
run 100000
3877+
run 200000
38793878
unfix myat1
38803879
next a
38813880
jump SELF loop
38823881
\end{lstlisting}
38833882
The \lmpcmd{spring} command imposes the additional harmonic potential $V$ with
38843883
the previously defined spring constant $k$. The center of the harmonic
38853884
potential, $x_\text{des}$, successively takes values
3886-
from $-48\,\mathrm{\AA}$ to $48\,\mathrm{\AA}$. For each value of $x_\text{des}$,
3885+
from $-28\,\mathrm{\AA}$ to $28\,\mathrm{\AA}$. For each value of $x_\text{des}$,
38873886
an equilibration step of 40\,ps is performed, followed by a step
3888-
of 200\,ps during which the position of the particle of
3887+
of 400\,ps during which the position of the particle of
38893888
type 2 along the $x$-axis, $x_\text{ave}$, is saved in data files named \flecmd{umbrella-sampling.i.dat},
3890-
where $i$ ranges from 1 to 25. Run the \flecmd{umbrella-sampling.lmp} file using LAMMPS.
3889+
where $i$ ranges from 1 to 15. Run the \flecmd{umbrella-sampling.lmp} file using LAMMPS.
38913890

38923891
\begin{note}
38933892
The value of $k$ should be chosen with care:
@@ -3914,10 +3913,10 @@ \subsubsection{Method 2: Umbrella sampling}
39143913
and save it next to \lmpcmd{umbrella-sampling.lmp}. Then, run the WHAM algorithm
39153914
by typing the following command in the terminal:
39163915
\begin{lstlisting}
3917-
./wham -49 51 50 1e-8 119.8 0\
3916+
./wham -30 30 50 1e-8 119.8 0\
39183917
umbrella-sampling.meta umbrella-sampling.dat
39193918
\end{lstlisting}
3920-
where -49 and 51 are the boundaries, 50 is the number of bins, 1e-8 is the tolerance,
3919+
where -30 and 30 are the boundaries, 50 is the number of bins, 1e-8 is the tolerance,
39213920
and 119.8 is the temperature in Kelvin. A file called \flecmd{umbrella-sampling.dat} is created,
39223921
containing the free energy profile in kcal/mol. The resulting PMF can be compared
39233922
with the imposed potential $U$, showing excellent agreement

0 commit comments

Comments
 (0)