Shortcut: INPLANEDISTANCES
Module | multicolvar |
---|---|
Description | Usage |
Calculate distances in the plane perpendicular to an axis | |
output value | type |
the INPLANEDISTANCE between each of the atoms specified using the GROUP keyword and atom A in the plane perpendicular to the vector connecting the atoms specified using VECTORSTART and VECTOREND | 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 |
---|---|---|---|
lessthan | scalar | LESS_THAN | the number of colvars that have a value less than a threshold |
morethan | scalar | MORE_THAN | the number of colvars that have a value more than a threshold |
altmin | scalar | ALT_MIN | the minimum value of the cv |
min | scalar | MIN | the minimum colvar |
max | scalar | MAX | the maximum colvar |
between | scalar | BETWEEN | the number of colvars that have a value that lies in a particular interval |
highest | scalar | HIGHEST | the largest of the colvars |
lowest | scalar | LOWEST | the smallest of the colvars |
sum | scalar | SUM | the sum of the colvars |
mean | scalar | MEAN | the mean of the colvars |
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 |
---|---|---|
GROUP | atoms | calculate distance for each distinct set of three atoms in the group |
VECTORSTART | atoms | The first atom position that is used to define the normal to the plane of interest |
VECTOREND | atoms | The second atom position that is used to defin the normal to the plane of interest |
Further details and examples
Calculate distances in the plane perpendicular to an axis
Each quantity calculated in this CV uses the positions of two atoms, this indices of which are specified using the VECTORSTART and VECTOREND keywords, to specify the orientation of a vector, n. The perpendicular distance between this vector and the position of some third atom is then computed using:
xj=|rj|sin(θj)
where rj is the distance between one of the two atoms that define the vector n and a third atom (atom j) and where θj is the angle between the vector \fn\f and the vector rj. The xj values for each of the atoms specified using the GROUP keyword are calculated. Keywords such as MORE_THAN and LESS_THAN can then be used to calculate the number of these quantities that are more or less than a given cutoff.
The following input can be used to calculate the number of atoms that have indices greater than 3 and less than 101 that are within a cylinder with a radius of 0.3 nm that has its long axis aligned with the vector connecting atoms 1 and 2.
d1INPLANEDISTANCESCalculate distances in the plane perpendicular to an axis This action is a shortcut. More details VECTORSTARTThe first atom position that is used to define the normal to the plane of interest=1 VECTORENDThe second atom position that is used to defin the normal to the plane of interest=2 GROUPcalculate distance for each distinct set of three atoms in the group=3-100 LESS_THANcalculate the number of variables that are less than a certain target value. Options for this keyword are explained in the documentation for LESS_THAN.={RATIONAL D_0=0.2 R_0=0.1} : PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=d1.lessthan FILEthe name of the file on which to output these quantities=colvar
Notice that the INPLANEDISTANCES is a shortcut. The syntax that is described in the expanded version of the input above provides much more flexibility for designing new CVs.
Syntax
The following table describes the keywords and options that can be used with this action
Keyword | Type | Default | Description |
---|---|---|---|
GROUP | input | none | calculate distance for each distinct set of three atoms in the group |
VECTORSTART | input | none | The first atom position that is used to define the normal to the plane of interest |
VECTOREND | input | none | The second atom position that is used to defin the normal to the plane of interest |
LESS_THAN | optional | not used | calculate the number of variables that are less than a certain target value. Options for this keyword are explained in the documentation for LESS_THAN. |
MORE_THAN | optional | not used | calculate the number of variables that are more than a certain target value. Options for this keyword are explained in the documentation for MORE_THAN. |
ALT_MIN | optional | not used | calculate the minimum value |
MIN | optional | not used | calculate the minimum value |
MAX | optional | not used | calculate the maximum value |
BETWEEN | optional | not used | calculate the number of values that are within a certain range. Options for this keyword are explained in the documentation for BETWEEN. |
HIGHEST | optional | false | this flag allows you to recover the highest of these variables |
HISTOGRAM | optional | not used | calculate a discretized histogram of the distribution of values |
LOWEST | optional | false | this flag allows you to recover the lowest of these variables |
SUM | optional | false | calculate the sum of all the quantities |
MEAN | optional | false | calculate the mean of all the quantities |