Intrepid
|
Defines the base class for cubature (integration) rules in Intrepid. More...
#include <Intrepid_Cubature.hpp>
Public Member Functions | |
virtual void | getCubature (ArrayPoint &cubPoints, ArrayWeight &cubWeights) const =0 |
Returns cubature points and weights (return arrays must be pre-sized/pre-allocated). More... | |
virtual void | getCubature (ArrayPoint &cubPoints, ArrayWeight &cubWeights, ArrayPoint &cellVertices) const =0 |
Returns cubature points and weights on physical cells (return arrays must be pre-sized/pre-allocated). More... | |
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. More... | |
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 70 of file Intrepid_Cubature.hpp.
|
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::CubatureTensorSorted< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureTensor< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubaturePolylib< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureDirect< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureTensorPyr< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >, Intrepid::CubatureGenSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >, Intrepid::CubatureControlVolumeBoundary< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureControlVolume< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubaturePolygon< Scalar, ArrayPoint, ArrayWeight >, and Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >.
|
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::CubatureTensorSorted< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureTensor< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubaturePolylib< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureDirect< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureTensorPyr< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >, Intrepid::CubatureGenSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >, Intrepid::CubatureControlVolumeBoundary< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureControlVolume< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubaturePolygon< Scalar, ArrayPoint, ArrayWeight >, and Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >.
|
pure virtual |
Returns cubature points and weights on physical cells (return arrays must be pre-sized/pre-allocated).
cubPoints | [out] - Array containing the cubature points. |
cubWeights | [out] - Array of corresponding cubature weights. |
cellVertices | [in] - Array containing the cell vertices. |
Implemented in Intrepid::CubatureTensorSorted< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureTensor< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubaturePolylib< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureDirect< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureTensorPyr< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >, Intrepid::CubatureGenSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >, Intrepid::CubatureControlVolumeBoundary< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureControlVolume< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubaturePolygon< Scalar, ArrayPoint, ArrayWeight >, and Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >.