MultiMeshFunction

class dolfin.cpp.function.MultiMeshFunction(*args)

Bases: dolfin.cpp.common.Variable

This class represents a function on a cut and composite finite element function space (MultiMesh ) defined on one or more possibly intersecting meshes.

Create MultiMesh function on given MultiMesh function space with a given vector (shared data) Warning: This constructor is intended for internal library use only Arguments V (MultiMeshFunctionSpace ) The multimesh function space. x (GenericVector ) The vector.

Parameters:
  • const MultiMeshFunctionSpace > V (std::shared_ptr<) –
  • GenericVector > x (std::shared_ptr<) –
copy(deepcopy=False)

Return a copy of itself

Arguments
deepcopy (bool)
If false (default) the dof vector is shared.
Returns
_MultiMeshFunction_
The MultiMeshFunction
function_space()

Return shared pointer to multi mesh function space Returns:cpp:any:MultiMeshFunctionSpace Return the shared pointer.

Return type:std::shared_ptr< const MultiMeshFunctionSpace >
part()

Return function (part) number i Returns:cpp:any:Function Function (part) number i

Parameters:i (std::size_t) –
Return type:std::shared_ptr< const Function >
thisown

The membership flag

vector()

Return vector of expansion coefficients (non-const version) Returns:cpp:any:GenericVector The vector of expansion coefficients.

Return type:std::shared_ptr< GenericVector >