warp.fem.make_collocated_function_space#
- warp.fem.make_collocated_function_space(
- basis_space,
- dtype=float,
- dof_mapper=None,
Constructs a function space from a scalar-valued basis space and a value type, such that all degrees of freedom of the value type are stored at each of the basis nodes.
- Parameters:
geo – the Geometry on which to build the space
dtype (type) – value type the function space. If
dof_mapperis provided, the value type from the DofMapper will be used instead.dof_mapper (DofMapper | None) – mapping from node degrees of freedom to function values, defaults to Identity. Useful for reduced coordinates, e.g.
SymmetricTensorMappermaps 2x2 (resp 3x3) symmetric tensors to 3 (resp 6) degrees of freedom.basis_space (BasisSpace)
- Returns:
the constructed function space
- Return type: