ffcx.element_interface

Finite element interface.

Functions

QuadratureElement(cellname, value_shape[, ...])

RealElement(element)

basix_index(indices)

Get the Basix index of a derivative.

convert_element(element)

Convert and element to a FFCx element.

create_quadrature(cellname, degree, rule, ...)

Create a quadrature rule.

map_facet_points(points, facet, cellname)

Map points from a reference facet to a physical facet.

reference_cell_vertices(cellname)

Get the vertices of a reference cell.

ffcx.element_interface.QuadratureElement(cellname: str, value_shape: Tuple[int, ...], scheme: str | None = None, degree: int | None = None, points: ndarray[Any, dtype[float64]] | None = None, weights: ndarray[Any, dtype[float64]] | None = None, mapname: str = 'identity') _ElementBase[source]
ffcx.element_interface.RealElement(element: FiniteElementBase) _ElementBase[source]
ffcx.element_interface.basix_index(indices: Tuple[int]) int[source]

Get the Basix index of a derivative.

ffcx.element_interface.convert_element(element: FiniteElementBase) _ElementBase[source]

Convert and element to a FFCx element.

ffcx.element_interface.create_quadrature(cellname: str, degree: int, rule: str, elements: List[_ElementBase]) Tuple[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]][source]

Create a quadrature rule.

ffcx.element_interface.map_facet_points(points: ndarray[Any, dtype[float64]], facet: int, cellname: str) ndarray[Any, dtype[float64]][source]

Map points from a reference facet to a physical facet.

ffcx.element_interface.reference_cell_vertices(cellname: str) ndarray[Any, dtype[float64]][source]

Get the vertices of a reference cell.