Functions to directly wrap Basix elements in UFL.
Functions
|
Convert a UFL element to a wrapped Basix element. |
|
Create a UFL element using Basix. |
|
Create a UFL tensor element using Basix. |
|
Create a UFL vector element using Basix. |
Classes
|
A wrapper allowing Basix elements to be used directly with UFL. |
|
An element with a block size that contains multiple copies of a sub element. |
|
An element representing one component of a BasixElement. |
|
A mixed element that combines two or more elements. |
|
A tensor element. |
|
A vector element. |
Bases: _BasixElementBase
A wrapper allowing Basix elements to be used directly with UFL.
Create a Basix element.
Number of DOFs the element has.
True if the discontinuous version of the element is used.
Basix DPC variant used to initialise the element.
Basix element family used to initialise the element.
DOF numbers associated with the closure of each entity.
DOF numbers associated with each entity.
Family name of the element.
Get element that represents a component of the element, and the offset and stride of the component.
For example, for a MixedElement, this will return the sub-element that represents the given component, the offset of that sub-element, and a stride of 1. For a BlockedElement, this will return the sub-element, an offset equal to the component number, and a stride equal to the block size. For vector-valued element (eg H(curl) and H(div) elements), this returns a ComponentElement (and as offset of 0 and a stride of 1). When tabulate is called on the ComponentElement, only the part of the table for the given component is returned.
flat_component – The component
component element, offset of the component, stride of the component
Get the element’s tensor product factorisation.
Indicates whether or not this element has a tensor product factorisation.
If this value is true, this element’s basis functions can be computed as a tensor product of the basis elements of the elements in the factoriaation.
The highest complete degree of the element.
The highest degree of the element.
The number of derivatives needed when interpolating.
True if the element is a custom Basix element.
Basix Lagrange variant used to initialise the element.
Number of DOFs associated with the closure of each entity.
Number of DOFs associated with each entity.
Get the number of global support DOFs.
Geometry of the reference element.
Topology of the reference element.
Tabulate the basis functions of the element.
nderivs – Number of derivatives to tabulate.
points – Points to tabulate at
Tabulated basis functions
Element type.
Bases: _BasixElementBase
An element with a block size that contains multiple copies of a sub element.
Initialise the element.
The block size of the element.
Number of DOFs the element has.
True if the discontinuous version of the element is used.
Basix DPC variant used to initialise the element.
Basix element family used to initialise the element.
DOF numbers associated with the closure of each entity.
DOF numbers associated with each entity.
Family name of the element.
Get element that represents a component of the element, and the offset and stride of the component.
flat_component – The component
component element, offset of the component, stride of the component
Get the element’s tensor product factorisation.
Indicates whether or not this element has a tensor product factorisation.
If this value is true, this element’s basis functions can be computed as a tensor product of the basis elements of the elements in the factoriaation.
The highest complete degree of the element.
The highest degree of the element.
The number of derivatives needed when interpolating.
Basix Lagrange variant used to initialise the element.
Number of DOFs associated with the closure of each entity.
Number of DOFs associated with each entity.
Get the number of global support DOFs.
Geometry of the reference element.
Topology of the reference element.
Reference value shape of the element basis function.
Return a list of sub elements.
Tabulate the basis functions of the element.
nderivs – Number of derivatives to tabulate.
points – Points to tabulate at
Tabulated basis functions
Element type.
Bases: _BasixElementBase
An element representing one component of a BasixElement.
Initialise the element.
Number of DOFs the element has.
True if the discontinuous version of the element is used.
Basix DPC variant used to initialise the element.
Basix element family used to initialise the element.
DOF numbers associated with the closure of each entity.
DOF numbers associated with each entity.
Family name of the element.
Get element that represents a component of the element, and the offset and stride of the component.
flat_component – The component
component element, offset of the component, stride of the component
The number of derivatives needed when interpolating.
Basix Lagrange variant used to initialise the element.
Number of DOFs associated with the closure of each entity.
Number of DOFs associated with each entity.
Get the number of global support DOFs.
Geometry of the reference element.
Topology of the reference element.
Tabulate the basis functions of the element.
nderivs – Number of derivatives to tabulate.
points – Points to tabulate at
Tabulated basis functions
Bases: _BasixElementBase
A mixed element that combines two or more elements.
Initialise the element.
Number of DOFs the element has.
True if the discontinuous version of the element is used.
Basix DPC variant used to initialise the element.
Basix element family used to initialise the element.
DOF numbers associated with the closure of each entity.
DOF numbers associated with each entity.
Family name of the element.
Get element that represents a component of the element, and the offset and stride of the component.
flat_component – The component
component element, offset of the component, stride of the component
The number of derivatives needed when interpolating.
Basix Lagrange variant used to initialise the element.
Number of DOFs associated with the closure of each entity.
Number of DOFs associated with each entity.
Get the number of global support DOFs.
Geometry of the reference element.
Topology of the reference element.
Return a list of sub elements.
Tabulate the basis functions of the element.
nderivs – Number of derivatives to tabulate.
points – Points to tabulate at
Tabulated basis functions
Get the element type.
Bases: BlockedElement
A tensor element.
Initialise the element.
Bases: BlockedElement
A vector element.
Initialise the element.
Convert a UFL element to a wrapped Basix element.
Create a UFL element using Basix.
family – The element’s family as a Basix enum or a string.
cell – The cell type as a Basix enum or a string.
degree – The degree of the finite element.
lagrange_variant – The variant of Lagrange to be used.
dpc_variant – The variant of DPC to be used.
discontinuous – If set to True, the discontinuous version of this element will be created.
Create a UFL tensor element using Basix.
A tensor element is an element which uses multiple copies of a scalar element to represent a tensor-valued function.
family – The element’s family as a Basix enum or a string.
cell – The cell type as a Basix enum or a string.
degree – The degree of the finite element.
lagrange_variant – The variant of Lagrange to be used.
dpc_variant – The variant of DPC to be used.
discontinuous – If set to True, the discontinuous version of this element will be created.
Create a UFL vector element using Basix.
A vector element is an element which uses multiple copies of a scalar element to represent a vector-valued function.
family – The element’s family as a Basix enum or a string.
cell – The cell type as a Basix enum or a string.
degree – The degree of the finite element.
lagrange_variant – The variant of Lagrange to be used.
dpc_variant – The variant of DPC to be used.
discontinuous – If set to True, the discontinuous version of this element will be created.