warp.fem.make_element_shape_function#

warp.fem.make_element_shape_function(
element,
degree,
element_basis=None,
family=None,
)#

Equips a reference element with a shape function basis.

Parameters:
  • element (Element) – the type of reference element on which to build the shape function

  • degree (int) – polynomial degree of the per-element shape functions

  • element_basis (ElementBasis | None) – type of basis function for the individual elements

  • family (Polynomial | None) – Polynomial family used to generate the shape function basis. If not provided, a reasonable basis is chosen.

Returns:

the corresponding shape function

Raises:

NotImplementedError – If the shape function is not implemented for the given element type

Return type:

ShapeFunction