Intrepid2
Public Types | Public Member Functions | List of all members
Intrepid2::Cubature< ExecSpaceType, pointValueType, weightValueType > Class Template Reference

Defines the base class for cubature (integration) rules in Intrepid. More...

#include <Intrepid2_Cubature.hpp>

Inheritance diagram for Intrepid2::Cubature< ExecSpaceType, pointValueType, weightValueType >:
Intrepid2::CubatureControlVolume< ExecSpaceType, pointValueType, weightValueType > Intrepid2::CubatureControlVolumeBoundary< ExecSpaceType, pointValueType, weightValueType > Intrepid2::CubatureControlVolumeSide< ExecSpaceType, pointValueType, weightValueType > Intrepid2::CubatureDirect< ExecSpaceType, pointValueType, weightValueType > Intrepid2::CubatureTensor< ExecSpaceType, pointValueType, weightValueType > Intrepid2::CubatureDirectLineGauss< ExecSpaceType, pointValueType, weightValueType > Intrepid2::CubatureDirectLineGaussJacobi20< ExecSpaceType, pointValueType, weightValueType > Intrepid2::CubatureDirectTetDefault< ExecSpaceType, pointValueType, weightValueType > Intrepid2::CubatureDirectTriDefault< ExecSpaceType, pointValueType, weightValueType > Intrepid2::CubaturePolylib< ExecSpaceType, pointValueType, weightValueType > Intrepid2::CubatureTensorPyr< ExecSpaceType, pointValueType, weightValueType >

Public Types

typedef Kokkos::DynRankView
< pointValueType,
Kokkos::LayoutStride,
ExecSpaceType > 
pointViewType
 
typedef Kokkos::DynRankView
< weightValueType,
Kokkos::LayoutStride,
ExecSpaceType > 
weightViewType
 

Public Member Functions

virtual void getCubature (pointViewType, weightViewType) const
 Returns cubature points and weights (return arrays must be pre-sized/pre-allocated). More...
 
virtual void getCubature (pointViewType, weightViewType, pointViewType) const
 Returns cubature points and weights on physical cells (return arrays must be pre-sized/pre-allocated). More...
 
virtual ordinal_type getNumPoints () const
 Returns the number of cubature points.
 
virtual ordinal_type getDimension () const
 Returns dimension of the integration domain.
 
virtual ordinal_type getAccuracy () const
 Returns dimension of the integration domain.
 
virtual const char * getName () const
 Returns cubature name.
 

Detailed Description

template<typename ExecSpaceType = void, typename pointValueType = double, typename weightValueType = double>
class Intrepid2::Cubature< ExecSpaceType, pointValueType, weightValueType >

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 122 of file Intrepid2_Cubature.hpp.

Member Function Documentation

template<typename ExecSpaceType = void, typename pointValueType = double, typename weightValueType = double>
virtual void Intrepid2::Cubature< ExecSpaceType, pointValueType, weightValueType >::getCubature ( pointViewType  ,
weightViewType   
) const
inlinevirtual

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.

Reimplemented in Intrepid2::CubatureDirect< ExecSpaceType, pointValueType, weightValueType >, Intrepid2::CubatureTensorPyr< ExecSpaceType, pointValueType, weightValueType >, and Intrepid2::CubatureTensor< ExecSpaceType, pointValueType, weightValueType >.

Definition at line 136 of file Intrepid2_Cubature.hpp.

template<typename ExecSpaceType = void, typename pointValueType = double, typename weightValueType = double>
virtual void Intrepid2::Cubature< ExecSpaceType, pointValueType, weightValueType >::getCubature ( pointViewType  ,
weightViewType  ,
pointViewType   
) const
inlinevirtual

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

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

Reimplemented in Intrepid2::CubatureControlVolumeSide< ExecSpaceType, pointValueType, weightValueType >, Intrepid2::CubatureControlVolume< ExecSpaceType, pointValueType, weightValueType >, and Intrepid2::CubatureControlVolumeBoundary< ExecSpaceType, pointValueType, weightValueType >.

Definition at line 151 of file Intrepid2_Cubature.hpp.


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