symfem.elements.p1_macro

P1 macro elements.

This element’s definition appears in https://doi.org/10.1007/s00211-018-0970-6 (Christiansen, Hu, 2018)

Classes

P1Macro

P1 macro finite element on a triangle.

Module Contents

class symfem.elements.p1_macro.P1Macro(reference: symfem.references.Reference, order: int)

Bases: symfem.finite_element.CiarletElement

P1 macro finite element on a triangle.

property lagrange_subdegree: int
Abstractmethod:

Get the Lagrange subdegree of the element.

This is the degree of the highest degree Lagrange space whose polynomial space is a subspace of this element’s polynomial space.

property lagrange_superdegree: int | None
Abstractmethod:

Get the Lagrange superdegree of the element.

This is the degree of the highest degree Lagrange space whose polynomial space is a superspace of this element’s polynomial space.

property polynomial_subdegree: int
Abstractmethod:

Get the polynomial subdegree of the element.

This is the degree of the highest degree complete polynomial space that is a subspace of this element’s polynomial space.

property polynomial_superdegree: int | None
Abstractmethod:

Get the polynomial superdegree of the element.

This is the degree of the highest degree complete polynomial space that is a superspace of this element’s polynomial space.

names = ['P1 macro']
references = ['triangle']
min_order = 1
max_order = 1
continuity = 'C0'
value_type = 'scalar macro'
last_updated = '2025.12'