warp.fem.space.shape.CubeSerendipityShapeFunctions#

class warp.fem.space.shape.CubeSerendipityShapeFunctions(
degree,
family,
scalar_type=warp.float32,
)[source]#

Serendipity element: a tensor product space without interior nodes.

Edge shape functions are usual Lagrange shape functions times a bilinear function in the normal directions. Corner shape functions are trilinear shape functions times a function of (x^{d-1} + y^{d-1} + z^{d-1}).

Methods

Attributes

EDGE

FACE

INTERIOR

INTERPOLATORY

Whether each shape function is one at its own node and zero at the other nodes (Lagrange property).

VERTEX

name

value

Value type of the shape function.

ORDER

Maximum degree of the polynomials used to define the shape function.

NODES_PER_ELEMENT

Number of shape function nodes.

Parameters:
INTERPOLATORY: bool = True#

Whether each shape function is one at its own node and zero at the other nodes (Lagrange property).

property name: str[source]#
make_node_coords_in_element()[source]#
make_node_quadrature_weight()[source]#
make_trace_node_quadrature_weight()[source]#
make_element_inner_weight()[source]#
make_element_inner_weight_gradient()[source]#
make_node_dual_weight()[source]#
element_node_tets()[source]#
element_vtk_cells()[source]#