H1.h file
Positive-degree continuous Lagrange spaces and reference elements.
H1 constructs a conforming field from degree- reference elements, with . Vertex, edge, face and cell degrees of freedom are shared according to the mesh incidence and the family trace maps. Scalar, vector and matrix ranges use the corresponding range specialization.
Approximation spaces
On affine simplices the reference space is ; on tensor cells it is . Wedges combine triangular and segment factors, while pyramids use their compatible rational construction. The physical basis is transported by the geometric map, .
For scalar elements the local counts are:
| Geometry | Scalar degrees of freedom |
|---|---|
| Segment | |
| Triangle | |
| Quadrilateral | |
| Tetrahedron | |
| Wedge | |
| Hexahedron | |
| Pyramid |
Reference nodal duality, geometric mapping and global coefficient numbering are separate objects. Use the element and space accessors when evaluating fields or transferring their coefficients. Polynomial approximation rates depend on solution regularity, mesh quality, geometry and quadrature.
Usage
A quadratic scalar space on a prepared mesh is constructed by selecting its degree at compile time.
H1 quadratic(std::integral_constant<size_t, 2>{}, mesh); TrialFunction u(quadratic); TestFunction v(quadratic);
The finite element space example constructs and samples constant, linear and quadratic fields on one mesh. RealH1Element<K> exposes a scalar reference element; range-specific aliases and space specializations provide the other supported field types.