warp.fem.ShapeFunction#

class warp.fem.ShapeFunction[source]#

Interface class for defining scalar-valued shape functions over a single element

__init__()#

Methods

__init__()

make_element_inner_weight()

Creates a device function returning the value of the shape function associated to a given node at given coordinates

make_element_inner_weight_gradient()

Creates a device function returning the gradient of the shape function associated to a given node at given coordinates

make_node_coords_in_element()

Creates a device function returning the coordinates of each node

make_node_quadrature_weight()

Creates a device function returning the weight of each node when use as a quadrature point over the element

make_trace_node_quadrature_weight()

Creates a device function returning the weight of each node when use as a quadrature point over the element boundary

Attributes

name

Unique name encoding all parameters defining the shape function

value

ORDER

Maximum degree of the polynomials used to define the shape function

NODES_PER_ELEMENT

Number of shape function nodes

ORDER: int#

Maximum degree of the polynomials used to define the shape function

NODES_PER_ELEMENT: int#

Number of shape function nodes

class Value(*values)[source]#
Scalar = 0#
CovariantVector = 1#
ContravariantVector = 2#
value: Value = 0#
property name: str[source]#

Unique name encoding all parameters defining the shape function

make_node_coords_in_element()[source]#

Creates a device function returning the coordinates of each node

make_node_quadrature_weight()[source]#

Creates a device function returning the weight of each node when use as a quadrature point over the element

make_trace_node_quadrature_weight()[source]#

Creates a device function returning the weight of each node when use as a quadrature point over the element boundary

make_element_inner_weight()[source]#

Creates a device function returning the value of the shape function associated to a given node at given coordinates

make_element_inner_weight_gradient()[source]#

Creates a device function returning the gradient of the shape function associated to a given node at given coordinates