Shortcut: CYLINDRICAL_HARMONIC
Module | symfunc |
---|---|
Description | Usage |
Calculate the cylindrical harmonic function |
Output components
This action calculates the values in the following table. 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 | Description |
---|---|---|
rm | matrix | the real part of the cylindrical harmonic |
im | matrix | the imaginary part of the cylindrical harmonic |
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 |
Further details and examples
Calculate the cylindrical harmonic function
This action allows you to the value of the following complex function. The action outputs two components that are the real and imaginary parts of the following function:
z = w (\frac{x}{r} + \frac{y}{r} i )^n \qquad \textrm{where} \qquad r = \sqrt(x^2 + y^2}
In this expression n is a parameter that is specified using the DEGREE keyword. x and y are the input arguments and w is an optional input weight, which is set equal to one if only two arguments are provided in input. At present, the arguments for this action must be matrices. These arguments must all have the same shape as the two output components will also be matrices that are calculated by applying the function above to each of the elements of the input matrix in turn.
The following intput provides an example that demonstrates how this function is used:
dDISTANCE_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-10 COMPONENTS also calculate the components of the vectors connecting the atoms in the contact matrix : c : CYLINDRICAL_HARMONICCalculate the cylindrical harmonic function More details DEGREEthe value of the n parameter in the equation above=6 ARGthe values input to this function=d.x,d.y PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=c.rm FILEthe name of the file on which to output these quantities=real_part PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=c.im FILEthe name of the file on which to output these quantities=imaginary_part
The DISTANCE_MATRIX command in the above input computes 3 10×10 matrices. Two of these 10×10 matrices are used in the input to the cylindrical harmonic command, which in turn outputs two 10×10 matrices that contain the real and imaginary parts when the function above is applied element-wise to the above input. These two 10×10 matrices are then output to two separate files.
In the above example the weights for every distance is set equal to one. The following example shows how an argument can be used to set the w values to use when computing the function above.
sCONTACT_MATRIXAdjacency matrix in which two atoms are adjacent if they are within a certain cutoff. More details GROUPspecifies the list of atoms that should be assumed indistinguishable=1-10 SWITCHthe input for the switching function that acts upon the distance between each pair of atoms. Options for this keyword are explained in the documentation for LESS_THAN.={RATIONAL R_0=1.0} sc : CONTACT_MATRIXAdjacency matrix in which two atoms are adjacent if they are within a certain cutoff. More details GROUPspecifies the list of atoms that should be assumed indistinguishable=1-10 SWITCHthe input for the switching function that acts upon the distance between each pair of atoms. Options for this keyword are explained in the documentation for LESS_THAN.={RATIONAL R_0=1.0} COMPONENTS also calculate the components of the vectors connecting the atoms in the contact matrix c : CYLINDRICAL_HARMONICCalculate the cylindrical harmonic function More details DEGREEthe value of the n parameter in the equation above=6 ARGthe values input to this function=sc.x,sc.y,s PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=c.rm FILEthe name of the file on which to output these quantities=real_part PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=c.im FILEthe name of the file on which to output these quantities=imaginary_part:
Syntax
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 |
DEGREE | compulsory | none | the value of the n parameter in the equation above |