warp.fem.ShapeBasisSpace#

class warp.fem.ShapeBasisSpace(topology, shape)[source]#

Base class for defining shape-function-based basis spaces.

Parameters:
__init__(topology, shape)[source]#
Parameters:

Methods

__init__(topology, shape)

basis_arg_value(device)

fill_basis_arg(arg, device)

Fill the arguments to be passed to basis-related device functions

make_element_inner_weight()

Create a device function returning inner element shape weights.

make_element_inner_weight_gradient()

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.

make_node_coords_in_element()

Create a device function returning node coordinates within an element.

make_node_quadrature_weight()

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

BasisArg

geometry

Underlying geometry of the basis space

name

Unique name of the basis space.

node_grid

Node grid for the basis, if defined by the topology.

node_hexes

Hexahedralization of element nodes for visualization.

node_tets

Tetrahedralization of element nodes for visualization.

node_triangulation

Triangulation of element nodes for visualization.

shape

Shape functions used for defining individual element basis

topology

Underlying topology of the basis space

value

Value type of the underlying shape function.

vtk_cells

VTK cell connectivity for visualization.

weight_gradient_type

Data type of node weight gradients returned by the basis.

weight_type

Data type of node weights returned by the basis.

property shape: ShapeFunction[source]#

Shape functions used for defining individual element basis

property value: Value[source]#

Value type of the underlying shape function.

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_node_quadrature_weight()[source]#

Create a device function returning node quadrature weights.

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_trace_node_quadrature_weight(trace_basis)[source]#

Create a device function returning trace node quadrature weights.

trace()[source]#

Return a trace basis space on geometry sides.

Return type:

TraceBasisSpace

property node_grid[source]#

Node grid for the basis, if defined by the topology.

property node_triangulation[source]#

Triangulation of element nodes for visualization.

property node_tets[source]#

Tetrahedralization of element nodes for visualization.

property node_hexes[source]#

Hexahedralization of element nodes for visualization.

property vtk_cells[source]#

VTK cell connectivity for visualization.