warp.fem.ShapeBasisSpace#
- class warp.fem.ShapeBasisSpace(topology, shape)[source]#
Base class for defining shape-function-based basis spaces.
Methods
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 the dual weight of each element node.
Create a device function returning node quadrature weights.
make_node_sample()Create a device function locating an element node's physical anchor.
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
moves_node_samplesWhether
make_node_sample()may return another element than the one it is given.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
supports_nodal_assemblyWhether nodal assembly may assume a diagonal node coupling.
supports_nodal_quadratureWhether this basis may supply nodal quadrature points and weights.
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.
- Parameters:
topology (SpaceTopology)
shape (ShapeFunction)
- 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.
- make_node_dual_weight()[source]#
Create a device function returning the dual weight of each element node.