FunctionSpaceBase¶
-
class
dolfin.functions.functionspace.FunctionSpaceBase(mesh, element, constrained_domain=None)¶ Bases:
dolfin.cpp.function.FunctionSpaceBase class for all function spaces.
Create function space on given mesh for given finite element.
- Arguments
- mesh
- A
Mesh - element
- A
(UFL) FiniteElement
-
cell()¶ Return the UFL cell.
-
collapse(collapsed_dofs=False)¶ Collapse a subspace and return a new function space and a map from new to old dofs
- Arguments
- collapsed_dofs (bool)
- Return the map from new to old dofs
- Returns
- _FunctionSpace_
- The new function space.
- dict
- The map from new to old dofs (optional)
-
dolfin_element()¶ Return the DOLFIN element.
-
extract_sub_space(component)¶ Extract subspace for component
- Arguments
- component (numpy.array(uint))
- The component.
- Returns
- _FunctionSpace_
- The subspace.
-
num_sub_spaces()¶ Return the number of sub spaces
-
split()¶ Split a mixed functionspace into its sub spaces
-
sub(i)¶ Return the i:th cpp.SubSpace
-
ufl_element()¶ Return the UFL element.