warp.fem.space.CollocatedFunctionSpace#
- class warp.fem.space.CollocatedFunctionSpace(basis, dtype=float, dof_mapper=None)[source]#
Function space whose values are collocated at nodes.
- Parameters:
basis (BasisSpace)
dtype (type)
dof_mapper (DofMapper)
- __init__(basis, dtype=float, dof_mapper=None)[source]#
- Parameters:
basis (BasisSpace)
dtype (type)
dof_mapper (DofMapper)
Methods
__init__(basis[, dtype, dof_mapper])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.
make_field([space_partition])Create a discrete field over this function space.
node_basis_element(dof_coord)Basis element for node degrees of freedom.
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
basisUnderlying basis space.
degreeMaximum polynomial degree of the underlying basis.
dimensionFunction space embedding dimension.
element_kindKind of element the function space is expressed over.
geometryUnderlying geometry.
Unique name of the function space.
topologyUnderlying geometry.
dtypeValue type of the interpolation functions.
dof_dtypeData type of the degrees of freedom of each node.
weight_dtypeData type of the shape functions associated to each node.
VALUE_DOF_COUNTNumber of degrees of freedom per value, as a Warp constant.
NODE_DOF_COUNTNumber of degrees of freedom per node, as a Warp constant.
ORDERPolynomial degree of the function space, used to determine integration order.
- property name#
Unique name of the function space.
- make_field(space_partition=None)[source]#
Create a discrete field over this function space.
- Parameters:
space_partition (SpacePartition | None) – Optional partition of the function space nodes.
- Return type:
wp._src.fem.NodalField
- local_value_map_inner = <Function CollocatedFunctionSpace__local_value_map_inner(elt_arg: typing.Any, element_index: int, element_coords: vec3f)>#