Shortcut: YDISTANCES
| Module | multicolvar |
|---|---|
| Description | Usage |
| Calculate the y components of the vectors connecting one or many pairs of atoms. | |
| output value | type |
| the DISTANCES between the each pair of atoms that were specified | vector |
Deprecated
This action has been deprecated and is no longer supported. Use DISTANCE instead.
Details and examples
Calculate the y components of the vectors connecting one or many pairs of atoms.
This shortcut action allows you to calculate functions of the distribution of the y components of the vectors connecting pairs of atoms and reproduces the syntax in older PLUMED versions. If you look at the example inputs below you can see how the new syntax operates. We would strongly encourage you to use the newer syntax as it offers greater flexibility.
The following input tells plumed to calculate the y-component of the vector connecting atom 3 to atom 5 and the y-component of the vector connecting atom 1 to atom 2. The minimum of these two quantities is then printed
d1: YDISTANCESCalculate the y components of the vectors connecting one or many pairs of atoms. This action is a shortcut. More details ATOMS1the pairs of atoms that you would like to calculate the angles for=3,5 ATOMS2the pairs of atoms that you would like to calculate the angles for=1,2 MINcalculate the minimum value={BETA=0.1} PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=d1.min
The following input tells plumed to calculate the y-component of the vector connecting atom 3 to atom 5 and the y-component of the vector connecting atom 1 to atom 2. The number of values that are less than 0.1nm is then printed to a file.
d1: YDISTANCESCalculate the y components of the vectors connecting one or many pairs of atoms. This action is a shortcut. More details ATOMS1the pairs of atoms that you would like to calculate the angles for=3,5 ATOMS2the pairs of atoms that you would like to calculate the angles for=1,2 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 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
The following input tells plumed to calculate the y-components of all the distinct vectors that can be created between atoms 1, 2 and 3 (i.e. the vectors between atoms 1 and 2, atoms 1 and 3 and atoms 2 and 3). The average of these quantities is then calculated.
d1: YDISTANCESCalculate the y components of the vectors connecting one or many pairs of atoms. This action is a shortcut. More details GROUPCalculate the distance between each distinct pair of atoms in the group=1-3 MEAN calculate the mean of all the quantities PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=d1.mean
The following input tells plumed to calculate all the vectors connecting the the atoms in GROUPA to the atoms in GROUPB. In other words the vector between atoms 1 and 2 and the vector between atoms 1 and 3. The number of values more than 0.1 is then printed to a file.
d1: YDISTANCESCalculate the y components of the vectors connecting one or many pairs of atoms. This action is a shortcut. More details GROUPACalculate the distances between all the atoms in GROUPA and all the atoms in GROUPB=1 GROUPBCalculate the distances between all the atoms in GROUPA and all the atoms in GROUPB=2,3 MORE_THANcalculate the number of variables that are more than a certain target value. Options for this keyword are explained in the documentation for MORE_THAN.={RATIONAL 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.morethan
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 the distance between each distinct pair of atoms in the group |
| GROUPA | atoms | Calculate the distances between all the atoms in GROUPA and all the atoms in GROUPB |
| GROUPB | atoms | Calculate the distances between all the atoms in GROUPA and all the atoms in GROUPB |
| ATOMS | atoms | the pairs of atoms that you would like to calculate the angles for |
| ORIGIN | atoms | calculate the distance of all the atoms specified using the ATOMS keyword from this point |
| LOCATION | atoms | the location at which the CV is assumed to be in space |
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 |
| x | vector | COMPONENTS | the x-components of the distance vectors |
| y | vector | COMPONENTS | the y-components of the distance vectors |
| z | vector | COMPONENTS | the z-components of the distance vectors |
Full list of keywords
The following table describes the keywords and options that can be used with this action
| Keyword | Type | Default | Description |
|---|---|---|---|
| GROUP | input | none | Calculate the distance between each distinct pair of atoms in the group |
| GROUPA | input | none | Calculate the distances between all the atoms in GROUPA and all the atoms in GROUPB |
| GROUPB | input | none | Calculate the distances between all the atoms in GROUPA and all the atoms in GROUPB |
| ATOMS | input | none | the pairs of atoms that you would like to calculate the angles for |
| ORIGIN | input | none | calculate the distance of all the atoms specified using the ATOMS keyword from this point |
| LOCATION | input | none | the location at which the CV is assumed to be in space |
| 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 |
| LOWMEM | optional | not used | Including this keyword in the input to this action makes no difference to the calculation performed it was used in older versions of PLUMED and is provided here for back compatibility only |
| 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 | not used | 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 | not used | this flag allows you to recover the lowest of these variables |
| SUM | optional | not used | calculate the sum of all the quantities |
| MEAN | optional | not used | calculate the mean of all the quantities |