![]() |
LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
|
LehrFEM++ provides a number of quadrature rules for the numerical integration of functions over reference elements. General entities can be mapped to the reference element using the methods described in the Geometry quick reference.
The quad namespace has some useful functions for instantiating quadrature rules for a given reference element. The following code snippet shows how to get a quadrature rule for a triangle of degree >= 3 using lf::quad::make_QuadRule.
It is also possible to get a quadrature rule which only uses the nodes of the reference element to approximate the integral using lf::quad::make_QuadRuleNodal.
Another possibility is to define a quadrature rule by specifying the nodes and weights manually. This can be done using the lf::quad::QuadRule constructor.
Lastly LehrFEM++ also provides a few more specialized quadrature rules. A list can be found on the Quadrature Rules Namespace page.