warp.fem.space.CollocatedFunctionSpace#

class warp.fem.space.CollocatedFunctionSpace(basis, dtype=float, dof_mapper=None)[source]#

Function space where values are collocated at nodes

Parameters:
__init__(basis, dtype=float, dof_mapper=None)[source]#
Parameters:

Methods

__init__(basis[, dtype, dof_mapper])

divergence_valid()

Whether divergence of this field can be computed.

dof_value(space_value, node_weight, ...)

Computes the projection of a world-space value onto the basis of a single degree of freedom :param - space_value: world-space value :param - node_weight: weight associated to the node, as given per the basis space :param - local_value_map: data encoding local transformation from node space to world space, as given per local_map_value_(inn|out)er

gradient_valid()

Whether gradient operator can be computed.

make_field([space_partition])

node_basis_element(dof_coord)

Basis element for node degrees of freedom.

node_count()

Number of nodes in the interpolation basis

node_positions([out])

space_divergence(dof_value, ...)

space_gradient(dof_value, ...)

Assembles the world-space gradient of the function space :param - dof_value: node value in the degrees-of-freedom basis :param - node_weight_gradient: gradient of the weight associated to the node, either w.r.t element or world space :param - local_value_map: data encoding local transformation from node space to world space, as given per local_map_value_(inn|out)er

space_value(dof_value, node_weight, ...)

Assembles the world-space value of the function space :param - dof_value: node value in the degrees-of-freedom basis :param - node_weight: weight associated to the node, as given per the basis space :param - local_value_map: data encoding local transformation from node space to world space, as given per local_map_value_(inn|out)er

trace()

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

local_value_map_inner

local_value_map_outer

name

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

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

LocalValueMap#

alias of float

property name#
node_positions(out=None)[source]#
Parameters:

out (array | None)

Return type:

array

make_field(space_partition=None)[source]#
Parameters:

space_partition (SpacePartition | None)

Return type:

wp._src.fem.NodalField

trace()[source]#
Return type:

CollocatedFunctionSpace

local_value_map_inner = <Function CollocatedFunctionSpace__local_value_map_inner(elt_arg: typing.Any, element_index: int, element_coords: vec3f)>#
Parameters:
  • elt_arg (Any)

  • element_index (int)

  • element_coords (vec3f)

local_value_map_outer = <Function CollocatedFunctionSpace__local_value_map_outer(elt_arg: typing.Any, element_index: int, element_coords: vec3f)>#
Parameters:
  • elt_arg (Any)

  • element_index (int)

  • element_coords (vec3f)