Functions to directly wrap Basix elements in UFL.
Functions
|
Create a UFL compatible blocked element. |
|
Convert a UFL element to a UFL compatible Basix element. |
|
Create a UFL compatible custom Basix element. |
|
Create a UFL compatible element using Basix. |
|
Create an UFL compatible enriched element from a list of elements. |
|
Create a UFL compatible mixed element from a list of elements. |
|
Create a quadrature element. |
|
Create a real element. |
Create a UFL compatible blocked element.
sub_element – Element used for each block.
shape – Value shape of the element. For scalar-valued families, this can be used to create vector and tensor elements.
symmetry – Set to True
if the tensor is symmetric. Valid for
rank 2 elements only.
gdim – Geometric dimension. If not set the geometric dimension is set equal to the topological dimension of the cell.
A blocked finite element.
Convert a UFL element to a UFL compatible Basix element.
Create a UFL compatible custom Basix element.
cell_type – The cell type
value_shape – The value shape of the element
wcoeffs – Matrices for the kth value index containing the
expansion coefficients defining a polynomial basis spanning
the polynomial space for this element. Shape is
(dim(finite element polyset), dim(Legenre polynomials))
.
x – Interpolation points. Indices are (tdim, entity index,
point index, dim)
M – The interpolation matrices. Indices are (tdim, entity
index, dof, vs, point_index, derivative)
.
interpolation_nderivs – The number of derivatives that need to be used during interpolation.
map_type – The type of map to be used to map values from the reference to a cell.
sobolev_space – Underlying Sobolev space for the element.
discontinuous – Indicates whether or not this is the discontinuous version of the element.
highest_complete_degree – The highest degree n
such that a
Lagrange (or vector Lagrange) element of degree n
is a
subspace of this element.
highest_degree – The degree of a polynomial in this element’s polyset.
polyset_type – Polyset type for the element.
gdim – Geometric dimension. If not set the geometric dimension is set equal to the topological dimension of the cell.
A custom finite element.
Create a UFL compatible element using Basix.
family – Element family/type.
cell – Element cell type.
degree – Degree of the finite element.
lagrange_variant – Variant of Lagrange to be used.
dpc_variant – Variant of DPC to be used.
discontinuous – If True
, the discontinuous version of the
element is created.
shape – Value shape of the element. For scalar-valued families, this can be used to create vector and tensor elements.
symmetry – Set to True
if the tensor is symmetric. Valid for
rank 2 elements only.
gdim – Geometric dimension. If not set the geometric dimension is set equal to the topological dimension of the cell.
A finite element.
Create an UFL compatible enriched element from a list of elements.
elements – The list of elements
map_type – The map type for the enriched element.
gdim – Geometric dimension. If not set the geometric dimension is set equal to the topological dimension of the cell.
An enriched finite element.
Create a UFL compatible mixed element from a list of elements.
elements – The list of elements
gdim – Geometric dimension. If not set the geometric dimension is set equal to the topological dimension of the cell.
A mixed finite element.
Create a quadrature element.
When creating this element, either the quadrature scheme and degree must be input or the quadrature points and weights must be.
cell – Cell to create the element on.
value_shape – Value shape of the element.
scheme – Quadrature scheme.
degree – Quadrature degree.
points – Quadrature points.
weights – Quadrature weights.
mapname – Map name.
A ‘quadrature’ finite element.