warp.fem.ShapeFunction#
- class warp.fem.ShapeFunction[source]#
Interface class for defining scalar-valued shape functions over a single element.
- __init__()#
Methods
__init__()Create a device function returning the value of the shape function associated to a given node at given coordinates.
Create a device function returning the gradient of the shape function associated to a given node at given coordinates.
Create a device function returning the coordinates of each node.
Create a device function returning the weight of each node when used as a quadrature point over the element.
Create a device function returning the weight of each node when used as a quadrature point over the element boundary.
Attributes
Unique name encoding all parameters defining the shape function
Value type of the shape function.
Maximum degree of the polynomials used to define the shape function.
Number of shape function nodes.
- class Value(*values)[source]#
- Scalar = 0#
Scalar-valued shape function.
- CovariantVector = 1#
Covariant vector-valued shape function.
- ContravariantVector = 2#
Contravariant vector-valued shape function.
- make_node_coords_in_element()[source]#
Create a device function returning the coordinates of each node.
- make_node_quadrature_weight()[source]#
Create a device function returning the weight of each node when used as a quadrature point over the element.
- make_trace_node_quadrature_weight()[source]#
Create a device function returning the weight of each node when used as a quadrature point over the element boundary.