Shortcut: CAVITY

Module volumes
Description Usage
This quantity can be used to calculate functions of the distribution of collective variables for the atoms that lie in a box defined by the positions of four atoms. used in 0 tutorialsused in 0 eggs
output value type
sum of values of input CVs in regin of interest scalar

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 cvs in the region of interest that are less than a certain threshold
morethan scalar MORE_THAN the number of cvs in the region of interest that are more than a certain threshold
between scalar BETWEEN the number of cvs in the region of interest that are within a certain range
sum scalar SUM the sum of all the colvars weighted by the function that determines if we are in the region
mean scalar MEAN the average values of the colvar in the region of interest

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 group of atoms that you would like to investigate
BOX atoms the positions of four atoms that define spatial extent of the cavity

Further details and examples

This quantity can be used to calculate functions of the distribution of collective variables for the atoms that lie in a box defined by the positions of four atoms.

This action can be used similarly to the way AROUND is used. Like AROUND this action returns a vector with elements that tell you whether an input atom is within a part of the box that is of particular interest or not. However, for this action the elements of this vector are calculated using:

w(ui,vi,wi)=u0v0w0dudvdwK(uuiσ)K(vviσ)K(wwiσ)

with ui,vi,wi being calculated from the positon of the ith atom, (xi,yi,zi), by performing the following transformation.

(uiviwi)=R(xixoyiyozizo)

In this expression R is a rotation matrix that is calculated by constructing a set of three orthonormal vectors from the reference positions specified by the user. The first of these unit vectors points from the first reference atom to the second. The second is then the normal to the plane containing atoms 1,2 and 3 and the the third is the unit vector orthogonal to these first two vectors. (xo,yo,zo), meanwhile, specifies the position of the first reference atom.

In the first expression above K is one of the kernel functions described in the documentation for the action BETWEEN and σ is a bandwidth parameter. Furthermore, The vector connecting atom 1 to atom 4 is used to define the extent of the box in each of the u, v and w directions. This vector connecting atom 1 to atom 4 is projected onto the three unit vectors described above and the resulting projections determine the u, v and w parameters in the above expression.

The following commands illustrate how this works in practise. We are using PLUMED here to calculate the number of atoms from the group specified using the ATOMS keyword below are in an ion channel in a protein. The extent of the channel is calculated from the positions of atoms 1, 4, 5 and 11.

Click on the labels of the actions for more information on what each action computes
tested on2.11
cav: CAVITYThis quantity can be used to calculate functions of the distribution of collective variables for the atoms that lie in a box defined by the positions of four atoms. More details ATOMSthe group of atoms that you would like to investigate=20-500 BOXthe positions of four atoms that define spatial extent of the cavity=1,4,5,11 SIGMAthe width of the function to be used for kernel density estimation=0.1
s: SUMCalculate the sum of the arguments More details ARGthe values input to this function=cav PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=s FILEthe name of the file on which to output these quantities=colvar

By contrst the following command tells plumed to calculate the coordination numbers (with other water molecules) for the water molecules in the protein channel described above. The average coordination number and the number of coordination numbers more than 4 is then calculated for those molecules that are in the region of interest.

Click on the labels of the actions for more information on what each action computes
tested on2.11
# Calculate the atoms that are in the cavity
cav: CAVITYThis quantity can be used to calculate functions of the distribution of collective variables for the atoms that lie in a box defined by the positions of four atoms. More details ATOMSthe group of atoms that you would like to investigate=20-500 BOXthe positions of four atoms that define spatial extent of the cavity=1,4,5,11 SIGMAthe width of the function to be used for kernel density estimation=0.1
# Calculate the coordination numbers of all the atoms
d1: COORDINATIONNUMBERCalculate the coordination numbers of atoms so that you can then calculate functions of the distribution of This action is a shortcut. More details SPECIESthe list of atoms for which the symmetry function is being calculated and the atoms that can be in the environments=20-500 SWITCHthe switching function that it used in the construction of the contact matrix. Options for this keyword are explained in the documentation for LESS_THAN.={RATIONAL R_0=0.1}
# Do atoms have a coordination number that is greater than 4
fd1: MORE_THANUse a switching function to determine how many of the input variables are more than a certain cutoff. More details ARGthe values input to this function=d1 SWITCHThis keyword is used if you want to employ an alternative to the continuous swiching function defined above={RATIONAL R_0=4}
# Calculate the mean coordination number in the channel
nnn: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=cav,d1 FUNCthe function you wish to evaluate=x*y PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
numer: SUMCalculate the sum of the arguments More details ARGthe values input to this function=nnn PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
denom: SUMCalculate the sum of the arguments More details ARGthe values input to this function=cav PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
mean: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=numer,denom FUNCthe function you wish to evaluate=x/y PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
# Calculate the number of atoms that are in the channel and that have a coordination number that is greater than 4
sss: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=fd1,cav FUNCthe function you wish to evaluate=x*y PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
mt: SUMCalculate the sum of the arguments More details ARGthe values input to this function=sss PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
# And print these two quantities to a file
PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=mean,mt FILEthe name of the file on which to output these quantities=colvar

As with AROUND earlier version of PLUMED used a different syntax for doing these types of calculations, which can still be used with this new version of the command. However, we strongly recommend using the newer syntax.

Syntax

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

Keyword Type Default Description
ATOMS input none the group of atoms that you would like to investigate
BOX input none the positions of four atoms that define spatial extent of the cavity
SIGMA compulsory none the width of the function to be used for kernel density estimation
KERNEL compulsory gaussian the type of kernel function to be used
SERIAL optional false do the calculation in serial
OUTSIDE optional false calculate quantities for colvars that are on atoms outside the region of interest
PRINT_BOX optional false write out the positions of the corners of the box to an xyz file
FILE optional not used the file on which to write out the box coordinates
UNITS optional not used the units in which to write out the corners of the box
DATA optional not used the label of an action that calculates multicolvars
LESS_THAN optional not used calcualte the number of colvars that are inside the region of interest and that are less than a certain threshold
MORE_THAN optional not used calcualte the number of colvars that are inside the region of interest and that are greater that a certain threshold
BETWEEN optional not used calculate the number of colvars that are inside the region of interest and that have a CV value that is between a particular set of bounds
SUM optional false calculate the sum of all the quantities
MEAN optional false calculate the average value of the colvar inside the region of interest