Geophysical Inversion and Modelling Library v1.5.4
Loading...
Searching...
No Matches
GIMLI::IntegrationRules Class Reference
+ Inheritance diagram for GIMLI::IntegrationRules:
+ Collaboration diagram for GIMLI::IntegrationRules:

Public Member Functions

const R3VectorgauAbscissa (Index order) const
 
const RVectorgauWeights (Index order) const
 
const R3VectortriGLAbscissa (Index order) const
 
const RVectortriGLWeights (Index order) const
 
const R3VectoredgAbscissa (Index order) const
 
const RVectoredgWeights (Index order) const
 
const R3VectortriAbscissa (Index order) const
 
const RVectortriWeights (Index order) const
 
const R3VectortetAbscissa (Index order) const
 
const RVectortetWeights (Index order) const
 
const R3VectorquaAbscissa (Index order) const
 
const RVectorquaWeights (Index order) const
 
const R3VectorhexAbscissa (Index order) const
 
const RVectorhexWeights (Index order) const
 
const R3VectorpriAbscissa (Index order) const
 
const RVectorpriWeights (Index order) const
 
const R3Vectorabscissa (const Shape &shape, uint order) const
 
const RVectorweights (const Shape &shape, uint order) const
 
void setTriUseGaussLegendre (bool use)
 
bool triUseGaussLegendre () const
 

Protected Member Functions

void initGau_ ()
 
void initTriGL_ ()
 
void initEdg_ ()
 
void initTri_ ()
 
void initTet_ ()
 
void initQua_ ()
 
void initHex_ ()
 
void initPri_ ()
 
- Protected Member Functions inherited from GIMLI::Singleton< IntegrationRules >
 Singleton ()
 
 Singleton (const Singleton &)
 

Protected Attributes

bool triUseGaussLegendre_
 
std::vector< R3VectorgauAbscissa_
 
std::vector< RVectorgauWeights_
 
std::vector< R3VectortriGLAbscissa_
 
std::vector< RVectortriGLWeights_
 
std::vector< R3VectoredgAbscissa_
 
std::vector< RVectoredgWeights_
 
std::vector< R3VectortriAbscissa_
 
std::vector< RVectortriWeights_
 
std::vector< R3VectortetAbscissa_
 
std::vector< RVectortetWeights_
 
std::vector< R3VectorquaAbscissa_
 
std::vector< RVectorquaWeights_
 
std::vector< R3VectorhexAbscissa_
 
std::vector< RVectorhexWeights_
 
std::vector< R3VectorpriAbscissa_
 
std::vector< RVectorpriWeights_
 

Friends

class Singleton< IntegrationRules >
 

Additional Inherited Members

- Static Public Member Functions inherited from GIMLI::Singleton< IntegrationRules >
static IntegrationRulespInstance ()
 
static IntegrationRulesinstance ()
 

Member Function Documentation

◆ abscissa()

const R3Vector & GIMLI::IntegrationRules::abscissa ( const Shape & shape,
uint order ) const

Return Gauss-Legendre quadrature positions for a given shape of the MeshEntity upto order 10

References gauAbscissa(), GIMLI::Shape::rtti(), and triGLAbscissa().

◆ gauAbscissa()

const R3Vector & GIMLI::IntegrationRules::gauAbscissa ( Index order) const

Return Gauss-Legendre quadrature point upto order <10.

Referenced by abscissa().

◆ gauWeights()

const RVector & GIMLI::IntegrationRules::gauWeights ( Index order) const

Return Gauss-Legendre quadrature weights upto order <10.

Referenced by weights().

◆ setTriUseGaussLegendre()

void GIMLI::IntegrationRules::setTriUseGaussLegendre ( bool use)
inline

Set whether triangle integration use Gauss Legendre polynomials (up to order 9) or native triangle coordinates (up to order 5). Default is GL == true.

◆ triGLAbscissa()

const R3Vector & GIMLI::IntegrationRules::triGLAbscissa ( Index order) const

Generic quadrature positions for a triangle based on Gauss-Legendre quadrature H. T. RATHOD1*, K. V. NAGARAJA2, B. VENKATESUDU3 AND N. L. RAMESH4. Gauss Legendre quadrature over a triangle. J. Indian Inst. Sci., Sept.-Oct. 2004, 84, 183-188

References triGLAbscissa_.

Referenced by abscissa().

◆ triGLWeights()

const RVector & GIMLI::IntegrationRules::triGLWeights ( Index order) const

Generic quadrature weights for a triangle based on Gauss-Legendre quadrature H.T. RATHOD, K. V. NAGARAJA, B. VENKATESUDU AND N. L. RAMESH. Gauss Legendre quadrature over a triangle. J. Indian Inst. Sci., Sept.-Oct. 2004, 84, 183-188

References triGLWeights_.

Referenced by weights().

◆ weights()

const RVector & GIMLI::IntegrationRules::weights ( const Shape & shape,
uint order ) const

Return Gauss-Legendre quadrature weights for a given shape of the MeshEntity upto order 10

References gauWeights(), GIMLI::Shape::rtti(), and triGLWeights().

Member Data Documentation

◆ triGLAbscissa_

std::vector< R3Vector > GIMLI::IntegrationRules::triGLAbscissa_
protected

Quadrature positions for a triangle based on Gauss-Legendre quadrature

Referenced by triGLAbscissa().

◆ triGLWeights_

std::vector< RVector > GIMLI::IntegrationRules::triGLWeights_
protected

Quadrature weight for a triangle based on Gauss-Legendre quadrature

Referenced by triGLWeights().