MultiMeshForm¶
-
class
dolfin.cpp.fem.MultiMeshForm(*args)¶ Bases:
objectThis class represents a variational form on a cut and composite finite element function space (
MultiMesh) defined on one or more possibly intersecting meshes.Create empty bilinear multimesh variational form.
Parameters: - const MultiMeshFunctionSpace > function_space_0 (std::shared_ptr<) –
- const MultiMeshFunctionSpace > function_space_1 (std::shared_ptr<) –
-
add()¶ Add form (shared pointer version)
Parameters: const Form > form (std::shared_ptr<) – ( Form) The form.Return type: void
-
build()¶ Build
MultiMeshform.Return type: void
-
clear()¶ Clear
MultiMeshform.Return type: void
-
function_space()¶ Return function space for given argument
Parameters: i (std::size_t) – (std::size_t) Index Return type: std::shared_ptr< const MultiMeshFunctionSpace > Returns: MultiMeshFunctionSpaceFunctionspace shared pointer.
-
multimesh()¶ Extract common multimesh from form
Return type: std::shared_ptr< const MultiMesh > Returns: MultiMeshThe mesh.
-
multimesh_coefficient()¶ Get one multimesh coefficient.
Parameters: i (std::size_t) – Return type: std::shared_ptr< const MultiMeshFunction >
-
multimesh_coefficient_keys()¶ Get multimesh coefficient keys.
Return type: std::vector< std::size_t >
-
multimesh_coefficients()¶ Get all
MultiMeshCoefficients.Return type: std::map< std::size_t, std::shared_ptr< const MultiMeshFunction > >
-
num_parts()¶ Return the number of forms (parts) of the
MultiMeshformReturn type: std::size_t Returns: std::size_t The number of forms (parts) of the MultiMeshform.
-
part()¶ Return form (part) number i
Parameters: i (std::size_t) – Return type: std::shared_ptr< const Form > Returns: FormForm(part) number i.
-
rank()¶ Return rank of form (bilinear form = 2, linear form = 1, functional = 0, etc)
Return type: std::size_t Returns: std::size_t The rank of the form.
-
set_multimesh_coefficient()¶ SetMultiMeshCoeeficient.Parameters: - i (std::size_t) –
- const MultiMeshFunction > coefficient (std::shared_ptr<) –
Return type: void
-
thisown¶ The membership flag