Ciarlet's definition of a finite element
Separate the reference cell, approximation space, and degrees of freedom.
A finite element is a local construction. It specifies which functions can be represented on one cell and which measurements determine those functions. A finite element space combines these local constructions over a mesh, with the required continuity between neighboring cells.
The finite element triple
A finite element is a triple with the following components:
| Object | Role |
|---|---|
| Reference cell on which the local construction is defined | |
| Finite-dimensional space of functions on that cell | |
| Linear functionals determining a function in |
The functionals are the degrees of freedom. Depending on the element family, they measure point values, moments, normal components, or tangential components. Together with the reference cell and approximation space, they specify the finite element.
Require unique reconstruction
The functionals must be unisolvent on the approximation space. With , the map
must be an isomorphism. Equivalently, the only function with every DOF equal to zero is the zero function. This condition gives a dual shape-function basis satisfying
A linear triangle
On the reference triangle with vertices , , and , choose affine polynomials and vertex evaluations. The three basis functions are
Each is one at its own vertex and zero at the other two. Their sum is one, so constant fields are reproduced exactly.



The figure is generated from the reference-element evaluations in this runnable example.
P1Element<Real> element(Polytope::Type::Triangle); std::ofstream basis("ReferenceP1.csv"); basis.precision(17); basis << "i,j,r,s,phi0,phi1,phi2\n"; for (size_t i = 0; i <= subdivisions; ++i) { for (size_t j = 0; j <= subdivisions - i; ++j) { const Math::SpatialPoint point{Real(i) / subdivisions, Real(j) / subdivisions}; basis << i << ',' << j << ',' << point.x() << ',' << point.y(); for (size_t k = 0; k < element.getCount(); ++k) basis << ',' << element.getBasis(k)(point); basis << '\n'; } }
The reference cell is used here, so the sampling coordinates are reference coordinates. A value evaluated on a physical mesh cell must also use that cell's geometric mapping.
Match the approximation space to the cell
On a simplex, total-degree polynomials have
For a triangle, this gives three scalar DOFs at degree one and six at degree two. On a tetrahedron it gives four and ten, respectively.
Tensor-product cells use a different construction. For a quadrilateral, contains polynomials of degree at most in each reference coordinate and has DOFs. A bilinear quadrilateral therefore has four vertex DOFs. The element reference specifies the approximation space for each cell family.
Map the element to physical cells
Let map the reference cell to a physical cell. Scalar basis functions are transported by composition.
For an invertible square Jacobian ,
Embedded surfaces instead have rectangular Jacobians and use the induced metric and tangential gradient. The surface PDE tutorial illustrates that setting.
Polynomial degree is a property of the reference approximation space. Under a non-affine geometry map, the physical basis is the composition of a reference polynomial with the inverse map. Field degree and geometry degree are selected independently.
Assemble a global space
Local DOFs on shared mesh entities are identified when the chosen continuity requires it. Continuous nodal spaces share vertex values and, at higher degree, the appropriate edge and face data. Discontinuous spaces retain independent cell data.
| Conformity | Intercell requirement | Examples in this guide |
|---|---|---|
| Compatible continuous traces | P1, H1 | |
| only | No intercell continuity imposed | P0 |
| Compatible normal traces | Requires an appropriate vector element family | |
| Compatible tangential traces | Requires an appropriate vector element family |
The last two conformity classes require element families with the corresponding normal or tangential trace DOFs; the table identifies their mathematical requirements.
Locate the objects in Rodin
Polytope::Type identifies a reference geometry. Element classes such as P1Element provide local basis evaluations and DOF functionals. Space objects distribute DOFs over a mesh, while GridFunction represents one discrete field in that space.
constexpr size_t nodes = 8; Mesh mesh = Mesh().UniformGrid(Polytope::Type::Triangle, {nodes, nodes}); mesh.scale(1.0 / (nodes - 1)); mesh.getConnectivity().compute(1, 2); mesh.getConnectivity().compute(2, 1); P0 cellSpace(mesh); P0g constantSpace(mesh); P1 linearSpace(mesh); H1 quadraticSpace(std::integral_constant<size_t, 2>{}, mesh); P1 vectorSpace(mesh, 2); P1<Complex> complexSpace(mesh);
This setup defines several spaces on the same mesh for comparison. The finite element spaces guide checks their global counts, assigns a known function, and evaluates the interpolated fields. See also the polytope guide and numerical contracts.