warp.fem.space.CovariantFunctionSpace#

class warp.fem.space.CovariantFunctionSpace(basis)[source]#

Function space whose values are covariant vectors.

Parameters:

basis (BasisSpace)

__init__(basis)[source]#
Parameters:

basis (BasisSpace)

Methods

__init__(basis)

divergence_valid()

Whether divergence of this field can be computed.

dof_value(space_value, node_weight, ...)

Compute the projection of a world-space value onto the basis of a single degree of freedom.

gradient_valid()

Whether gradient operator can be computed.

local_value_map_inner(elt_arg, ...)

Build the local value map transforming from node to world space.

local_value_map_outer(elt_arg, ...)

Build the local value map transforming vector-valued from node to world space.

make_field([space_partition])

Create a discrete field over this function space.

node_count()

Number of nodes in the interpolation basis.

node_positions([out])

Return node positions for this space.

space_divergence(dof_value, ...)

Assemble the world-space divergence of the function space.

space_gradient(dof_value, ...)

Assemble the world-space gradient of the function space.

space_value(dof_value, node_weight, ...)

Assemble the world-space value of the function space.

trace()

Return the trace of this space on lower-dimensional elements.

value_basis_element(dof_coord)

Basis element for the function space values.

Attributes

basis

Underlying basis space.

degree

Maximum polynomial degree of the underlying basis.

dimension

Function space embedding dimension.

element_kind

Kind of element the function space is expressed over.

geometry

Underlying geometry.

name

Unique name of the function space.

node_basis_element

topology

Underlying geometry.

dtype

Value type of the interpolation functions.

dof_dtype

Data type of the degrees of freedom of each node.

weight_dtype

Data type of the shape functions associated to each node.

LocalValueMap

Type of the local map for transforming vector-valued functions from reference to world space.

VALUE_DOF_COUNT

Number of degrees of freedom per value, as a Warp constant.

NODE_DOF_COUNT

Number of degrees of freedom per node, as a Warp constant.

ORDER

Polynomial degree of the function space, used to determine integration order.

trace()[source]#

Return the trace of this space on lower-dimensional elements.

Return type:

CovariantFunctionSpaceTrace