@@ -3786,7 +3786,7 @@ \subsubsection{Method 2: Umbrella sampling}
37863786variable U0 equal 10*${epsilon}
37873787variable dlt equal 1.0
37883788variable x0 equal 10
3789- variable k equal 1 .5
3789+ variable k equal 0 .5
37903790
37913791units real
37923792atom_style atomic
@@ -3797,7 +3797,7 @@ \subsubsection{Method 2: Umbrella sampling}
37973797The first difference from the previous case is the larger value
37983798for the repulsive potential $ U_0 $ , which makes the central area
37993799of 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
38013801the biasing potential.
38023802
38033803Let 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}
38663865variable a loop 25
38673866label loop
38683867
3869- variable xdes equal 4*${a}-52
3868+ variable xdes equal 4*${a}-32
38703869variable xave equal xcm(topull,x)
38713870fix mytth topull spring tether ${k} ${xdes} 0 0 0
38723871
@@ -3875,19 +3874,19 @@ \subsubsection{Method 2: Umbrella sampling}
38753874fix myat1 all ave/time 10 10 100 &
38763875 v_xave v_xdes file umbrella-sampling.${a}.dat
38773876
3878- run 100000
3877+ run 200000
38793878unfix myat1
38803879next a
38813880jump SELF loop
38823881\end {lstlisting }
38833882The \lmpcmd {spring} command imposes the additional harmonic potential $ V$ with
38843883the previously defined spring constant $ k$ . The center of the harmonic
38853884potential, $ 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}$ ,
38873886an 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
38893888type 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 }
38933892The value of $ k$ should be chosen with care:
@@ -3914,10 +3913,10 @@ \subsubsection{Method 2: Umbrella sampling}
39143913and save it next to \lmpcmd {umbrella-sampling.lmp}. Then, run the WHAM algorithm
39153914by 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,
39213920and 119.8 is the temperature in Kelvin. A file called \flecmd {umbrella-sampling.dat} is created,
39223921containing the free energy profile in kcal/mol. The resulting PMF can be compared
39233922with the imposed potential $ U$ , showing excellent agreement
0 commit comments