Shortcut: COORDINATIONNUMBER

Module symfunc
Description Usage
Calculate the coordination numbers of atoms so that you can then calculate functions of the distribution of used in 5 tutorialsused in 31 eggs
output value type
the coordination numbers of the specified atoms 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
moment scalar MOMENTS the moments of the distribution

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
SPECIES atoms the list of atoms for which the symmetry function is being calculated and the atoms that can be in the environments
SPECIESA atoms the list of atoms for which the symmetry function is being calculated
SPECIESB atoms the list of atoms that can be in the environments of each of the atoms for which the symmetry function is being calculated

Further details and examples

Calculate the coordination numbers of atoms so that you can then calculate functions of the distribution of coordination numbers such as the minimum, the number less than a certain quantity and so on.

The coordination number of a atom i is the number of atoms that are within a certain cutoff distance of it. This quantity can be calculated as follows:

si=jσ(rij)

where rij is the distance between atoms i and j and σ is a switching function. The typical switching function that is used in metadynamics is this one:

s(r)=1(rd0r0)n1(rd0r0)m

The following example shows how you can use this shortcut action to calculate and print the coordination numbers of one hundred atoms with themselves:

Click on the labels of the actions for more information on what each action computes
tested on2.11
c: COORDINATIONNUMBERCalculate the coordination numbers of atoms so that you can then calculate functions of the distribution of This action is a shortcut and it has hidden defaults. More details SPECIESthe list of atoms for which the symmetry function is being calculated and the atoms that can be in the environments=1-100 R_0The r_0 parameter of the switching function=1.0
DUMPATOMSDump selected atoms on a file. More details ATOMSthe atom indices whose positions you would like to print out=c ARGthe labels of vectors that should be output in the xyz file=c FILEfile on which to output coordinates; extension is automatically detected=coords.xyz

This input will produce an output file called coords that contains the coordination numbers of the 100 input atoms. The cutoff that is used to calculate the coordination number in this case is 1.0.

The vectors that are output by the COORDINATIONNUMBER shortcut can be used in the input for many other functions that are within PLUMED. In addition, in order to ensure compatibility with older versions of PLUMED you can add additional keywords on the input line for COORDINATIONNUMBER in order to calculate various functions of the input. For example, the following input tells plumed ato calculate the coordination numbers of atoms 1-100 with themselves. The minimum coordination number is then calculated.

Click on the labels of the actions for more information on what each action computes
tested on2.11
c: COORDINATIONNUMBERCalculate the coordination numbers of atoms so that you can then calculate functions of the distribution of This action is a shortcut and it has hidden defaults. More details SPECIESthe list of atoms for which the symmetry function is being calculated and the atoms that can be in the environments=1-100 R_0The r_0 parameter of the switching function=1.0 MINcalculate the minimum value={BETA=0.1}

By constrast, this input tells plumed to calculate how many atoms from 1-100 are within 3.0 of each of the atoms from 101-110. In the first 101 is the central atom, in the second 102 is the central atom and so on. The number of coordination numbers that are more than 6 is then computed.

Click on the labels of the actions for more information on what each action computes
tested on2.11
c: COORDINATIONNUMBERCalculate the coordination numbers of atoms so that you can then calculate functions of the distribution of This action is a shortcut and it has hidden defaults. More details SPECIESAthe list of atoms for which the symmetry function is being calculated=101-110 SPECIESBthe list of atoms that can be in the environments of each of the atoms for which the symmetry function is being calculated=1-100 R_0The r_0 parameter of the switching function=3.0 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=6.0 NN=6 MM=12 D_0=0}

Notice that these inputs both use shortcuts. If you expand the inputs above you can determine the set of actions that are being used to calculate each of the quantities of interest.

References

More information about how this action can be used is available in the following articles: - A. D. White, G. A. Voth, Efficient and Minimal Method to Bias Molecular Simulations with Experimental Data. Journal of Chemical Theory and Computation. 10, 3023–3030 (2014)

Syntax

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

Keyword Type Default Description
SPECIES input none the list of atoms for which the symmetry function is being calculated and the atoms that can be in the environments
SPECIESA input none the list of atoms for which the symmetry function is being calculated
SPECIESB input none the list of atoms that can be in the environments of each of the atoms for which the symmetry function is being calculated
NN compulsory 6 The n parameter of the switching function
MM compulsory 0 The m parameter of the switching function; 0 implies 2*NN
D_0 compulsory 0.0 The d_0 parameter of the switching function
R_0 compulsory none The r_0 parameter of the switching function
R_POWER compulsory none the power to which you want to raise the distance
SWITCH optional not used the switching function that it used in the construction of the contact matrix. Options for this keyword are explained in the documentation for LESS_THAN.
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
LOWMEM optional false this flag does nothing and is present only to ensure back-compatibility
MOMENTS optional not used the list of moments that you would like to calculate