Collective Variables Module
Reference manual for GROMACS
(Code version: 2026-11-24)
Contents
- 1 Overview
- 2 Writing a Colvars configuration: a crash course
- 3 Enabling and controlling the Colvars module in GROMACS
-
4 Defining collective variables
- 4.1 Choosing a function
- 4.2 Treatment of periodic boundary conditions
-
4.3 Distances
- 4.3.1 distance: center-of-mass distance between two groups.
- 4.3.2 distanceZ: projection of a distance vector on an axis.
- 4.3.3 distanceXY: modulus of the projection of a distance vector on a plane.
- 4.3.4 distanceVec: distance vector between two groups.
- 4.3.5 distanceDir: distance unit vector between two groups.
- 4.3.6 distanceInv: mean distance between two groups of atoms.
- 4.4 Angles
- 4.5 Contacts
-
4.6 Collective metrics
- 4.6.1 rmsd: root mean square displacement (RMSD) from reference positions.
- 4.6.2 Advanced usage of the rmsd component.
- 4.6.3 eigenvector: projection of the atomic coordinates on a vector.
- 4.6.4 gyration: radius of gyration of a group of atoms.
- 4.6.5 inertia: total moment of inertia of a group of atoms.
- 4.6.6 dipoleMagnitude: dipole magnitude of a group of atoms.
- 4.6.7 inertiaZ: total moment of inertia of a group of atoms around a chosen axis.
-
4.7 Rotations
- 4.7.1 orientation: orientation from reference coordinates.
- 4.7.2 orientationAngle: angle of rotation from reference coordinates.
- 4.7.3 orientationProj: cosine of the angle of rotation from reference coordinates.
- 4.7.4 spinAngle: angle of rotation around a given axis.
- 4.7.5 tilt: cosine of the rotation orthogonal to a given axis.
- 4.7.6 eulerPhi: Roll angle from references coordinates.
- 4.7.7 eulerTheta: Pitch angle from references coordinates.
- 4.7.8 eulerPsi: Yaw angle from references coordinates.
- 4.8 Protein structure descriptors
- 4.9 Raw data: building blocks for custom functions
-
4.10 Geometric path collective variables
- 4.10.1 gspath: progress along a path defined in atomic Cartesian coordinate space.
- 4.10.2 gzpath: distance from a path defined in atomic Cartesian coordinate space.
- 4.10.3 linearCombination: Helper CV to define a linear combination of other CVs
- 4.10.4 customColvar: Helper CV to define a mathematical expression as CV from other CVs
- 4.10.5 gspathCV: progress along a path defined in CV space.
- 4.10.6 gzpathCV: distance from a path defined in CV space.
- 4.11 Arithmetic path collective variables
- 4.12 Dense neural network in CV space (MLCV)
- 4.13 Torch-based collective variables
- 4.14 Shared keywords for all components
- 4.15 Periodic components
- 4.16 Non-scalar components
- 4.17 Linear and polynomial combinations of components
- 4.18 Custom functions
- 4.19 Defining grid parameters for a colvar
- 4.20 Trajectory output
- 4.21 Extended Lagrangian
- 4.22 Multiple time-step variables
- 4.23 Backward-compatibility
- 4.24 Statistical analysis
- 5 Selecting atoms
-
6 Biasing and analysis methods
- 6.1 Defining grids for biasing and analysis methods
- 6.2 Thermodynamic integration
- 6.3 Adaptive Biasing Force
- 6.4 Extended-system Adaptive Biasing Force (eABF)
- 6.5 Adiabatic Bias Molecular Dynamics (ABMD)
- 6.6 Metadynamics
- 6.7 On-the-fly probability enhanced sampling (OPES)
- 6.8 Harmonic restraints
- 6.9 Computing the work of a changing restraint
- 6.10 Harmonic wall restraints
- 6.11 Linear restraints
- 6.12 Adaptive Linear Bias/Experiment Directed Simulation
- 6.13 Multidimensional histograms
- 6.14 Probability distribution-restraints
- 7 Syntax changes from older versions
- 8 Compilation notes
- Index
- References