PolynomialSpace

class fuse.spaces.polynomial_spaces.PolynomialSpace(maxdegree, contains=None, mindegree=0, shape=())

Bases: object

contains: the degree of the maximum degree Lagrange space that is spanned by this element. If this element’s polynomial space does not include the constant function, this function should return -1.

maxdegree: the degree of the minimum degree Lagrange space that spans this element.If this element contains basis functions that are not in any Lagrange space, this property should be None.

mindegree: the degree of the polynomial in the space with the lowest degree.

shape: the value shape of the space, as a tuple. The empty tuple is scalar valued. This is the shape of the value, not of the cell, so it is independent of the spatial dimension.

Note that on a simplex cells, the polynomial space of Lagrange space is a complete polynomial space, but on other cells this is not true. For example, on quadrilateral cells, the degree 1 Lagrange space includes the degree 2 polynomial xy.

__init__(maxdegree, contains=None, mindegree=0, shape=())

Methods

__init__(maxdegree[, contains, mindegree, shape])

complete()

degree()

dict_id()

functional_matrix(cell, dofs)

The DOFs, defined on cell, applied to the orthonormal basis of this space on cell: one row per DOF.

restrict(mindegree, maxdegree)

to_ON_polynomial_set(ref_el[, k])

to_vector(shape)

functional_matrix(cell, dofs)

The DOFs, defined on cell, applied to the orthonormal basis of this space on cell: one row per DOF.

Builds the FIAT cell and basis from the cell’s geometry, and caches them.