Supported finite elements¶
A function space is built from a mesh, an element family, and a polynomial degree, for example
V = FunctionSpace(mesh, "Lagrange", 2)
This page lists the element families which Firedrake supports, and it shows where to find more information about each one.
Family names¶
Each family has a full name, and most also have one or more other names, such as an abbreviation. You can use any of them as the family argument; they select the same element. For example, these three lines are equivalent:
V = FunctionSpace(mesh, "Raviart-Thomas", 1)
V = FunctionSpace(mesh, "RT", 1)
V = FunctionSpace(mesh, "N1div", 1)
If the “Other names” column is empty, the family has no other name, and you must use the full name. Names are case sensitive.
List of supported elements¶
Name |
Other names |
Value shape |
Valid cells |
|---|---|---|---|
Alfeld C2 |
ALF-C2 |
scalar |
triangle |
AS |
vector |
triangle, tetrahedron |
|
ARG |
scalar |
triangle |
|
Arnold-Qin |
AQ |
vector |
triangle |
BELL |
scalar |
triangle |
|
BR |
vector |
triangle, tetrahedron |
|
Bernardi-Raugel Bubble |
BRB |
vector |
triangle, tetrahedron |
scalar |
interval, triangle, tetrahedron, quadrilateral, hexahedron |
||
Bramble-Zlamal C2 |
BZ-C2 |
scalar |
triangle |
BDFM |
vector |
triangle, tetrahedron |
|
BDM, BDMF, N2F, N2div, Nedelec 2nd kind H(div) |
vector |
triangle, tetrahedron |
|
BDMCE |
vector |
quadrilateral |
|
BDMCF |
vector |
quadrilateral |
|
B |
scalar |
interval, triangle, tetrahedron |
|
Christiansen-Hu |
CH |
vector |
triangle, tetrahedron |
AWc |
tensor |
triangle |
|
CR |
scalar |
triangle, tetrahedron |
|
Sdirect |
scalar |
quadrilateral |
|
DG, DP |
scalar |
interval, triangle, tetrahedron, quadrilateral, hexahedron |
|
DG L2, DP L2 |
scalar |
interval, triangle, tetrahedron, quadrilateral, hexahedron |
|
Discontinuous Raviart-Thomas |
DRT |
vector |
triangle, tetrahedron |
TDG |
scalar |
interval, triangle, tetrahedron |
|
scalar |
interval, quadrilateral, hexahedron |
||
scalar |
interval, quadrilateral, hexahedron |
||
scalar |
quadrilateral, hexahedron |
||
scalar |
quadrilateral, hexahedron |
||
FacetBubble |
FB |
scalar |
interval, triangle, tetrahedron |
GL |
scalar |
interval |
|
GL L2 |
scalar |
interval |
|
GLL, Lob, Lobatto |
scalar |
interval |
|
GLS |
tensor |
triangle, tetrahedron |
|
Gopalakrishnan-Lederer-Schoberl 2nd kind |
GLS2 |
tensor |
triangle, tetrahedron |
GN |
vector |
triangle, tetrahedron |
|
GN2 |
vector |
triangle, tetrahedron |
|
Guzman-Neilan Bubble |
GNB |
vector |
triangle, tetrahedron |
Guzman-Neilan H1(div) |
GNH1div |
vector |
triangle, tetrahedron |
DGT, Discontinuous Lagrange Trace, HDivT |
scalar |
interval, triangle, tetrahedron, quadrilateral, hexahedron |
|
HHJ |
tensor |
triangle, tetrahedron |
|
HER |
scalar |
interval, triangle, tetrahedron |
|
HCT |
scalar |
triangle |
|
Hu-Zhang |
HZ |
tensor |
triangle |
JM |
tensor |
triangle, tetrahedron |
|
KMV |
scalar |
triangle, tetrahedron |
|
CG, P |
scalar |
interval, triangle, tetrahedron, quadrilateral, hexahedron |
|
MTW |
vector |
triangle, tetrahedron |
|
MOR |
scalar |
triangle, tetrahedron |
|
vector |
hexahedron |
||
vector |
hexahedron |
||
N1E, N1curl, RTE |
vector |
triangle, tetrahedron |
|
BDME, N2E, N2curl |
vector |
triangle, tetrahedron |
|
AWnc |
tensor |
triangle |
|
Nonconforming Robust Wu-Xu |
WXncr |
scalar |
triangle |
WXnc |
scalar |
triangle |
|
scalar |
quadrilateral, hexahedron |
||
QuadraticPowellSabin12 |
PS12 |
scalar |
triangle |
QuadraticPowellSabin6 |
PS6 |
scalar |
triangle |
N1F, N1div, Nedelec 1st kind H(div), RT, RTF |
vector |
triangle, tetrahedron |
|
Real |
R |
scalar |
interval, triangle, tetrahedron, quadrilateral, hexahedron |
Reduced-Arnold-Qin |
AQ-red |
vector |
triangle |
HCT-red |
scalar |
triangle |
|
tensor |
interval, triangle, tetrahedron |
||
vector |
quadrilateral |
||
vector |
quadrilateral |
||
scalar |
interval, quadrilateral, hexahedron |
||
vector |
quadrilateral, hexahedron |
||
vector |
quadrilateral, hexahedron |
||
vector |
quadrilateral, hexahedron |
||
vector |
quadrilateral |
||
Walkington |
WALK |
scalar |
tetrahedron |
The table above is generated from the element list in FIAT, specifically
from the file finat/ufl/elementlist.py in the FIAT repository.
The file also defines names in the notation of finite element exterior
calculus, for example "P-", "Q-" and "S Lambda". These
names are not in the table, because the family that they select depends
on the cell dimension and on the form degree.
In addition, the
TensorProductElement
operator can be used to create product elements on extruded meshes.
See Extruded Meshes in Firedrake.
Getting more information about an element¶
To see what an element actually is (its degrees of freedom, its polynomial space, and diagrams of its basis functions), look it up on DefElement. In the table above, the name of each family that has a DefElement page is a link to that page.
The page Implemented in FIAT lists the elements that DefElement knows are implemented in FIAT, which is the library that Firedrake gets its elements from.
Element variants¶
Some finite element spaces offer more than one choice of nodes. For Q, DQ, DQ
L2, RTCE, RTCF, NCE, and NCF spaces on intervals, quadrilaterals and hexahedra,
Firedrake offers both equispaced points and better conditioned Legendre points.
For discontinuous elements these are the Gauss-Legendre points, and for
continuous elements these are the Gauss-Lobatto-Legendre points.
For CG and DG spaces on simplices, Firedrake offers both equispaced points and
the better conditioned recursive Legendre points from [Isa20] via the
recursivenodes module. These are selected by passing variant="equispaced"
or variant="spectral" to the FiniteElement or
FunctionSpace() constructors. For example:
fe = FiniteElement("RTCE", quadrilateral, 2, variant="equispaced")
For CG and DG spaces, and most tensor-product elements, the default is variant="spectral".
Integral-type degrees of freedom are also available through variant="integral". These
enable orthogonal bases for DG on any cell type:
V = FunctionSpace(mesh, "DG", 1, variant="integral")
In this case, the degrees of freedom are integral moments against a basis of polynomials,
which need to be computed with a quadrature rule. The degree of accuracy of the quadrature
can be increased also through the variant option. For instance, variant="integral(4)"
will use a quadrature that exactly evaluates the degrees of freedom on polynomials of
4 degrees higher than that of the space.
Furthermore, the quadrature rule can be specified via the "quad_scheme" keyword argument.
For more details, see the manual section on quadrature rules.
Integral-type degrees of freedom are useful to nearly preserve curl-free or
divergence-free functions when interpolating into the finite element space.
H(curl) and H(div) elements, such as Nédélec, Brezzi-Douglas-Marini, and Raviart-Thomas,
have variant="integral" as default. These elements also support variant="point",
where the degrees of freedom are vector components evaluated at equispaced points.
Macroelements can be constructed by splitting each cell into subcells and tiling the element on each subcell, without refining the mesh. For example, the continuous Lagrange space where each simplex is subdivided by connecting each of its vertices to the barycenter is constructed as
V = FunctionSpace(mesh, "CG", 1, variant="alfeld")
The space P1-iso-P2 may be similarly constructed with variant="iso(2)".
Macroelements also support integral-type degrees of freedom,
for example variant="alfeld,integral(2)".
