, where
and
is given by a cell-centered grid function.
is considered to be constant over every cell. In every cell, the product gaussian quadrature is used. More...
#include "gaussweights.hpp"
#include "MultiArray.hpp"
#include "SGrid.hpp"
Include dependency graph for CCIntegr.hpp:

Classes | |
| class | CC_Integral< T, Integrand > |
| Integration as an interpolation class (for the sparse grids). More... | |
Functions | |
| template<typename T, class Integrand> | |
| T | CC_Gauss_Integrate (Integrand &kernel, int index, MultiIndex &I, double *xi, MultiArray< T > &u, int n_points) |
| The auxiliary recursive function. | |
| template<typename T, class Integrand> | |
| T | CC_Gauss_Integrate (Integrand &kernel, MultiArray< T > &u, int n_points=1) |
| Integration of a scalar function. | |
, where
and
is given by a cell-centered grid function.
is considered to be constant over every cell. In every cell, the product gaussian quadrature is used.
| T CC_Gauss_Integrate | ( | Integrand & | kernel, | |
| MultiArray< T > & | u, | |||
| int | n_points = 1 | |||
| ) | [inline] |
Integration of a scalar function.
The quadrature procedure is implemented as template depending on the class 'Integrand' that specifies 'f'. If possible, 'f' should be implemented as an inline function. The class should contain the following fields:
dim as an integer: the dimensionality of 'x',T f (double * xi, T & u_value) - the function 'f'.
| [in] | kernel | The integrand |
| [in] | u | The grid function to integrate |
| [in] | n_points | Number of the gaussian points in every direction |
| T CC_Gauss_Integrate | ( | Integrand & | kernel, | |
| int | index, | |||
| MultiIndex & | I, | |||
| double * | xi, | |||
| MultiArray< T > & | u, | |||
| int | n_points | |||
| ) | [inline] |
The auxiliary recursive function.
| [in] | kernel | The integrand |
| [in] | index | Number of the index |
| [in] | I | The multi-index of the cell |
| [in] | xi | The coordinates of the 'lower left' corner of the cell |
| [in] | u | The grid function to integrate |
| [in] | n_points | Number of the gaussian points in every direction |
1.5.2