warp.fem.ShapeBasisSpace#
- class warp.fem.ShapeBasisSpace(topology, shape)[source]#
Base class for defining shape-function-based basis spaces.
- Parameters:
topology (SpaceTopology)
shape (ShapeFunction)
- __init__(topology, shape)[source]#
- Parameters:
topology (SpaceTopology)
shape (ShapeFunction)
Methods
__init__(topology, shape)basis_arg_value(device)fill_basis_arg(arg, device)Fill the arguments to be passed to basis-related device functions
Create a device function returning inner element shape weights.
Create a device function returning gradients of inner element weights.
make_element_outer_weight()Create a device function returning outer element shape weights.
make_element_outer_weight_gradient()Create a device function returning gradients of outer element weights.
Create a device function returning node coordinates within an element.
Create a device function returning node quadrature weights.
make_trace_node_quadrature_weight(trace_basis)Create a device function returning trace node quadrature weights.
node_positions([out])Return a temporary array containing the world position for each node.
trace()Return a trace basis space on geometry sides.
Attributes
BasisArggeometryUnderlying geometry of the basis space
Unique name of the basis space.
Node grid for the basis, if defined by the topology.
Hexahedralization of element nodes for visualization.
Tetrahedralization of element nodes for visualization.
Triangulation of element nodes for visualization.
Shape functions used for defining individual element basis
topologyUnderlying topology of the basis space
Value type of the underlying shape function.
VTK cell connectivity for visualization.
weight_gradient_typeData type of node weight gradients returned by the basis.
weight_typeData type of node weights returned by the basis.
- property shape: ShapeFunction[source]#
Shape functions used for defining individual element basis
- property name#
Unique name of the basis space.
- make_node_coords_in_element()[source]#
Create a device function returning node coordinates within an element.
- make_element_inner_weight()[source]#
Create a device function returning inner element shape weights.
- make_element_inner_weight_gradient()[source]#
Create a device function returning gradients of inner element weights.