Intrepid
Public Member Functions | Private Attributes | List of all members
Intrepid::CubaturePolygon< Scalar, ArrayPoint, ArrayWeight > Class Template Reference

#include <Intrepid_CubaturePolygon.hpp>

Inheritance diagram for Intrepid::CubaturePolygon< Scalar, ArrayPoint, ArrayWeight >:
Intrepid::Cubature< Scalar, ArrayPoint, ArrayWeight >

Public Member Functions

 CubaturePolygon (const shards::CellTopology &cellTopology, const ArrayPoint &cellVertices, int degree)
 
void getCubature (ArrayPoint &cubPoints, ArrayWeight &cubWeights) const
 Returns cubature points and weights (return arrays must be pre-sized/pre-allocated). More...
 
void getCubature (ArrayPoint &cubPoints, ArrayWeight &cubWeights, ArrayPoint &cellCoords) const
 Returns cubature points and weights. Method for physical space cubature, throws an exception. More...
 
int getNumPoints () const
 Returns the number of cubature points.
 
int getDimension () const
 Returns dimension of integration domain.
 
void getAccuracy (std::vector< int > &accuracy) const
 Returns max. degree of polynomials that are integrated exactly on each triangle. The return vector has size 1.
 

Private Attributes

shards::CellTopology cellTopology_
 The topology of the polygon.
 
ArrayPoint cellVertices_
 The vertices of the polygon.
 
int degree_
 The degree of the polynomials that are integrated exactly on each triangle.
 
FieldContainer< Scalar > cubaturePoints_
 Local copy of cubature points.
 
FieldContainer< Scalar > cubatureWeights_
 Local copy of cubature weights.
 
int numPoints_
 The number of cubature points.
 
int cubDimension_
 Dimension of integration domain.
 

Detailed Description

template<class Scalar, class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
class Intrepid::CubaturePolygon< Scalar, ArrayPoint, ArrayWeight >

Defines cubature (integration) rules for polygons.

Definition at line 62 of file Intrepid_CubaturePolygon.hpp.

Constructor & Destructor Documentation

template<class Scalar , class ArrayPoint , class ArrayWeight >
Intrepid::CubaturePolygon< Scalar, ArrayPoint, ArrayWeight >::CubaturePolygon ( const shards::CellTopology &  cellTopology,
const ArrayPoint &  cellVertices,
int  degree 
)

Member Function Documentation

template<class Scalar , class ArrayPoint , class ArrayWeight >
void Intrepid::CubaturePolygon< Scalar, ArrayPoint, ArrayWeight >::getCubature ( ArrayPoint &  cubPoints,
ArrayWeight &  cubWeights 
) const
virtual

Returns cubature points and weights (return arrays must be pre-sized/pre-allocated).

Parameters
cubPoints[out] - Array containing the cubature points.
cubWeights[out] - Array of corresponding cubature weights.

Implements Intrepid::Cubature< Scalar, ArrayPoint, ArrayWeight >.

Definition at line 143 of file Intrepid_CubaturePolygonDef.hpp.

template<class Scalar , class ArrayPoint , class ArrayWeight >
void Intrepid::CubaturePolygon< Scalar, ArrayPoint, ArrayWeight >::getCubature ( ArrayPoint &  cubPoints,
ArrayWeight &  cubWeights,
ArrayPoint &  cellCoords 
) const
virtual

Returns cubature points and weights. Method for physical space cubature, throws an exception.

Parameters
cubPoints[out] - Array containing the cubature points.
cubWeights[out] - Array of corresponding cubature weights.
cellCoords[in] - Array of cell coordinates

Implements Intrepid::Cubature< Scalar, ArrayPoint, ArrayWeight >.

Definition at line 161 of file Intrepid_CubaturePolygonDef.hpp.


The documentation for this class was generated from the following files: