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 presized/preallocated).  
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 tensorproduct 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 tensorproduct cubatures are defined in the derived class CubatureTensor.
Definition at line 70 of file Intrepid_Cubature.hpp.
virtual void Intrepid::Cubature< Scalar, ArrayPoint, ArrayWeight >::getAccuracy  (  std::vector< int > &  accuracy  )  const [pure virtual] 
Returns algebraic accuracy (e.g. max. degree of polynomial that is integrated exactly). For tensorproduct 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, ArrayPoint, ArrayWeight >, Intrepid::CubatureGenSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >, Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubaturePolygon< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubaturePolylib< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >, Intrepid::CubatureTensor< Scalar, ArrayPoint, ArrayWeight >, and Intrepid::CubatureTensorSorted< Scalar, ArrayPoint, ArrayWeight >.
virtual void Intrepid::Cubature< Scalar, ArrayPoint, ArrayWeight >::getCubature  (  ArrayPoint &  cubPoints, 
ArrayWeight &  cubWeights  
)  const [pure virtual] 
Returns cubature points and weights (return arrays must be presized/preallocated).
cubPoints  [out]  Array containing the cubature points. 
cubWeights  [out]  Array of corresponding cubature weights. 
Implemented in Intrepid::CubatureDirect< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureGenSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >, Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubaturePolygon< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubaturePolylib< Scalar, ArrayPoint, ArrayWeight >, Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >, Intrepid::CubatureTensor< Scalar, ArrayPoint, ArrayWeight >, and Intrepid::CubatureTensorSorted< Scalar, ArrayPoint, ArrayWeight >.