Biased molecular dynamics: Difference between revisions
No edit summary |
(→How to) |
||
| (38 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
''Biased molecular dynamics''' (MD) refers to advanced [[:Category:Molecular dynamics|MD-simulation methods]] that introduce a ''bias potential''. One of the most important purposes of using bias potentials is to enhance the sampling of phase space with low probability density (e.g., transition regions of chemical reactions). Depending on the type of sampling and in combination with the corresponding statistical methods one then has access to important thermodynamic quantities like, e.g., free energies. Biased molecular dynamics comes in very different flavors such as, e.g., umbrella sampling{{cite|torrie:jcp:1977}} and umbrella integration{{cite|kaestner:jcp:2005}}, to name a few. For a comprehensive description (especially about umbrella sampling), we refer the interested user to Ref. {{cite|frenkel:ap-book:2002}} written by D. Frenkel and B. Smit. | |||
The probability density for a geometric parameter ξ of the system driven by a Hamiltonian | The probability density for a geometric parameter ξ of the system driven by a Hamiltonian | ||
:<math> | :<math> | ||
H(q,p) = T(p) + V(q), \; | H(q,p) = T(p) + V(q), \; | ||
</math> | </math> | ||
with ''T''(''p''), and ''V''(''q'') being kinetic, and potential energies, respectively, can be written as | with ''T''(''p''), and ''V''(''q'') being kinetic, and potential energies, respectively, can be written as | ||
:<math> | :<math> | ||
P(\xi_i)=\frac{\int\delta\Big(\xi(q)-\xi_i\Big) \exp\left\{-H(q,p)/k_B\,T\right\} dq\,dp}{\int \exp\left\{-H(q,p)/k_B\,T\right\}dq\,dp} = | P(\xi_i)=\frac{\int\delta\Big(\xi(q)-\xi_i\Big) \exp\left\{-H(q,p)/k_B\,T\right\} dq\,dp}{\int \exp\left\{-H(q,p)/k_B\,T\right\}dq\,dp} = | ||
| Line 11: | Line 12: | ||
The term <math>\langle X \rangle_H</math> stands for a thermal average of quantity ''X'' evaluated for the system driven by the Hamiltonian ''H''. | The term <math>\langle X \rangle_H</math> stands for a thermal average of quantity ''X'' evaluated for the system driven by the Hamiltonian ''H''. | ||
If the system is modified by adding a bias potential <math>\tilde{V}(\xi)</math> acting | If the system is modified by adding a bias potential <math>\tilde{V}(\xi)</math> acting on one or multiple selected internal coordinates of the system ξ=ξ(''q''), the Hamiltonian takes the form | ||
:<math> | :<math> | ||
\tilde{H}(q,p) = H(q,p) + \tilde{V}(\xi), | \tilde{H}(q,p) = H(q,p) + \tilde{V}(\xi), | ||
</math> | </math> | ||
and the probability density of ξ in the biased ensemble is | and the probability density of ξ in the biased ensemble is | ||
:<math> | :<math> | ||
\tilde{P}(\xi_i)= \frac{\int \delta\Big(\xi(q)-\xi_i\Big) \exp\left\{-\tilde{H}(q,p)/k_B\,T\right\} dq\,dp}{\int \exp\left\{-\tilde{H}(q,p)/k_B\,T\right\}dq\,dp} = \langle\delta\Big(\xi(q)-\xi_i\Big)\rangle_{\tilde{H}} | \tilde{P}(\xi_i)= \frac{\int \delta\Big(\xi(q)-\xi_i\Big) \exp\left\{-\tilde{H}(q,p)/k_B\,T\right\} dq\,dp}{\int \exp\left\{-\tilde{H}(q,p)/k_B\,T\right\}dq\,dp} = \langle\delta\Big(\xi(q)-\xi_i\Big)\rangle_{\tilde{H}}. | ||
</math> | </math> | ||
It can be shown that the biased and unbiased averages are related via | It can be shown that the biased and unbiased averages are related via | ||
:<math> | :<math> | ||
P(\xi_i)=\tilde{P}(\xi_i) \frac{\exp\left\{\tilde{V}(\xi)/k_B\,T\right\}}{\langle \exp\left\{\tilde{V}(\xi)/k_B\,T\right\} \rangle_{\tilde{H}}}. | P(\xi_i)=\tilde{P}(\xi_i) \frac{\exp\left\{\tilde{V}(\xi)/k_B\,T\right\}}{\langle \exp\left\{\tilde{V}(\xi)/k_B\,T\right\} \rangle_{\tilde{H}}}. | ||
</math> | </math> | ||
More generally, an observable | More generally, an observable | ||
:<math> | :<math> | ||
\langle A \rangle_{H} = \frac{\int A(q) \exp\left\{-H(q,p)/k_B\,T\right\} dq\,dp}{\int \exp\left\{-H(q,p)/k_B\,T\right\}dq\,dp} | \langle A \rangle_{H} = \frac{\int A(q) \exp\left\{-H(q,p)/k_B\,T\right\} dq\,dp}{\int \exp\left\{-H(q,p)/k_B\,T\right\}dq\,dp} | ||
</math> | </math> | ||
can be expressed in terms of thermal averages within the biased ensemble | can be expressed in terms of thermal averages within the biased ensemble as | ||
:<math> | :<math> | ||
\langle A \rangle_{H} =\frac{\langle A(q) \,\exp\left\{\tilde{V}(\xi)/k_B\,T\right\} \rangle_{\tilde{H}}}{\langle \exp\left\{\tilde{V}(\xi)/k_B\,T\right\} \rangle_{\tilde{H}}}. | \langle A \rangle_{H} =\frac{\langle A(q) \,\exp\left\{\tilde{V}(\xi)/k_B\,T\right\} \rangle_{\tilde{H}}}{\langle \exp\left\{\tilde{V}(\xi)/k_B\,T\right\} \rangle_{\tilde{H}}}. | ||
</math> | </math> | ||
One of the most popular methods using bias potentials is umbrella sampling{{cite|torrie:jcp:1977}}. This method uses a bias potential to enhance sampling of ξ in regions with low ''P''(ξ<sub>''i''</sub>), e.g., transition regions of chemical reactions. The correct distributions are recovered afterward using the equation for <math>\langle A \rangle_{H}</math> above. | |||
of | |||
== | === How to === | ||
For a description of biased molecular dynamics see {{TAG|Biased molecular dynamics}}. | |||
* For a biased molecular dynamics run with | * For a biased molecular dynamics run with [[Andersen thermostat]], one has to: | ||
#Set the standard MD-related tags: {{TAG|IBRION}}=0, {{TAG|TEBEG}}, {{TAG|POTIM}}, and {{TAG|NSW}} | #Set the standard MD-related tags: {{TAG|IBRION}}=0, {{TAG|TEBEG}}, {{TAG|POTIM}}, and {{TAG|NSW}}. | ||
#Set {{TAG|MDALGO}}=2 ({{TAG|MDALGO}}=21 in VASP 5.x), and choose an appropriate setting for {{TAG|SMASS}} | #Choose thermostat: | ||
#In order to avoid updating of the bias potential, set {{TAG|HILLS_BIN}}={{TAG|NSW}} | ## Set {{TAG|MDALGO}}=1 (or {{TAG|MDALGO}}=11 in VASP 5.x), and choose an appropriate setting for {{TAG|ANDERSEN_PROB}}. | ||
#Define collective variables in the {{FILE|ICONST}}-file, and set the <tt>STATUS</tt> parameter for the collective variables to 5 | ## Set {{TAG|MDALGO}}=2 (or {{TAG|MDALGO}}=21 in VASP 5.x), and choose an appropriate setting for {{TAG|SMASS}}. | ||
#Define the bias potential in the {{FILE|PENALTYPOT}} | #In order to avoid updating of the bias potential, set {{TAG|HILLS_BIN}}={{TAG|NSW}}. | ||
#Define collective variables in the {{FILE|ICONST}}-file, and set the <tt>STATUS</tt> parameter for the collective variables to 5. | |||
#Define the bias potential in the {{FILE|PENALTYPOT}} file if necessary. | |||
The values of all collective variables for each MD step are listed in the {{FILE|REPORT}} | The values of all collective variables for each MD step are listed in the {{FILE|REPORT}} file. Check the lines after the string <tt>Metadynamics</tt>. | ||
== References == | == References == | ||
<references | <references/> | ||
[[Category: | [[Category:Advanced molecular-dynamics sampling]][[Category:Theory]] | ||
Latest revision as of 13:14, 21 October 2025
Biased molecular dynamics' (MD) refers to advanced MD-simulation methods that introduce a bias potential. One of the most important purposes of using bias potentials is to enhance the sampling of phase space with low probability density (e.g., transition regions of chemical reactions). Depending on the type of sampling and in combination with the corresponding statistical methods one then has access to important thermodynamic quantities like, e.g., free energies. Biased molecular dynamics comes in very different flavors such as, e.g., umbrella sampling[1] and umbrella integration[2], to name a few. For a comprehensive description (especially about umbrella sampling), we refer the interested user to Ref. [3] written by D. Frenkel and B. Smit.
The probability density for a geometric parameter ξ of the system driven by a Hamiltonian
- [math]\displaystyle{ H(q,p) = T(p) + V(q), \; }[/math]
with T(p), and V(q) being kinetic, and potential energies, respectively, can be written as
- [math]\displaystyle{ P(\xi_i)=\frac{\int\delta\Big(\xi(q)-\xi_i\Big) \exp\left\{-H(q,p)/k_B\,T\right\} dq\,dp}{\int \exp\left\{-H(q,p)/k_B\,T\right\}dq\,dp} = \langle\delta\Big(\xi(q)-\xi_i\Big)\rangle_{H}. }[/math]
The term [math]\displaystyle{ \langle X \rangle_H }[/math] stands for a thermal average of quantity X evaluated for the system driven by the Hamiltonian H.
If the system is modified by adding a bias potential [math]\displaystyle{ \tilde{V}(\xi) }[/math] acting on one or multiple selected internal coordinates of the system ξ=ξ(q), the Hamiltonian takes the form
- [math]\displaystyle{ \tilde{H}(q,p) = H(q,p) + \tilde{V}(\xi), }[/math]
and the probability density of ξ in the biased ensemble is
- [math]\displaystyle{ \tilde{P}(\xi_i)= \frac{\int \delta\Big(\xi(q)-\xi_i\Big) \exp\left\{-\tilde{H}(q,p)/k_B\,T\right\} dq\,dp}{\int \exp\left\{-\tilde{H}(q,p)/k_B\,T\right\}dq\,dp} = \langle\delta\Big(\xi(q)-\xi_i\Big)\rangle_{\tilde{H}}. }[/math]
It can be shown that the biased and unbiased averages are related via
- [math]\displaystyle{ P(\xi_i)=\tilde{P}(\xi_i) \frac{\exp\left\{\tilde{V}(\xi)/k_B\,T\right\}}{\langle \exp\left\{\tilde{V}(\xi)/k_B\,T\right\} \rangle_{\tilde{H}}}. }[/math]
More generally, an observable
- [math]\displaystyle{ \langle A \rangle_{H} = \frac{\int A(q) \exp\left\{-H(q,p)/k_B\,T\right\} dq\,dp}{\int \exp\left\{-H(q,p)/k_B\,T\right\}dq\,dp} }[/math]
can be expressed in terms of thermal averages within the biased ensemble as
- [math]\displaystyle{ \langle A \rangle_{H} =\frac{\langle A(q) \,\exp\left\{\tilde{V}(\xi)/k_B\,T\right\} \rangle_{\tilde{H}}}{\langle \exp\left\{\tilde{V}(\xi)/k_B\,T\right\} \rangle_{\tilde{H}}}. }[/math]
One of the most popular methods using bias potentials is umbrella sampling[1]. This method uses a bias potential to enhance sampling of ξ in regions with low P(ξi), e.g., transition regions of chemical reactions. The correct distributions are recovered afterward using the equation for [math]\displaystyle{ \langle A \rangle_{H} }[/math] above.
How to
For a description of biased molecular dynamics see Biased molecular dynamics.
- For a biased molecular dynamics run with Andersen thermostat, one has to:
- Set the standard MD-related tags: IBRION=0, TEBEG, POTIM, and NSW.
- Choose thermostat:
- In order to avoid updating of the bias potential, set HILLS_BIN=NSW.
- Define collective variables in the ICONST-file, and set the STATUS parameter for the collective variables to 5.
- Define the bias potential in the PENALTYPOT file if necessary.
The values of all collective variables for each MD step are listed in the REPORT file. Check the lines after the string Metadynamics.
References
- ↑ a b G. M. Torrie and J. P. Valleau, J. Comp. Phys. 23, 187 (1977).
- ↑ J. Kästner, and W. Thiel, Bridging the gap between thermodynamic integration and umbrella sampling provides a novel analysis method: “Umbrella integration”, J. Chem. Phys. 123, 144104 (2005).
- ↑ D. Frenkel and B. Smit, Understanding molecular simulations: from algorithms to applications, Academic Press: San Diego, 2002.