Shortcut: TETRA_RADIAL
| Module | symfunc |
|---|---|
| Description | Usage |
| Calculate the radial tetra CV | |
| output value | type |
| the value of the radial tetrahedrality parameter for each of the input atoms | vector |
Details and examples
Calculate the radial tetra CV
This shortcut calculates a symmetry function. The particular function that is being evaluated for the coordination sphere here is as follows:
In this expression the 4 atoms in the sums over are the four atoms that are nearest to atom and is the distance between atoms and . The CV is large if the four atoms nearest atom are arranged on the vertices of a regular tetrahedron and small otherwise. The following example shows how you can use this action to measure the degree of tetrahedral order in a system.
# Calculate a vector that contains 64 values for the symmetry function. acv: TETRA_RADIALCalculate the radial tetra CV 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-64 # Sum the elements of the vector and calculate the mean value on the atoms from this sum. acv_sum: SUMCalculate the sum of the arguments More details ARGthe vector/matrix/grid whose elements shuld be added together=acv PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO acv_mean: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=acv FUNCthe function you wish to evaluate=x/64 PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO # Print out the positions of the 64 atoms for which the symmetry function was calculated # to an xyz file along with the values of the symmetry function DUMPATOMSDump selected atoms on a file. More details ATOMSthe atom indices whose positions you would like to print out=1-64 ARGthe labels of vectors that should be output in the xyz file=acv FILEfile on which to output coordinates; extension is automatically detected=mcolv.xyz # Print out the average value of the symmetry function and the sum of all the symmetry functions PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=acv_sum,acv_mean FILEthe name of the file on which to output these quantities=colvar
In the input above we have only one type of atom. If you want to measure the degree of tetrahedral order amongst the bonds from atoms of SPECIESA to atoms of SPECIESB you use an input like the one shown below:
acv: TETRA_RADIALCalculate the radial tetra CV This action is a shortcut and it has hidden defaults. 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 acv_sum: SUMCalculate the sum of the arguments More details ARGthe vector/matrix/grid whose elements shuld be added together=acv PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO acv_mean: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=acv FUNCthe function you wish to evaluate=x/64 PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO DUMPATOMSDump selected atoms on a file. More details ATOMSthe atom indices whose positions you would like to print out=1-64 ARGthe labels of vectors that should be output in the xyz file=acv FILEfile on which to output coordinates; extension is automatically detected=mcolv.xyz PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=acv_sum,acv_mean FILEthe name of the file on which to output these quantities=colvar
By default the vectors connecting atoms that appear in the expression above are calculated in a way that takes periodic boundary conditions into account. If you want not to take the periodic boundary conditions into account for any reason you use the NOPBC flag as shown below:
acv: TETRA_RADIALCalculate the radial tetra CV 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-64 NOPBC ignore the periodic boundary conditions when calculating distances acv_sum: SUMCalculate the sum of the arguments More details ARGthe vector/matrix/grid whose elements shuld be added together=acv PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO acv_mean: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=acv FUNCthe function you wish to evaluate=x/64 PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO DUMPATOMSDump selected atoms on a file. More details ATOMSthe atom indices whose positions you would like to print out=1-64 ARGthe labels of vectors that should be output in the xyz file=acv FILEfile on which to output coordinates; extension is automatically detected=mcolv.xyz PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=acv_sum,acv_mean FILEthe name of the file on which to output these quantities=colvar
Deprecated syntax
More information on the deprecated keywords that are given below is available in the documentation for the DISTANCES command.
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 |
| CUTOFF | compulsory | -1 | ignore distances that have a value larger than this cutoff |
| NOPBC | optional | false | ignore the periodic boundary conditions when calculating distances |
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 |
References
More information about how this action can be used is available in the following articles: