next up previous contents index
Next: Angles Up: Defining collective variables Previous: Choosing a function   Contents   Index

Subsections

Distances

distance: center-of-mass distance between two groups.

The distance {...} block defines a distance component between the two atom groups, group1 and group2.

List of keywords (see also [*] for additional options):

The value returned is a positive number (in Å), ranging from 0 to the largest possible interatomic distance within the chosen boundary conditions (with PBCs, the minimum image convention is used unless the forceNoPBC option is set).

distanceZ: projection of a distance vector on an axis.

The distanceZ {...} block defines a distance projection component, which can be seen as measuring the distance between two groups projected onto an axis, or the position of a group along such an axis. The axis can be defined using either one reference group and a constant vector, or dynamically based on two reference groups. One of the groups can be set to a dummy atom to allow the use of an absolute Cartesian coordinate.

List of keywords (see also [*] for additional options):

This component returns a number (in Å) whose range is determined by the chosen boundary conditions. For instance, if the $ z$ axis is used in a simulation with periodic boundaries, the returned value ranges between $ -b_{z}/2$ and $ b_{z}/2$ , where $ b_{z}$ is the box length along $ z$ (this behavior is disabled if forceNoPBC is set).

distanceXY: modulus of the projection of a distance vector on a plane.

The distanceXY {...} block defines a distance projected on a plane, and accepts the same keywords as the component distanceZ, i.e. main, ref, either ref2 or axis, and oneSiteTotalForce. It returns the norm of the projection of the distance vector between main and ref onto the plane orthogonal to the axis. The axis is defined using the axis parameter or as the vector joining ref and ref2 (see distanceZ above).

List of keywords (see also [*] for additional options):

distanceVec: distance vector between two groups.

The distanceVec {...} block defines a distance vector component, which accepts the same keywords as the component distance: group1, group2, and forceNoPBC. Its value is the 3-vector joining the centers of mass of group1 and group2.

List of keywords (see also [*] for additional options):

distanceDir: distance unit vector between two groups.

The distanceDir {...} block defines a distance unit vector component, which accepts the same keywords as the component distance: group1, group2, and forceNoPBC. It returns a 3-dimensional unit vector $ \mathbf{d} = (d_{x}, d_{y}, d_{z})$ , with $ \vert\mathbf{d}\vert = 1$ .

List of keywords (see also [*] for additional options):

distanceInv: mean distance between two groups of atoms.

The distanceInv {...} block defines a generalized mean distance between two groups of atoms 1 and 2, weighted with exponent $ 1/n$ :

$\displaystyle d_{\mathrm{1,2}}^{[n]} \; = \; \left(\frac{1}{N_{\mathrm{1}}N_{\m...
...}\sum_{i,j} \left(\frac{1}{\Vert\mathbf{d}^{ij}\Vert}\right)^{n} \right)^{-1/n}$ (13.2)

where $ \Vert\mathbf{d}^{ij}\Vert$ is the distance between atoms $ i$ and $ j$ in groups 1 and 2 respectively, and $ n$ is an even integer.

List of keywords (see also [*] for additional options):

This component returns a number in Å, ranging from 0 to the largest possible distance within the chosen boundary conditions.


next up previous contents index
Next: Angles Up: Defining collective variables Previous: Choosing a function   Contents   Index
vmd@ks.uiuc.edu