Action: DISTANCE

Module colvar
Description Usage
Calculate the distance/s between pairs of atoms. used in 18 tutorialsused in 154 eggs
output value type
the DISTANCE between this pair of atoms scalar/vector

Output components

This action can calculate the values in the following table when the associated keyword is included in the input for the action. These values can be referenced elsewhere in the input by using this Action’s label followed by a dot and the name of the value required from the list below.

Name Type Keyword Description
x scalar/vector COMPONENTS the x-component of the vector connecting the two atoms
y scalar/vector COMPONENTS the y-component of the vector connecting the two atoms
z scalar/vector COMPONENTS the z-component of the vector connecting the two atoms
a scalar/vector SCALED_COMPONENTS the normalized projection on the first lattice vector of the vector connecting the two atoms
b scalar/vector SCALED_COMPONENTS the normalized projection on the second lattice vector of the vector connecting the two atoms
c scalar/vector SCALED_COMPONENTS the normalized projection on the third lattice vector of the vector connecting the two atoms

Input

The atoms that serve as the input for this action are specified using one or more of the keywords in the following table.

Keyword Type Description
ATOMS atoms the pair of atom that we are calculating the distance between

Further details and examples

Text from manual goes here

References

More information about how this action can be used is available in the following articles:

Syntax

The following table describes the keywords and options that can be used with this action

Keyword Type Default Description
ATOMS input none the pair of atom that we are calculating the distance between
NUMERICAL_DERIVATIVES optional false calculate the derivatives for these quantities numerically
NOPBC optional false ignore the periodic boundary conditions when calculating distances
COMPONENTS optional false calculate the x, y and z components of the distance separately and store them as label
SCALED_COMPONENTS optional false calculate the a, b and c scaled components of the distance separately and store them as label