MultiMeshForm

class dolfin.cpp.fem.MultiMeshForm(*args)

Bases: object

This 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 MultiMesh form.

Return type:void
clear()

Clear MultiMesh form.

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:MultiMeshFunctionSpace Function space shared pointer.
multimesh()

Extract common multimesh from form

Return type:std::shared_ptr< const MultiMesh >
Returns:MultiMesh The 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 MultiMesh Coefficients.

Return type:std::map< std::size_t, std::shared_ptr< const MultiMeshFunction > >
num_parts()

Return the number of forms (parts) of the MultiMesh form

Return type:std::size_t
Returns:std::size_t The number of forms (parts) of the MultiMesh form.
part()

Return form (part) number i

Parameters:i (std::size_t) –
Return type:std::shared_ptr< const Form >
Returns:Form Form (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()

Set MultiMeshCoeeficient.

Parameters:
  • i (std::size_t) –
  • const MultiMeshFunction > coefficient (std::shared_ptr<) –
Return type:

void

thisown

The membership flag