Many algorithms require the definition of boundaries and/or characteristic spacings that can be used to define discrete ``states'' in the collective variable, or to combine variables with very different units. The parameters described below offer a way to specify these parameters only once for each variable, while using them multiple times in restraints, time-dependent biases or analysis methods.
), harmonic walls (
) and linear restraints (
) use it to set the physical unit of the force constant, which is useful for multidimensional restraints involving multiple variables with very different units (for examples,
), ABF (
) and metadynamics (
) all use this number as the initial choice for the grid spacing along this variable: for this reason, width should generally be no larger than the standard deviation of the colvar in an unbiased simulation.
Unless it is required to control the spacing, it is usually simplest to keep the default value of 1, so that restraint force constants are provided with their full physical unit.
).
Alternatively, this value may be provided by the user, to represent for example the left-most point of a PMF calculation along this variable.
In the latter case, it is the user's responsibility to either (a) ensure the variable does not go significantly beyond the boundary (for example by adding a harmonicWalls restraint,
), or (b) instruct the code that this is a true physical boundary by setting hardLowerBoundary.
) to keep all of its hills fully within
the grid. This option cannot be used when
the initial boundaries already span the full period of a periodic
colvar.
Many simulation methods and analysis tools write files that contain functions of the collective variables tabulated on a grid (e.g. potentials of mean force or multidimentional histograms) for the purpose of analyzing results.
Such files are produced by ABF (
), metadynamics (
), multidimensional histograms (
), as well as any restraint with optional thermodynamic integration support (
).
In some cases, these files may also be read as input of a new simulation.
Suitable input files for this purpose are typically generated as output files of previous simulations, or directly by the user in the specific case of ensemble-biased metadynamics (
).
This section explains the ``multicolumn'' format used by these files.
For a multidimensional function
,
, ...
the multicolumn grid format is defined as follows:
| # |
|
|||||
| # |
|
|
|
|
||
| # |
|
|
|
|
||
| # | ... | ... | ... | ... | ||
| # |
|
|
|
|
||
|
|
|
... |
|
f(
|
||
|
|
|
... |
|
f(
|
||
| ... | ... | ... | ... | ... | ||
Lines beginning with the character ``#'' are the header of the file.
is the number of collective variables sampled by the grid.
For each variable
,
is the lowest value sampled by the grid (i.e. the left-most boundary of the grid along
),
is the width of each grid step along
,
is the number of points and
is a flag whose value is 1 or 0 depending on whether the grid is periodic along
.
In most situations:
) or by other biases with an optional thermodynamic integration (TI) estimator (
).
In this case, free-energy gradients are accumulated on an (npoints)-long grid along each variable
After the header, the rest of the file contains values of the tabulated function
,
, ...
, one for each line.
The first
columns contain values of
,
, ...
and the last column contains the value of the function
.
Points are sorted in ascending order with the fastest-changing values at the right (``C-style'' order).
Each sweep of the right-most variable
is terminated by an empty line.
For two dimensional grid files, this allows quick visualization by programs such as GNUplot.
Example 1: multicolumn text file for a one-dimensional histogram with lowerBoundary = 15, upperBoundary = 48 and width = 0.1.
| # | 1 | ||||
| # | 15 | 0.1 | 330 | 0 | |
| 15.05 | 6.14012e-07 | ||||
| 15.15 | 7.47644e-07 | ||||
| ... | ... | ||||
| 47.85 | 1.65944e-06 | ||||
| 47.95 | 1.46712e-06 | ||||
Example 2: multicolumn text file for a two-dimensional histogram of two dihedral angles (periodic interval with 6
bins):
| # | 2 | ||||
| # | -180.0 | 6.0 | 30 | 1 | |
| # | -180.0 | 6.0 | 30 | 1 | |
| -177.0 | -177.0 | 8.97117e-06 | |||
| -177.0 | -171.0 | 1.53525e-06 | |||
| ... | ... | ... | |||
| -177.0 | 177.0 | 2.442956-06 | |||
| -171.0 | -177.0 | 2.04702e-05 | |||
| ... | ... | ... |