MoReFEM
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
MoReFEM::QuadratureNS Namespace Reference

Namespace that enclose quadrature points and rules. More...

Data Structures

struct  Hexahedron
 CRTP-defined class for the quadrature rules that concern Hexahedrons. More...
 
struct  Point
 CRTP-defined class for the quadrature rules that concern points. More...
 
struct  Quadrangle
 CRTP-defined class for the quadrature rules that concern Quadrangles. More...
 
struct  Segment
 CRTP-defined class for the quadrature rules that concern segments. More...
 
struct  Tetrahedron
 CRTP-defined class for the quadrature rules that concern tetrahedrons. More...
 
struct  Triangle
 CRTP-defined class for the quadrature rules that concern triangles. More...
 

Enumerations

enum class  GaussFormula { Gauss , Gauss_Lobatto }
 Variants of Gauss quadrature formula available.
 

Functions

template<GaussFormula QuadratureFormulaT>
void ComputeGaussFormulas (std::size_t Npoints_gauss, std::vector< double > &points, std::vector< double > &weights)
 Computation of Gauss quadrature formula.
 

Detailed Description

Namespace that enclose quadrature points and rules.

Function Documentation

◆ ComputeGaussFormulas()

template<GaussFormula QuadratureFormulaT>
void MoReFEM::QuadratureNS::ComputeGaussFormulas ( std::size_t Npoints_gauss,
std::vector< double > & points,
std::vector< double > & weights )

Computation of Gauss quadrature formula.

Template Parameters
QuadratureFormulaTVariant of Gauss quadrature formula to use.
Parameters
[in]Npoints_gaussNumber of Gauss points to consider.
[out]pointsValues for each of the quadrature point.
[out]weightsWeight for each of the quadrature point.

For details about that function, take a look at P. N. swarztrauber, Computing the points and weights for Gauss-Legendre quadrature, SIAM J. Sci. Comput., 24(2002) pp. 945-954.

This code is adapted from Ondomatic, which itself was taken from elsewhere.