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

Utilizes cubature (integration) rules contained in the library sandia_rules (John Burkardt, Scientific Computing, Florida State University) within Intrepid. More...

#include <Intrepid_CubatureLineSorted.hpp>

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

Public Member Functions

 CubatureLineSorted (int degree=0, EIntrepidBurkardt rule=BURK_CLENSHAWCURTIS, bool isNormalized=false)
 Constructor. More...
 
 CubatureLineSorted (EIntrepidBurkardt rule=BURK_CLENSHAWCURTIS, int numPoints=0, bool isNormalized=false)
 Constructor. More...
 
 CubatureLineSorted (std::vector< Scalar > &points, std::vector< Scalar > &weights)
 
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. More...
 
void getAccuracy (std::vector< int > &accuracy) const
 Returns max. degree of polynomials that are integrated exactly. The return vector has size 1. More...
 
int getDimension () const
 Returns dimension of domain of integration. More...
 
const char * getName () const
 Returns cubature name. More...
 
Scalar getNode (typename std::map< Scalar, int >::iterator it)
 Get a specific node described by the iterator location. More...
 
Scalar getWeight (int weight)
 Get a specific weight described by the integer location. More...
 
Scalar getWeight (Scalar point)
 Get a specific weight described by the corresponding node. More...
 
std::map< Scalar, int >::iterator begin (void)
 Initiate iterator at the beginning of data. More...
 
std::map< Scalar, int >::iterator end (void)
 Initiate iterator at the end of data. More...
 
void update (Scalar alpha2, CubatureLineSorted< Scalar > &cubRule2, Scalar alpha1)
 Replace CubatureLineSorted values with "this = alpha1*this+alpha2*cubRule2". More...
 
- Public Member Functions inherited from Intrepid::Cubature< Scalar, FieldContainer< Scalar >, FieldContainer< Scalar > >
virtual void getCubature (FieldContainer< Scalar > &cubPoints, FieldContainer< Scalar > &cubWeights) const=0
 Returns cubature points and weights (return arrays must be pre-sized/pre-allocated). More...
 
virtual void getCubature (FieldContainer< Scalar > &cubPoints, FieldContainer< Scalar > &cubWeights, FieldContainer< Scalar > &cellVertices) const=0
 Returns cubature points and weights on physical cells (return arrays must be pre-sized/pre-allocated). More...
 
virtual int getNumPoints () const=0
 Returns the number of cubature points. More...
 
virtual int getDimension () const=0
 Returns dimension of the integration domain. More...
 
virtual void getAccuracy (std::vector< int > &accuracy) const=0
 Returns algebraic accuracy (e.g. max. degree of polynomial that is integrated exactly). For tensor-product or sparse rules, algebraic accuracy for each coordinate direction is returned. More...
 

Private Attributes

std::map< Scalar, int > points_
 Contains points of this cubature rule. More...
 
std::vector< Scalar > weights_
 Contains points of this cubature rule. More...
 
int numPoints_
 Contains the number of nodes for this cubature rule. More...
 
int degree_
 The degree of polynomials that are integrated exactly by this cubature rule. More...
 
EIntrepidBurkardt rule_type_
 Type of integration points. More...
 

Static Private Attributes

static const char * cubature_name_ = "INTREPID_CUBATURE_LINESORTED"
 Cubature name. More...
 

Detailed Description

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

Utilizes cubature (integration) rules contained in the library sandia_rules (John Burkardt, Scientific Computing, Florida State University) within Intrepid.

This class contains ten rules:

Definition at line 89 of file Intrepid_CubatureLineSorted.hpp.

Constructor & Destructor Documentation

◆ ~CubatureLineSorted()

template<class Scalar , class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::~CubatureLineSorted ( )
inline

Definition at line 120 of file Intrepid_CubatureLineSorted.hpp.

◆ CubatureLineSorted() [1/3]

template<class Scalar , class ArrayPoint , class ArrayWeight >
Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::CubatureLineSorted ( int  degree = 0,
EIntrepidBurkardt  rule = BURK_CLENSHAWCURTIS,
bool  isNormalized = false 
)

Constructor.

Parameters
degree[in] - The degree of polynomials that are integrated exactly by this cubature rule. Default: 0.

Definition at line 52 of file Intrepid_CubatureLineSortedDef.hpp.

◆ CubatureLineSorted() [2/3]

template<class Scalar , class ArrayPoint , class ArrayWeight >
Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::CubatureLineSorted ( EIntrepidBurkardt  rule = BURK_CLENSHAWCURTIS,
int  numPoints = 0,
bool  isNormalized = false 
)

Constructor.

Parameters
numPoints[in] - The number of cubature points. Default: 0.

Definition at line 159 of file Intrepid_CubatureLineSortedDef.hpp.

◆ CubatureLineSorted() [3/3]

template<class Scalar , class ArrayPoint , class ArrayWeight >
Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::CubatureLineSorted ( std::vector< Scalar > &  points,
std::vector< Scalar > &  weights 
)

Definition at line 264 of file Intrepid_CubatureLineSortedDef.hpp.

Member Function Documentation

◆ begin()

template<class Scalar , class ArrayPoint , class ArrayWeight >
std::map< Scalar, int >::iterator Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::begin ( void  )

◆ end()

template<class Scalar , class ArrayPoint , class ArrayWeight >
std::map< Scalar, int >::iterator Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::end ( void  )

◆ getAccuracy()

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

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

Implements Intrepid::Cubature< Scalar, FieldContainer< Scalar >, FieldContainer< Scalar > >.

Definition at line 289 of file Intrepid_CubatureLineSortedDef.hpp.

Referenced by Intrepid::CubatureTensorSorted< Scalar, ArrayPoint, ArrayWeight >::CubatureTensorSorted().

◆ getCubature() [1/2]

template<class Scalar , class ArrayPoint , class ArrayWeight >
void Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::getCubature ( ArrayPoint &  cubPoints,
ArrayWeight &  cubWeights 
) 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.

Definition at line 298 of file Intrepid_CubatureLineSortedDef.hpp.

◆ getCubature() [2/2]

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

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

Definition at line 310 of file Intrepid_CubatureLineSortedDef.hpp.

◆ getDimension()

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

Returns dimension of domain of integration.

Implements Intrepid::Cubature< Scalar, FieldContainer< Scalar >, FieldContainer< Scalar > >.

Definition at line 319 of file Intrepid_CubatureLineSortedDef.hpp.

◆ getName()

template<class Scalar , class ArrayPoint , class ArrayWeight >
const char * Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::getName

Returns cubature name.

Definition at line 279 of file Intrepid_CubatureLineSortedDef.hpp.

◆ getNode()

template<class Scalar , class ArrayPoint , class ArrayWeight >
Scalar Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::getNode ( typename std::map< Scalar, int >::iterator  it)

Get a specific node described by the iterator location.

Definition at line 324 of file Intrepid_CubatureLineSortedDef.hpp.

Referenced by Intrepid::CubatureTensorSorted< Scalar, ArrayPoint, ArrayWeight >::CubatureTensorSorted().

◆ getNumPoints()

template<class Scalar , class ArrayPoint , class ArrayWeight >
int Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::getNumPoints
virtual

◆ getWeight() [1/2]

template<class Scalar , class ArrayPoint , class ArrayWeight >
Scalar Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::getWeight ( int  weight)

◆ getWeight() [2/2]

template<class Scalar , class ArrayPoint , class ArrayWeight >
Scalar Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::getWeight ( Scalar  point)

Get a specific weight described by the corresponding node.

Definition at line 335 of file Intrepid_CubatureLineSortedDef.hpp.

◆ update()

template<class Scalar , class ArrayPoint , class ArrayWeight >
void Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::update ( Scalar  alpha2,
CubatureLineSorted< Scalar > &  cubRule2,
Scalar  alpha1 
)

Member Data Documentation

◆ cubature_name_

template<class Scalar , class ArrayPoint , class ArrayWeight >
const char * Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::cubature_name_ = "INTREPID_CUBATURE_LINESORTED"
staticprivate

Cubature name.

Definition at line 116 of file Intrepid_CubatureLineSorted.hpp.

◆ degree_

template<class Scalar , class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
int Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::degree_
private

The degree of polynomials that are integrated exactly by this cubature rule.

Definition at line 108 of file Intrepid_CubatureLineSorted.hpp.

◆ numPoints_

template<class Scalar , class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
int Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::numPoints_
private

Contains the number of nodes for this cubature rule.

Definition at line 103 of file Intrepid_CubatureLineSorted.hpp.

◆ points_

template<class Scalar , class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
std::map<Scalar,int> Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::points_
private

Contains points of this cubature rule.

Definition at line 95 of file Intrepid_CubatureLineSorted.hpp.

◆ rule_type_

template<class Scalar , class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
EIntrepidBurkardt Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::rule_type_
private

Type of integration points.

Definition at line 112 of file Intrepid_CubatureLineSorted.hpp.

◆ weights_

template<class Scalar , class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
std::vector<Scalar> Intrepid::CubatureLineSorted< Scalar, ArrayPoint, ArrayWeight >::weights_
private

Contains points of this cubature rule.

Definition at line 99 of file Intrepid_CubatureLineSorted.hpp.


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