Skip to content

Shortcut: INTEGRATE_GRID

Module gridtools
Description Usage
Calculate the numerical integral of the function stored on the grid used in 1 tutorialsused in 0 eggs
output value type
the numerical integral of the input function over its whole domain scalar

Details and examples

Calculate the numerical integral of the function stored on the grid

This action takes a function, , that is stored on a grid of points between and . It then computes the following definite integral numerically:

The approximate value of this integral would be computed using:

where is the number of points at which the grid has been computed.

The following example input demonstrates how this action can be used:

Click on the labels of the actions for more information on what each action computes
tested on2.11
c1: COORDINATIONNUMBERCalculate the coordination numbers of atoms so that you can then calculate functions of the distribution of This action is a shortcut. More details SPECIESAthe list of atoms for which the symmetry function is being calculated=1-10 SPECIESBthe list of atoms that can be in the environments of each of the atoms for which the symmetry function is being calculated=1-200 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=1.0}
hu: KDECreate a histogram from the input scalar/vector/matrix using KDE This action has hidden defaults. More details ARGthe label for the value that should be used to construct the histogram=c1 GRID_BINthe number of bins for the grid=200 GRID_MIN the lower bounds for the grid=0 GRID_MAX the upper bounds for the grid=10 BANDWIDTHthe bandwidths for kernel density esimtation=0.1
h: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=hu FUNCthe function you wish to evaluate=x/10 PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
iv: INTEGRATE_GRIDCalculate the numerical integral of the function stored on the grid This action is a shortcut. More details ARGthe label of the function on a grid that is being integrated=h PERIODICif the value of the output integral has a periodid domain then you use this keyword to specify the periodicity=NO

In this case, the KDE action is used to compute a histogram that shows the instanenous distribution for 10 coordination numbers. This distribution is unormalised so that CUSTOM command here is used to normalise the distribution. The resulting integral that is computed here should thsu be one.

Notice also that the action can still be used if the function stored on the grid is a function of 2 or more variables. For example, the following input performs an integral that is very similar to the one performed in the previous. Now, however, the input grid is two dimensional.

Click on the labels of the actions for more information on what each action computes
tested on2.11
c1: COORDINATIONNUMBERCalculate the coordination numbers of atoms so that you can then calculate functions of the distribution of This action is a shortcut. More details SPECIESAthe list of atoms for which the symmetry function is being calculated=1-10 SPECIESBthe list of atoms that can be in the environments of each of the atoms for which the symmetry function is being calculated=1-200 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=1.0}
q6: Q6Calculate sixth order Steinhardt parameters. This action is a shortcut. More details SPECIESAthe list of atoms for which the symmetry function is being calculated=1-10 SPECIESBthe list of atoms that can be in the environments of each of the atoms for which the symmetry function is being calculated=1-200 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=1.0}
hu: KDECreate a histogram from the input scalar/vector/matrix using KDE This action has hidden defaults. More details ARGthe label for the value that should be used to construct the histogram=c1,q6 GRID_BINthe number of bins for the grid=200,200 GRID_MIN the lower bounds for the grid=0,-0.5 GRID_MAX the upper bounds for the grid=10,2 BANDWIDTHthe bandwidths for kernel density esimtation=0.1,0.1
h: CUSTOMCalculate a combination of variables using a custom expression. More details ARGthe values input to this function=hu FUNCthe function you wish to evaluate=x/10 PERIODICif the output of your function is periodic then you should specify the periodicity of the function=NO
iv: INTEGRATE_GRIDCalculate the numerical integral of the function stored on the grid This action is a shortcut. More details ARGthe label of the function on a grid that is being integrated=h PERIODICif the value of the output integral has a periodid domain then you use this keyword to specify the periodicity=NO

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 grid the label of the function on a grid that is being integrated

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 label of the function on a grid that is being integrated
PERIODIC compulsory none if the value of the output integral has a periodid domain then you use this keyword to specify the periodicity