Skip to content

Shortcut: ATOMIC_SMAC

Module symfunc
Description Usage
Calculate the atomic smac CV used in 0 tutorialsused in 0 eggs

Details and examples

Calculate the atomic smac CV

This shortcut offers another example of a symmetry function. This action was inspired by SMAC and the distribution of angles in the first coordination sphere around an atom to determine if the environment around the atom is ordered. For atom the symmetry function is calculated using:

In this expression is the distance between atom and atom and is a switching function that acts upon this distance. is thus the number of atoms that are within a certain cutoff of atom and is another switching function that acts upon this quantity. This switching function ensures that the symmetry function is zero for atoms that are regions where the density is low. is the angle between the vector connecting atoms and and the vector connecting atoms and . This angle is the argument for the set of Gaussian kernel functions, , that are centered on and that have bandwidths of . The function above is thus determining if the angles between the bonds in the first coordination sphere around atom are similar to the values that have been specified by the user or not.

The following example demonstrates how this symmetry function can be used in practise.

Click on the labels of the actions for more information on what each action computes
tested on2.11
smac: ATOMIC_SMACCalculate the atomic smac CV 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=1-64 KERNEL1The kernels used in the function of the angle={GAUSSIAN CENTER=pi/2 SIGMA=1.0} KERNEL2The kernels used in the function of the angle={GAUSSIAN CENTER=pi/4 SIGMA=1.0} SWITCH_COORDThis keyword is used to define the coordination switching function={EXP R_0=4.0} SWITCHthe switching function that it used in the construction of the contact matrix={RATIONAL R_0=2.0 D_0=2.0} SUM calculate the sum 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=smac.* FILEthe name of the file on which to output these quantities=colvar

The input above would calculate 64 instances of using the formula above. In each of these two Gaussian Kernels are used in the sum over . The parameters for the switching function are specified using the SWITCH keyword, while the parameters for are specified using SWITCH_COORD. As you can see if you expand the shortcut in the input above, the 64 values for are stored in a vector. All the elements of this vector are then added together to produce the single quantity that is output in the colvar file.

Notice that you can also use different groups of atoms by using the SPECIESA and SPECIESB keywords as shown below:

Click on the labels of the actions for more information on what each action computes
tested on2.11
smac: ATOMIC_SMACCalculate the atomic smac CV This action is a shortcut. More details SPECIESAthe list of atoms for which the symmetry function is being calculated=1-64 SPECIESBthe list of atoms that can be in the environments of each of the atoms for which the symmetry function is being calculated=65-128 KERNEL1The kernels used in the function of the angle={GAUSSIAN CENTER=pi/2 SIGMA=1.0} KERNEL2The kernels used in the function of the angle={GAUSSIAN CENTER=pi/4 SIGMA=1.0} SWITCH_COORDThis keyword is used to define the coordination switching function={EXP R_0=4.0} SWITCHthe switching function that it used in the construction of the contact matrix={RATIONAL R_0=2.0 D_0=2.0} SUM calculate the sum 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=smac.* FILEthe name of the file on which to output these quantities=colvar

In this input one value is evaluated for each of the 64 atoms specified in the SPECIESA keyword. In evaluating each of these values using the sum in the expression above runs over the 64 atoms that were specified using SPECIESB.

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

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

Full list of keywords

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
SWITCH optional not used the switching function that it used in the construction of the contact matrix
KERNEL optional not used The kernels used in the function of the angle
SWITCH_COORD optional not used This keyword is used to define the coordination switching function

deprecated keywords

The keywords in the following table can still be used with this action but have been deprecated

Keyword Description
LESS_THAN calculate the number of variables that are less than a certain target value
MORE_THAN calculate the number of variables that are more than a certain target value
ALT_MIN calculate the minimum value
MIN calculate the minimum value
MAX calculate the maximum value
BETWEEN calculate the number of values that are within a certain range
HIGHEST this flag allows you to recover the highest of these variables
HISTOGRAM calculate a discretized histogram of the distribution of values
LOWEST this flag allows you to recover the lowest of these variables
SUM calculate the sum of all the quantities
MEAN calculate the mean of all the quantities