warp.fem.BasisSpace#
- class warp.fem.BasisSpace(topology)[source]#
Interface class for defining shape functions over a geometry.
A basis space is a component of a function space, and is responsible for defining the node positions and their weights over individual elements of the geometry. The connectivity pattern between elements of geometry is defined by the
SpaceTopology. The actual valuation of the space is defined by theFunctionSpace, allowing to reuse a single basis space for multiple value types (e.g, scalar, vector, or tensor).See also:
make_polynomial_basis_space(),make_collocated_function_space()- Parameters:
topology (SpaceTopology)
- __init__(topology)[source]#
- Parameters:
topology (SpaceTopology)
Methods
__init__(topology)basis_arg_value(device)fill_basis_arg(arg, device)Fill the arguments to be passed to basis-related device functions
node_positions([out])Returns a temporary array containing the world position for each node
trace()Attributes
Underlying geometry of the basis space
Underlying topology of the basis space
Value type for the underlying shape functions
- BasisArg = <warp._src.codegen.Struct object>#
- property topology: SpaceTopology[source]#
Underlying topology of the basis space
- fill_basis_arg(arg, device)[source]#
Fill the arguments to be passed to basis-related device functions