Rodin::QF module

Reference integration formulas selected by geometry and exactness.

A reference rule consists of sites $\widehat x_q$ and weights $w_q$ .

\[ \int_{\widehat K}f(\widehat x)\,d\widehat x \approx\sum_qw_qf(\widehat x_q). \]

get selects a persistent formula for a requested polynomial exactness and reference geometry. The quadrature guide explains mapping to physical cells, ownership, exactness ranges and refinement checks.

Select a formula

const auto& formula = QF::QuadratureFormula::get(4, Polytope::Type::Triangle);
const auto& quadrature = cell.getQuadrature(formula);

The request is an exactness degree. Concrete family constructors may use a different parameter. For example, GaussLegendre(Segment,n) takes a point count and integrates univariate polynomials through degree $2n-1$ .

Formula families

FamilyRole
XiaoGimbutasNative tabulated simplex rules within their available ranges
WitherdenVincentNative tabulated pyramid rules within their available range
GaussLegendreSegment rules and positive collapsed-coordinate constructions
TensorProductProducts for quadrilaterals, hexahedra and wedges
GaussLobattoEndpoint-inclusive segment rules
GrundmannMollerA separately selectable simplex family
CentroidA one-site reference rule, also used for point geometry

Default selection uses native tables when available and the configured positive conical-product fallback beyond them. Product cells combine the corresponding factor rules. Pyramid collapse contributes its Jacobian to the Gauss–Jacobi weight. Point, segment, triangle, quadrilateral, tetrahedron, hexahedron, wedge and pyramid geometries are supported.

Polynomial exactness applies to the complete reference integrand. Curved mappings, rational bases and nonpolynomial coefficients require attention to the mapped integrand and numerical refinement. The checked Geometry/Quadrature.cpp example in Quadrature formulas integrates both a reference polynomial and its mapped physical counterpart.

Classes

class Centroid
Single-point centroid quadrature formula.
class GaussLegendre
Gauss-Legendre quadrature formula on reference polytopes.
class GaussLobatto
Gauss-Lobatto quadrature formula on reference polytopes.
class GrundmannMoller
Grundmann-Möller simplex quadrature formula.
class QuadratureFormulaBase
Read-only access to reference quadrature points and weights.
class QuadratureFormula
Persistent immutable reference quadrature points and weights.
class TensorProduct
Cartesian product of two quadrature formulae.
class WitherdenVincent
Fully symmetric positive interior quadrature.
class XiaoGimbutas
Near-minimal positive interior quadrature on simplices.