These are some notes about the use of the metadynamics (MTD) machinery within CPMD. It is just a first version of a manual that I hope will be improved by the comment and possibly the contributions of the users of this method.
The metadynamics can run in a standard NVE/NVT MD run or in a NPE/NPT run (variable cell).
In order to apply the MTD algorithms in CPMD some (not few) lines have to be added in
the input file.
These lines are to be in the &ATOMS .. &END section and they provide information about
the kind of MTD to be performed, the choice of collective variables (CV),
some parameters required to determine the time dependent potential
and some other options.
All the MTD input must be between an initial and a final line which are:
METADYNAMICS
END METADYNAMICS
If the initial line contains also the keyword
,
the standard MTD, with one single set of CV, is initialized.
If, instead, the keyword
is found, more than one MTD are performed
simultaneously on the same system; therefore, the whole set of CV is constituted
by
subsets, which are independent one from each other.
The number of subsystems is given on the same line by writing
followed
by an integer number (default: 1). Instead, if
is the
keyword, the CV are the 6 cell parameters (3 side lengths and 3 angles),
and the MTD is performed without extended Lagrangian, i.e.
the contribution coming from
is directly added into the stress
tensor (see below in MTD Algorithm).
For almost all the input parameters there is a reasonable default value, but, since the range of applications of MTD is quite wide, it is likely that the default values do not fit your problem. Therefore some effort is required to choose the optimal conditions for your run. Of course, it is important to know something about MTD before using it. There are some references about the method [100,101,102], and about some successfull applications, as e.g. [103,104,105,106,108,107,109]. It can be of great help to read about the choices and results obtained by other users. But I remark that there are very few general rules that can be held valid for different problems and systems.
The method is based on the definition of a manifold of CV as functions of the
degrees of freedom characterizing your system,
, where
are the ionic
degrees of freedom,
are the electronic wavefunctions, and
defines the cell box.
The CV which are implemented in the code, have been chosen according to the needs of those
who used the method up to now. Of course they do not exhaust all the problems, and many more
CV might be needed in the future. To implement them, once the analytical
formula and its derivatives are available,
is not complicated at all. In principle, the implementation should be easy for
anybody who knows a bit the CPMD code.