MultiMeshFunction¶
-
class
dolfin.cpp.function.MultiMeshFunction(*args)¶ Bases:
dolfin.cpp.common.VariableThis class represents a function on a cut and composite finite element function space (
MultiMesh) defined on one or more possibly intersecting meshes.Create
MultiMeshfunction on givenMultiMeshfunction 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<) –
-
assign_part()¶ Assign
Functionto part of a mesh Arguments a (int) Part mesh assigned to V (Function) The vectorParameters: - a (std::size_t) –
- Function & v (const) –
Return type: void
-
copy(deepcopy=False)¶ Return a copy of itself
- Arguments
- deepcopy (bool)
- If false (default) the dof vector is shared.
- Returns
- _MultiMeshFunction_
- The MultiMeshFunction
-
eval()¶ Evaluate at given point in given cell in given part Arguments values (
Array<double>) The values at the point. x (Array<double>) The coordinates of the point. cell (ufc::cell) The cell which contains the given point.Parameters: - double > & values (Array<) –
- Array< double > & x (const) –
- part (std::size_t) –
- ufc::cell & cell (const) –
Return type: void
-
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 iParameters: i (std::size_t) – Return type: std::shared_ptr< const Function >
-
restrict()¶ Restrict function to local cell in given part (compute expansion coefficients w) Arguments w (list of doubles) Expansion coefficients. element (
FiniteElement) The element. part (std::size_t) The mesh part dolfin_cell (Cell) The cell. ufc_cell (ufc::cell). The ufc::cell.Parameters: - * w (double) –
- FiniteElement & element (const) –
- part (std::size_t) –
- Cell & dolfin_cell (const) –
- double * coordinate_dofs (const) –
- ufc::cell & ufc_cell (const) –
Return type: void
-
restrict_as_ufc_function()¶ Restrict as
UFCfunction (by calling eval)Parameters: - * w (double) –
- FiniteElement & element (const) –
- part (std::size_t) –
- Cell & dolfin_cell (const) –
- double * coordinate_dofs (const) –
- ufc::cell & ufc_cell (const) –
Return type: void
-
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 >