Defines the base class for cubature (integration) rules in Intrepid. More...
#include <Intrepid_Cubature.hpp>
Public Member Functions | |
virtual void | getCubature (ArrayType &cubPoints, ArrayType &cubWeights) const =0 |
Returns cubature points and weights (return arrays must be pre-sized/pre-allocated). | |
virtual int | getNumPoints () const =0 |
Returns the number of cubature points. | |
virtual int | getDimension () const =0 |
Returns dimension of the integration domain. | |
virtual void | getAccuracy (std::vector< int > &accuracy) const =0 |
Returns algebraic accuracy (e.g. max. degree of polynomial that is integrated exactly). For tensor-product or sparse rules, algebraic accuracy for each coordinate direction is returned. |
Defines the base class for cubature (integration) rules in Intrepid.
Cubature template (rule) consists of cubature points and cubature weights. Intrepid provides a small collection of frequently used cubature rule templates for FEM reconstructions on simplices (edge, tri, tet) and the pyramid cell, defined in the derived classes of CubatureDirect.
For quad, hex, and triprism cells cubature templates are tensor products of CubatureDirect templates. The tensor-product cubatures are defined in the derived class CubatureTensor.
Definition at line 56 of file Intrepid_Cubature.hpp.
virtual void Intrepid::Cubature< Scalar, ArrayType >::getAccuracy | ( | std::vector< int > & | accuracy | ) | const [pure virtual] |
Returns algebraic accuracy (e.g. max. degree of polynomial that is integrated exactly). For tensor-product or sparse rules, algebraic accuracy for each coordinate direction is returned.
Since the size of the return argument need not be known ahead of time, other return options are possible, depending on the type of the cubature rule.
Implemented in Intrepid::CubatureDirect< Scalar, ArrayType >, Intrepid::CubatureGenSparse< Scalar, dimension_, ArrayType >, Intrepid::CubaturePolylib< Scalar, ArrayType >, Intrepid::CubatureSparse< Scalar, dimension_, ArrayType >, and Intrepid::CubatureTensor< Scalar, ArrayType >.
virtual void Intrepid::Cubature< Scalar, ArrayType >::getCubature | ( | ArrayType & | cubPoints, | |
ArrayType & | cubWeights | |||
) | const [pure virtual] |
Returns cubature points and weights (return arrays must be pre-sized/pre-allocated).
cubPoints | [out] - Array containing the cubature points. | |
cubWeights | [out] - Array of corresponding cubature weights. |
Implemented in Intrepid::CubatureDirect< Scalar, ArrayType >, Intrepid::CubatureGenSparse< Scalar, dimension_, ArrayType >, Intrepid::CubaturePolylib< Scalar, ArrayType >, Intrepid::CubatureSparse< Scalar, dimension_, ArrayType >, and Intrepid::CubatureTensor< Scalar, ArrayType >.