QF module
Reference integration formulas selected by geometry and exactness.
A reference rule consists of sites and weights .
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 .
Formula families
| Family | Role |
|---|---|
| XiaoGimbutas | Native tabulated simplex rules within their available ranges |
| WitherdenVincent | Native tabulated pyramid rules within their available range |
| GaussLegendre | Segment rules and positive collapsed-coordinate constructions |
| TensorProduct | Products for quadrilaterals, hexahedra and wedges |
| GaussLobatto | Endpoint-inclusive segment rules |
| GrundmannMoller | A separately selectable simplex family |
| Centroid | A 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.