class dolfin.cpp.mesh.SubMesh(*args)

Bases: dolfin.cpp.mesh.Mesh

A SubMesh is a mesh defined as a subset of a given mesh. It provides a convenient way to create matching meshes for multiphysics applications by creating meshes for subdomains as subsets of a single global mesh. A mapping from the vertices of the sub mesh to the vertices of the parent mesh is stored as the mesh data named “parent_vertex_indices”.

Create subset of given mesh from stored MeshValueCollection .

  • Mesh & mesh (const) –
  • sub_domain (std::size_t) –

The membership flag