MultiMeshFunctionSpace¶
-
class
dolfin.cpp.function.
MultiMeshFunctionSpace
¶ Bases:
dolfin.cpp.common.Variable
This class represents a function space on a multimesh. It may may be created from a set of standard function spaces by repeatedly calling add(), followed by a call to build(). Note that a multimesh function space is not useful and its data structures are empty until build() has been called.
Create empty multimesh function space
-
add
()¶ Overloaded versions
add(function_space)
Add function space (shared pointer version)
- Arguments
- function_space (
FunctionSpace
) The function space.
- function_space (
add(function_space)
Add function space (reference version)
- Arguments
- function_space (
FunctionSpace
) The function space.
- function_space (
-
build
()¶ Overloaded versions
build()
Build multimesh function space
build(multimesh, offsets)
Build multimesh function space. This function reuses an existing multimesh and uses offsets computed from the full function spaces on each part.
-
static
default_parameters
()¶ Default parameter values
-
dim
()¶ Return dimension of the multimesh function space
- Returns
- int
- The dimension of the multimesh function space.
-
dofmap
()¶ Return multimesh dofmap
- Returns
MultiMeshDofMap
- The dofmap.
-
multimesh
()¶ Return multimesh
- Returns
MultiMesh
- The multimesh.
-
num_parts
()¶ Return the number of function spaces (parts) of the multimesh function space
- Returns
- int
- The number of function spaces (parts) of the multimesh function space.
-
part
()¶ Return function space (part) number i
- Arguments
- i (int)
- The part number
- Returns
FunctionSpace
- Function space (part) number i
-
thisown
¶ The membership flag
-
view
()¶ Return view of multimesh function space for part number i. This function differs from the part() function in that it does not return the original function space for a part, but rather a view of the common multimesh function space (dofs global to the collection of parts).
- Arguments
- i (int)
- The part number
- Returns
FunctionSpace
- Function space (part) number i
-