Targeted MD Simulations¶
For accelerated sampling of rare events, biased simulation methods have been developed.
One particular method is targeted MD developed Schlitter et al. 1994. Here, a constraint is applied to a subset of atoms to move it towards a target conformation along a predescribed one-dimensional path in conformational space with constant velocity \(v_c\) from \(s_0 (t=0)\) to \(s (t=t_f)\) along the pulling coordinate \(s(t)=s_0+v_{c}t\). The corresponding constraint function is
The necessary constraint force \(f_c\),
added through a Lagrangian-multiplier λ to the equation of motion, is stored to compute the work \(W(s)=\int_{s_0}^{s} f_c(s')\; ds' \geq\Delta G\) needed to move the atom, or subset of atoms, along the pulling coordinate.
Jarzynski's Equality¶
An approach to estimate ∆G for finite switching times was proposed by Jarzynski. It is possible to calculate the free energy directly from a thermostated system in equilibrium that is driven away from equilibrium (e.g. in non-equilibrium pulling trajectories) along a pulling coordinate \(s(t)\) via
Here \(\Delta G\) denotes the Gibbs free energy, \(\left< \cdot \right>_\text{N}\) denotes an ensemble average over independent pulling trajectories starting from an initial Boltzmann distribution. The original formulation of Eq. (1) is for an NVT ensemble predicting the Helmholtz free energy \(\Delta F\) instead of \(\Delta G\) and was later generalized for NPT ensembles (see Park et al. 2004).
Equation (1) allows to directly calculate the free energy profile from biased simulations. However, the exponential average highly relies on a sufficient sampling of the small values of the work distribution, which occur only rarely. Thus, in practice a large number of non-equilibrium trajectories is required, due to the slow and erratic convergence of the exponential average. This problem can be approached by a cumulant expansion:
with \(\delta W(s) = W(s) -\left< W(s) \right>_\text{N}\). The expansion can be truncated at second order if the work distribution is Gaussian. This allows to formulate the dissipated work
in terms of the variance of the work.
Dissipation-Corrected TMD¶
A method developed by Wolf and Stock combines Langevin dynamics with the second order cumulant expansion given in Eq. (2). It evaluates \(\Delta G(s)\) as well as a non-equilibrium friction coefficient \(\Gamma_\text{N}\) directly from TMD trajectories and is called dissipation-corrected TMD (dcTMD).
As stated before, in TMD simulations a constraint force \(f_c\) is applied to the system. We assume that \(f_c\) does not change the Langevin fields \(f\), \(\Gamma\), and \(K\) and make the ansatz, that \(f_c\) can be simply included as an additive term in the memory free Langevin equation. This yields:
To keep the velocity constant, \(f_c(t)\) needs to counter al occurring forces, thus
This, however, only holds if the following requirements on the constraint force \(f_c\) are fulfilled: first, \(v_c\) is kept constant against the drag of the friction \(\Gamma(s)\) and the acceleration due to the free energy gradient; second, \(f_c\) counterbalances the effect of the stochastic force \(K(s)\xi(t).\)
The first requirement is fulfilled if \(v_c\) is slow compared to the bath fluctuations. Then the pulling can be considered as a slow adiabatic change and the system is virtually in equilibrium at every point along \(s\).
The second requirement is harder to satisfy, since \(f_c\) and the bath fluctuations necessarily occur in the same time scales. When considering an ensemble of TMD trajectories instead of a single trajectory the stochastic term cancels out by definition. Thus, performing an ensemble average of Eq. (3) over a set of trajectories one obtains:
by making use of \(\left< \xi \right>_\text{N}=0\) and \(\left< \dot{s} \right>_\text{N}=v_c\). Integrating on both sides from the initial state \(s_0\) to final state \(s\) gives:
where the first term describes the dissipated work of the process in terms of the friction \(\Gamma\) and the second term corresponds to the average external work carried out on the system.
With this, the dissipated work
with the force \(\delta f_c = f_c - \left<f_c\right>\), can be compared with Eq. (4), suggesting that the NEQ friction term \(\Gamma\) can be expressed by
where a substitution of variables was performed using \(s_1 = s_0 + v_c t'\) and \(\tau = t - t'\). Thus, a non-equilibrium friction correction is obtained
-
under the assumption of a Gaussian work distribution, which determines the friction arising from a set of TMD simulations
-
pulled with constant mean velocity \(v_c\) along a reaction coordinate \(s\).
Equation (5) has a similar form to the well known friction expression in equilibrium
For further reading on langevin equations see e.g., Zwanzig 2001
Classes calculating the dcTMD quantities¶
There are two ways to calculate the dcTMD quantities \(\Delta G\) and \(\Gamma\).
WorkEstimator¶
One way to analyse non equilibrium force time traces from constraint pulling simulations is via Eq. (2). The expansion can be truncated at second order if the work distribution is Gaussian. So the free energy and friction estimates are calculated form work time traces via:
This approach is implemented in the WorkEstimator class and computationally more efficient than calculating the force auto-correlation function (which is implemented in the ForceEstimator class), because the class works with the work data via the integration of the force time traces. This allows to reduce the resolution significantly while gaining the same results.
Therefore, we advide to use this approach for large datasets.
Another way is via the force autocorrelation function. This is implemented in the ForceEstimator class using equations
ForceEstimator¶
Another option to analyse non equilibrium force time traces from constraint pulling simulations is by starting from the friction estimate via the force \(f_c(t)\) auto correlation:
This approach is implemented in the ForceEstimator class and is computionally more demanding, since the full resolution of the force time traces is needed to determine friction and free energy estimates.