# SubMesh¶

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

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”.

• SubMesh(mesh, sub_domain)

Create subset of given mesh marked by sub domain

• SubMesh(mesh, sub_domains, sub_domain)

Create subset of given mesh marked by mesh function

• SubMesh(mesh, sub_domain)

Create subset of given mesh from stored MeshValueCollection

thisown

The membership flag

ufl_cell()

Returns the ufl cell of the mesh.

The cell corresponds to the topological dimension of the mesh.

ufl_domain()

Returns the ufl Domain corresponding to the mesh.

ufl_id()

Returns an id that UFL can use to decide if two objects are the same.