The structure of a typical colvars configuration is represented in Figure 6. Each colvar is a combination of one or more components (see 9.2), which are functions of several atomic coordinates. Many different biasing or analysis methods can be applied to the same colvars. But care should be taken that certain methods (such as free energy reconstruction) do not produce correct results when other biases are adding forces to their colvars.
|
To enable a colvar calculation, two parameters should be added to the NAMD configuration file must set (three when restarting a previous run):
By default, the collective variables module writes three output files:
Other output files may be written by specific methods applied to the colvars (e.g. by the ABF method, see 9.3.1, or the metadynamics method, see 9.3.2). Like the colvar trajectory file, they are needed only for analyzing, not continuing a simulation. All such files' names also begin with the prefix outputName.
Except for the three NAMD keywords listed above (colvars, colvarsConfig and colvarsInput), all the parameters defining the colvars and their biases are read from the extra input file (provided by colvarsConfig). Hence, none of the keywords described in this and the following sections are available in the NAMD main configuration.
The syntax of the collective variables configuration file is similar to that of the NAMD file (2.2.1), with a few important differences:
Three global options are available:
The following is a typical configuration file. The options available inside the two colvar blocks are documented in 9.2. harmonic defines an harmonic potential, which is one of the available biases, documented in 9.3. Note: except colvar, none of the keywords below is mandatory.
# collective variables config file: two distances colvarsTrajFrequency 100 # output values every 100 steps colvar { name 1st-colvar # needed to identify the variable outputSystemForce yes # report also the system force on this colvar # (in addition to the current value) distance { group1 { atomNumbers 1 2 3 } group2 { atomNumbers 4 5 6 } } } colvar { name 2nd-colvar ... } harmonic { name my_pot colvars 1st-colvar 2nd-colvar centers 3.0 4.0 forceConstant 5.0 }
In the following, the section 9.2 explains how to define a colvar. 9.2.1 lists the available colvar components; 9.2.2 defines how to combine existing components to create new types of colvars; 9.2.3 documents how to define in a compact way atom groups, which are used by most components; 9.2.4 lists the available option for runtime analysis of the colvars.
9.3 lists the available methods to perform biased simulations and multidimensional analysis (ABF, harmonic restraint, histogram, and metadynamics).