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

Defines cubature (integration) rules over control volumes. More...

#include <Intrepid_CubatureControlVolume.hpp>

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

Public Member Functions

 CubatureControlVolume (const Teuchos::RCP< const shards::CellTopology > &cellTopology)
 
void getCubature (ArrayPoint &cubPoints, ArrayWeight &cubWeights) const
 Returns cubature points and weights Method for reference space cubature - throws an exception. More...
 
void getCubature (ArrayPoint &cubPoints, ArrayWeight &cubWeights, ArrayPoint &cellCoords) const
 Returns cubature points and weights (return arrays must be pre-sized/pre-allocated). 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. The return vector has size 1.
 

Private Attributes

Teuchos::RCP< const
shards::CellTopology > 
primaryCellTopo_
 The topology of the primary cell.
 
Teuchos::RCP< const
shards::CellTopology > 
subCVCellTopo_
 The topology of the sub-control volume.
 
int degree_
 The degree of the polynomials that are integrated exactly.
 
int numPoints_
 The number of cubature points.
 
int cubDimension_
 Dimension of integration domain.
 

Detailed Description

template<class Scalar, class ArrayPoint, class ArrayWeight>
class Intrepid::CubatureControlVolume< Scalar, ArrayPoint, ArrayWeight >

Defines cubature (integration) rules over control volumes.

Each primary cell contains one sub-control volume per node and there is one integration point per sub-control volume.

Definition at line 67 of file Intrepid_CubatureControlVolume.hpp.

Constructor & Destructor Documentation

template<class Scalar , class ArrayPoint , class ArrayWeight >
Intrepid::CubatureControlVolume< Scalar, ArrayPoint, ArrayWeight >::CubatureControlVolume ( const Teuchos::RCP< const shards::CellTopology > &  cellTopology)

brief Constructor.

Parameters
cellTopology[in] - The topology of the primary cell.

Definition at line 55 of file Intrepid_CubatureControlVolumeDef.hpp.

Member Function Documentation

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

Returns cubature points and weights Method for reference space cubature - throws an exception.

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

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

Definition at line 76 of file Intrepid_CubatureControlVolumeDef.hpp.

template<class Scalar , class ArrayPoint , class ArrayWeight >
void Intrepid::CubatureControlVolume< Scalar, ArrayPoint, ArrayWeight >::getCubature ( ArrayPoint &  cubPoints,
ArrayWeight &  cubWeights,
ArrayPoint &  cellCoords 
) 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.
cellCoords[in] - Array of cell coordinates

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

Definition at line 84 of file Intrepid_CubatureControlVolumeDef.hpp.

References Intrepid::DefaultCubatureFactory< Scalar, ArrayPoint, ArrayWeight >::create(), Intrepid::CellTools< Scalar >::getSubCVCoords(), and Intrepid::CellTools< Scalar >::setJacobianDet().


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