Intrepid
Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight > Class Template Reference

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

#include <Intrepid_CubatureControlVolumeSide.hpp>

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

Public Member Functions

 CubatureControlVolumeSide (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.
void getCubature (ArrayPoint &cubPoints, ArrayWeight &cubWeights, ArrayPoint &cellCoords) const
 Returns cubature points and weights (return arrays must be pre-sized/pre-allocated).
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

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::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >

Defines cubature (integration) rules over control volumes.

Definition at line 63 of file Intrepid_CubatureControlVolumeSide.hpp.

Constructor & Destructor Documentation

◆ CubatureControlVolumeSide()

template<class Scalar, class ArrayPoint, class ArrayWeight>
Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >::CubatureControlVolumeSide ( 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_CubatureControlVolumeSideDef.hpp.

References cubDimension_, degree_, numPoints_, primaryCellTopo_, and subCVCellTopo_.

◆ ~CubatureControlVolumeSide()

template<class Scalar, class ArrayPoint, class ArrayWeight>
virtual Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >::~CubatureControlVolumeSide ( )
inlinevirtual

Definition at line 106 of file Intrepid_CubatureControlVolumeSide.hpp.

Member Function Documentation

◆ getAccuracy()

template<class Scalar, class ArrayPoint, class ArrayWeight>
void Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >::getAccuracy ( std::vector< int > & accuracy) const
virtual

Returns max. degree of polynomials that are integrated exactly on each triangle. The return vector has size 1.

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

Definition at line 273 of file Intrepid_CubatureControlVolumeSideDef.hpp.

References degree_.

◆ getCubature() [1/2]

template<class Scalar, class ArrayPoint, class ArrayWeight>
void Intrepid::CubatureControlVolumeSide< 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_CubatureControlVolumeSideDef.hpp.

◆ getCubature() [2/2]

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

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

Definition at line 84 of file Intrepid_CubatureControlVolumeSideDef.hpp.

References Intrepid::CellTools< Scalar >::getPhysicalSideNormals(), Intrepid::CellTools< Scalar >::getSubCVCoords(), Intrepid::CellTools< Scalar >::mapToReferenceSubcell(), primaryCellTopo_, and subCVCellTopo_.

◆ getDimension()

template<class Scalar, class ArrayPoint, class ArrayWeight>
int Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >::getDimension ( ) const
virtual

Returns dimension of integration domain.

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

Definition at line 268 of file Intrepid_CubatureControlVolumeSideDef.hpp.

References cubDimension_.

◆ getNumPoints()

template<class Scalar, class ArrayPoint, class ArrayWeight>
int Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >::getNumPoints ( ) const
virtual

Returns the number of cubature points.

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

Definition at line 263 of file Intrepid_CubatureControlVolumeSideDef.hpp.

References numPoints_.

Member Data Documentation

◆ cubDimension_

template<class Scalar, class ArrayPoint, class ArrayWeight>
int Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >::cubDimension_
private

Dimension of integration domain.

Definition at line 129 of file Intrepid_CubatureControlVolumeSide.hpp.

Referenced by CubatureControlVolumeSide(), and getDimension().

◆ degree_

template<class Scalar, class ArrayPoint, class ArrayWeight>
int Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >::degree_
private

The degree of the polynomials that are integrated exactly.

Definition at line 121 of file Intrepid_CubatureControlVolumeSide.hpp.

Referenced by CubatureControlVolumeSide(), and getAccuracy().

◆ numPoints_

template<class Scalar, class ArrayPoint, class ArrayWeight>
int Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >::numPoints_
private

The number of cubature points.

Definition at line 125 of file Intrepid_CubatureControlVolumeSide.hpp.

Referenced by CubatureControlVolumeSide(), and getNumPoints().

◆ primaryCellTopo_

template<class Scalar, class ArrayPoint, class ArrayWeight>
Teuchos::RCP<const shards::CellTopology> Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >::primaryCellTopo_
private

The topology of the primary cell.

Definition at line 113 of file Intrepid_CubatureControlVolumeSide.hpp.

Referenced by CubatureControlVolumeSide(), and getCubature().

◆ subCVCellTopo_

template<class Scalar, class ArrayPoint, class ArrayWeight>
Teuchos::RCP<const shards::CellTopology> Intrepid::CubatureControlVolumeSide< Scalar, ArrayPoint, ArrayWeight >::subCVCellTopo_
private

The topology of the sub-control volume.

Definition at line 117 of file Intrepid_CubatureControlVolumeSide.hpp.

Referenced by CubatureControlVolumeSide(), and getCubature().


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