From the practical point of view, a
metadynamics simulation consists in two steps.
In the first one, a set of reaction coordinates is chosen whose
dynamics describes the process under study.
As we said, such a procedure requires an high degree of
chemical and physical intuition for its application to complex
molecular system, since these variables are not obviously determined
from a molecular structure.
The second step is the metadynamics simulation itself, during which an
history-dependent potential is constructed by summing, at regular time
intervals, repulsive potential terms centered in the current position of
the system in the space of the reaction coordinates.
In its standard implementation,
the history-dependent potential of metadynamics is given by a sum of small
repulsive Gaussian, Eq.7.2. Some variants have been
introduced, with the intent of improving the accuracy or the
efficiency of the method[136,137].
In the ORAC program we have used Lucy's function[138]
as a very efficient alternative to the use of Gaussian distributions..
It is defined as
7.1
|
(7.3) |
with the origin at .
The symbols and denote the height
and the width, respectively.
Such a function is normalizable,
, has a finite
range , has a maximum at the origin and it is differentiable
everywhere.
A Lucy's function can be compared with a
Gaussian function with the same value at the origin
and at
, such that
|
(7.4) |
A Lucy's function can be regarded as a Gaussian function
with in Eq.7.4,
but without the long
tails of the Gaussian, as can be seen in Fig.7.1 where
a Lucy's function with and a Gaussian
function with the same height and
are
shown.
The parameters , and affects the accuracy of the free energy
reconstruction in a similar manner to the height and the width of Gaussian
functions and a comprehensive review on the analysis of the error during a
metadynamics run can be found in [62].
The history dependent potential used during an ORAC simulation can
therefore be written as
|
(7.5) |
During a simulation, forces from this biasing potential are computed
in the shell as a sum of derivatives of functions:
|
(7.6) |
Such a derivative is computationally attractive, since it does not require
the evaluation of an exponential function as in the case of the
derivative of a Gaussian function. Moreover, since has a
finite range by definition, it does not need to be smoothly
truncated[137], as there are no contribution to the
forces from hills farther than the width .
Using the standard metadynamics approach, during a simulation
the algorithm keeps on
adding terms to the history-dependent potential (the sum in
Eq.7.5) with the same constant rate
. However, the
optimal solution would be to use a faster rate at the beginning of the
simulation, so as to produce a rough estimate of the free energy, and
then to reduce to refine this estimate[140]. This problem
corresponds to finding an optimal protocol for the evolution of the
modification factor in the original Wang-Landau algorithm. Various
solutions have been
proposed[141,133,142,143]
in which the energy
in 7.3 is time-dependent.
We propose instead to add a term to the biasing potential with a given
probability
, depending parametrically on time.
For example, for
, the evolution of the
rate would be given by
.
This procedure can be seen on average as an increasing
deposition interval , such that
decreases in time.
In the present implementation of ORAC, three different choices are
available for the probability
: the default one is
simply
and corresponds to the standard metadynamics
algorithm. The second one is given by
|
(7.7) |
where
is the maximum value of the potential at
time . During the simulation,
the effective rate decreases as
increases.
As
, the deposition rate
is so slow that the transformation can be considered adiabatic, and
the biasing potential converges to the free energy inverted in sign,
. The slowdown of can be tuned through the
parameter
. Finally, following the well-tempered metadynamics
approach[143], the third choice is given by
|
(7.8) |
where the probability depends parametrically both on time
and on position of the system along the reaction coordinate
through the biasing potential . In this case, the biasing potential
does not converge to the free energy inverted in sign as in the
previous case, since in general turns out to be
coordinate-dependent even when the potential has flatten the free
energy profile. However, as shown in [143], the relation
|
(7.9) |
can be used to recover the original free energy from the biasing
potential.
The multiple walkers version of metadynamics algorithm[144]
was implemented in the parallel version of the code
through the MPI library.
This approach is based on running simultaneously
multiple replicas of the system, contributing equally
to the same history-dependent potential, and therefore
to the same free energy surface reconstruction.
For replicas,
can be written as a double sum
|
(7.10) |
where
is the position at time
of the -th
replica along . In particular, the enhanced efficiency of this algorithm with respect
to uncoupled simulations contributes to make the
calculation of FESs in high dimensions more accessible.
In the ORAC distribution at http://www.chim.unifi.it/orac we provide some example
of metadynamics simulations using Lucy's functions on multi-dimensional surfaces
of simple molecules in the gas phase along with some ancillary codes
for the analysis of the program output.
procacci
2021-12-29