Metadynamics简介
本文内容源自维基百科上对Metadynamics的介绍。 Metadynamics (MTD; also abbreviated as METAD or MetaD) is a computer simulation method in computational physics, chemistry and biology. It is used to compute free energy and other state functions of a system, where ergodicity is hindered by the form of the system's energy landscape. It was first suggested by Alessandro Laio and Michele Parrinello in 2002 and is usually applied within molecular dynamics simulations. MTD closely resembles a number of recent methods such as adaptively biased molecular dynamics, adaptive reaction coordinate forces and local elevation umbrella sampling. More recently, both the original and well-tempered metadynamics were derived in the context of importance sampling and shown to be a special case of the adaptive biasing potential setting. MTD is related to the Wang-Landau sampling.
Introduction
The technique builds on a large number of related methods including (in a chronological order) the deflation, tunneling, tabu search, local elevation, conformational flooding, Engkvist-Karlström and adaptive biasing force methods.
Metadynamics has been informally described as "filling the free energy wells with computational sand". The algorithm assumes that the system can be described by a few collective variables. During the simulation, the location of the system in the space determined by the collective variables is calculated and a positive Gaussian potential is added to the real energy landscape of the system. In this way the system is discouraged to come back to the previous point. During the evolution of the simulation, more and more Gaussians sum up, thus discouraging more and more the system to go back to its previous steps, until the system explores the full energy landscape -at this point the modified free energy becomes a constant as a function of the collective variables which is the reason for the collective variables to start fluctuating heavily. At this point the energy landscape can be recovered as the opposite of the sum of all Gaussians.
The time interval between the addition of two Gaussian functions, as well as the Gaussian height and Gaussian width, are tuned to optimize the ratio between accuracy and computational cost. By simply changing the size of the Gaussian, metadynamics can be fitted to yield very quickly a rough map of the energy landscape by using large Gaussians, or can be used for a finer grained description by using smaller Gaussians. Usually, the well-temperated metadynamics is used to change the Gaussian size adaptively. Also, the Gaussian width can be adapted with the adaptive Gaussian metadynamics.
Metadynamics has the advantage, upon methods like adaptive umbrella sampling, of not requiring an initial estimate of the energy landscape to explore. However, it is not trivial to choose proper collective variables for a complex simulation. Typically, it requires several trials to find a good set of collective variables, but there are several automatic procedure proposed: essential coordinates, Sketch-Map, and non-linear data-driven collective variables.
Multi-replica approach
Independent metadynamics simulations (replicas) can be coupled together to improve usability and parallel performance. There are several such methods proposed: the multiple walker MTD, the parallel tempering MTD, the bias-exchange MTD, and the collective-variable tempering MTD. The last three are similar to the parallel tempering method and use replica exchanges to improve sampling. Typically, the Metropolis–Hastings algorithm is used for replica exchanges, but the infinite swapping and Suwa-Todo algorithms give better replica exchange rates.
Algorithm
Assume, we have a classical \(N\) -particle system with positions at $ r_i (i ...N) $ in the Cartesian coordinates $ r_i R^3 $ . The particle interaction are described with a potential function $ V V(r_i) $. The potential function form (e.g. two local minima separated by a high-energy barrier) prevents an ergodic sampling with molecular dynamics or Monte Carlo methods.
Original metadynamics
A general idea of MTD is to enhance the system sampling by discouraging revisiting of sampled states. It is achieved by augmenting the system Hamiltonian H with a bias potential \(V_{bias}\): \[ H = T + V + V_{bias} \] The bias potential is a function of collective variables ($ V_{bias} V_{bias} (s)$ ). A collective variable is a function of the particle positions (\(\vec s \equiv \vec s (\vec r_i)\)). The bias potential is continuously updated by adding bias at rate $$, where \(\vec s_t\) is an instantaneous collective variable value at time t: \[ \frac{\partial V_{bias}(\vec s)}{\partial t} = \omega \delta ( |\vec s - \vec s_t|) \] At infinitely long simulation time \(t_{sim}\), the accumulated bias potential converges to free energy with opposite sign (and irrelevant constant C): \[ V_{bias}(\vec s) = \int_0^{t_{sim}} \omega \delta (|\vec s - \vec s_t|)dt \Rightarrow F\left( \overrightarrow {s}\right) =-\lim _{t_{sim}\rightarrow \infty }V_{bis}\left( \vec s \right) +C \]
For a computationally efficient implementation, the update process is discretised into $ $ time intervals ( $ ;$ denotes the floor function) and \(\delta\)-function is replaced with a localized positive kernel function K. The bias potential becomes a sum of the kernel functions centred at the instantaneous collective variable values \(\vec s_j\) at time \(\vec \tau _j\): \[ V_{bias}\left( \overrightarrow {s}\right) \approx \tau \sum _{j=0}^{\left\lfloor \dfrac {t\sin } {\tau }\right\rfloor }wK\left( \left| \overrightarrow {s}-\overrightarrow {s_{j}}\right| \right) \] Typically, the kernel is a multi-dimensional Gaussian function, which covariance matrix has diagonal non-zero elements only: \[ V_{bias}\left( \overrightarrow {s}\right) \approx \tau\sum _{j=0}^{\left\lfloor \dfrac {t\sin } {\tau }\right\rfloor }w\exp \left( -\dfrac {1} {2}\left| \dfrac {\overrightarrow {s}-\overrightarrow {s_{i}}} {\overrightarrow {\sigma }}\right| ^{2}\right) \] The parameter \(\tau\), \(\omega\) and \(\overrightarrow {\sigma }\) are determined a priori and kept constant during the simulation.
Free energy estimator
The finite size of the kernel makes the bias potential to fluctuate around a mean value. A converged free energy can be obtained by averaging the bias potential. The averaging is started from \(t_{diff}\), when the motion along the collective variable becomes diffusive:
\[ \overline {F}\left( \overrightarrow {s}\right) =-\dfrac {1} {t_{sim}-t_{diff}}\int _{t_{diff}}^{t_{sim}}Vbias\left( \overrightarrow {s},t\right) dt + C \]
Applications
Metadynamics has been used to study: - protein folding - chemical reactions - molecular docking - phase transitions - encapsulation of DNA onto hydrophobic and hydrophilic single-walled carbon nanotubes.
Implementations
PLUMED
PLUMED is an open-source library implementing many MTD algorithms and collective variables. It has a flexible object-oriented design and can be interfaced with several MD programs (AMBER, GROMACS, LAMMPS, NAMD, Quantum ESPRESSO, and CP2K). ## Other Other MTD implementations exist in LAMMPS, NAMD, ORAC, CP2K, and Desmond.
External links: Introduction to metadynamics