Shortcut: FCCUBIC_FUNC
| Module | symfunc |
|---|---|
| Description | Usage |
| Measure how similar the environment around atoms is to that found in a FCC structure. | |
| output value | type |
| a function that measures the similarity with an fcc environment | matrix |
Details and examples
Measure how similar the environment around atoms is to that found in a FCC structure.
This is the function that is used in the FCCUBIC shortcut. You can see an example that shows how it is used if you expand the FCCUBIC shortcut in the following example input:
d: FCCUBICMeasure how similar the environment around atoms is to that found in a FCC structure. 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 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 D_0=3.0 R_0=1.5} 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=d.* FILEthe name of the file on which to output these quantities=colv
Notice that the decomposition of the function that is illustrated above allows you to do things like the calculation in the following input:
# Calculate the distances between atoms d_mat: DISTANCE_MATRIXCalculate a matrix of distances between atoms. This action has hidden defaults. More details GROUPthe atoms for which you would like to calculate the adjacency matrix=1-64 CUTOFF ignore distances that have a value larger than this cutoff=4.5 COMPONENTS also calculate the components of the vector connecting the atoms in the contact matrix # Find the six nearest atom to each of the coordinates nn: NEIGHBORSBuild a matrix with ones in for the N nearest neighbours of an atom This action has hidden defaults. More details ARGthe label of an adjacency/distance matrix that will be used to find the nearest neighbors=d_mat.w NLOWEST in each row of the output matrix set the elements that correspond to the n lowest elements in each row of the input matrix equal to one=6 # Evalulate the FCC function d_vfunc: FCCUBIC_FUNCMeasure how similar the environment around atoms is to that found in a FCC structure. More details ARGthe values input to this function=d_mat.x,d_mat.y,d_mat.z MASKthe label for a sparse vector/matrix that should be used to determine which elements of the vector/matrix should be computed=nn ALPHA The alpha parameter of the angular function=3.0 # Take the product of the weights with the fcc function evaluations d_wvfunc: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=d_vfunc,nn 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 sum of fcc cubic function values for each atom d_ones: ONESCreate a constant vector with all elements equal to one This action is a shortcut. More details SIZEthe number of ones that you would like to create=64 d: MATRIX_VECTOR_PRODUCTCalculate the product of the matrix and the vector More details ARGthe label for the matrix and the vector/scalar that are being multiplied=d_wvfunc,d_ones # Calculate the number of neighbours d_denom: MATRIX_VECTOR_PRODUCTCalculate the product of the matrix and the vector More details ARGthe label for the matrix and the vector/scalar that are being multiplied=nn,d_ones # Calculate the average value of the fcc cubic function per bonds d_n: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=d,d_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 d_mean: MEANCalculate the arithmetic mean of the elements in a vector More details ARGthe vector/matrix/grid whose elements shuld be added together=d_n 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=d_mean FILEthe name of the file on which to output these quantities=colv
In this input we evaluate the FCCUBIC function for the six nearest neighbours to each atom rather than the atoms that are within a certain cutoff. By using the MASK keyword in the input to FCCUBIC_FUNC we ensure that the FCCUBIC function is only evaluated for the six nearest neighbors.
Input
The arguments that serve as the input for this action are specified using one or more of the keywords in the following table.
| Keyword | Type | Description |
|---|---|---|
| ARG | scalar/vector/matrix | the values input to this function |
| MASK | vector/matrix | the label for a sparse vector/matrix that should be used to determine which elements of the vector/matrix should be computed |
Full list of keywords
The following table describes the keywords and options that can be used with this action
| Keyword | Type | Default | Description |
|---|---|---|---|
| ARG | input | none | the values input to this function |
| MASK | input | none | the label for a sparse vector/matrix that should be used to determine which elements of the vector/matrix should be computed |
| ALPHA | compulsory | 3.0 | The alpha parameter of the angular function |