Skip to content

Commit 21686be

Browse files
committed
updated figure 42 - tutorial 7
1 parent 57698d4 commit 21686be

3 files changed

Lines changed: 146 additions & 16 deletions

File tree

figures/US-density-evolution.png

-7.46 KB
Loading

files/tutorial7/solution/free-sampling.ipynb

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

lammps-tutorials.tex

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3623,11 +3623,11 @@ \subsubsection{Method 1: Free sampling}
36233623
\label{eq:F}
36243624
\end{equation}
36253625
Fig.\,\ref{fig:potential} shows the potential $U$ and force $F$ along the $x$-axis.
3626-
With $U_0 = 1.5 \epsilon = 0.36\,\text{kcal/mol}$, $U_0$ is of the same order as the
3626+
With $U_0 = 1.5 \epsilon = 0.36\,\text{kcal/mol}$, $U_0$ is comparable to
36273627
thermal energy $k_\text{B} T = 0.24\,\text{kcal/mol}$, where $k_\text{B} = 0.002\,\text{kcal/mol/K}$
3628-
is the Boltzmann constant and $T = 119.8\,\text{K}$ the temperature that will be
3629-
used here. In this case, particles are expected to regularly overcome the
3630-
energy barrier thanks to the thermal agitation.
3628+
is the Boltzmann constant and $T = 119.8\,\text{K}$ is the temperature
3629+
used in this simulation. Under these conditions, particles are expected to
3630+
frequently overcome the energy barrier due to thermal agitation.
36313631

36323632
\begin{figure}
36333633
\centering
@@ -3638,7 +3638,7 @@ \subsubsection{Method 1: Free sampling}
36383638
\label{fig:potential}
36393639
\end{figure}
36403640

3641-
Let us impose the force $F(x)$ to the atoms in the simulation
3641+
We impose the force $F(x)$ to the atoms in the simulation
36423642
using the \lmpcmd{fix addforce} command. Add the following
36433643
lines to \flecmd{free-energy.lmp}:
36443644
\begin{lstlisting}
@@ -3648,18 +3648,19 @@ \subsubsection{Method 1: Free sampling}
36483648
-${U0}/((x+${x0})^2/${dlt}^2+1)/${dlt}
36493649
fix myadf all addforce v_F 0.0 0.0 energy v_U
36503650
\end{lstlisting}
3651-
Let us combine the \lmpcmd{fix nve} with a \lmpcmd{fix langevin} thermostat:
3651+
Next, we combine the \lmpcmd{fix nve} with a \lmpcmd{fix langevin} thermostat:
36523652
\begin{lstlisting}
36533653
fix mynve all nve
36543654
fix mylgv all langevin 119.8 119.8 50 30917
36553655
\end{lstlisting}
3656-
When combining these two commands, the MD simulation is effectively
3657-
in the NVT ensemble: constant number of atoms $N$, constant volume
3658-
$V$, and constant temperature $T$.
3656+
When combining these two commands, the MD simulation operates
3657+
in the NVT ensemble, maintaining a constant number of
3658+
atoms $N$, constant volume $V$, and a temperature $T$ that
3659+
fluctuates around a target value.
36593660

3660-
To make sure that the equilibration time is sufficient, we will record the evolution of
3661-
the number of atoms in the central (energetically unfavorable) region called \lmpcmd{mymes}
3662-
using the \lmpcmd{n\_center} variable:
3661+
To ensure that the equilibration time is sufficient, we will track the evolution of
3662+
the number of atoms in the central (energetically unfavorable) region,
3663+
referred to as \lmpcmd{mymes}, using the \lmpcmd{n\_center} variable:
36633664
\begin{lstlisting}
36643665
region mymes block -${x0} ${x0} INF INF INF INF
36653666
variable n_center equal count(all,mymes)
@@ -3671,7 +3672,7 @@ \subsubsection{Method 1: Free sampling}
36713672
dump_modify viz backcolor white acolor 1 cyan adiam 1 1 &
36723673
boxcolor black
36733674
\end{lstlisting}
3674-
A \lmpcmd{dump image} was also added for system visualization.
3675+
A \lmpcmd{dump image} command was added for system visualization.
36753676

36763677
Finally, let us perform an equilibration of 500000 steps
36773678
in total, using a timestep of $2\,\text{fs}$ (i.e.~a total duration of $1\,\text{ns}$):
@@ -3681,7 +3682,7 @@ \subsubsection{Method 1: Free sampling}
36813682
\end{lstlisting}
36823683
Run the simulation with LAMMPS. The number of atoms in the
36833684
central region, $n_\mathrm{center}$, reaches
3684-
its equilibrium value after approximately $0.1\,\text{ns}$
3685+
its equilibrium value after approximately $500\,\text{ps}$
36853686
(Fig.\,\ref{fig:US-density-evolution}). A snapshot of the
36863687
equilibrated system is shown in Fig.\,\ref{fig:US-system-unbiased}.
36873688

@@ -3707,8 +3708,8 @@ \subsubsection{Method 1: Free sampling}
37073708
\centering
37083709
\includegraphics[width=\linewidth]{US-density-evolution}
37093710
\caption{Evolution of the number of atoms $n_\text{center}$ in the central
3710-
region \textit{mymes} as a function of time $t$ during equilibration. The dark line
3711-
serves as a guide for the eyes. Here, $U_0 = 0.36~\text{kcal/mol}$,
3711+
region \lmpcmd{mymes} as a function of time $t$ during equilibration. The dark line
3712+
is $n_\text{center} = 22 \exp(-t/160)+5$ and serves as a guide for the eyes. Here, $U_0 = 0.36~\text{kcal/mol}$,
37123713
$\delta = 0.5~\mathrm{\AA{}}$, and $x_0 = 5~\mathrm{\AA{}}$.}
37133714
\label{fig:US-density-evolution}
37143715
\end{figure}

0 commit comments

Comments
 (0)