SubMesh.h

Note

The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.

class SubMesh

Parent class(es)

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(const Mesh &mesh, const SubDomain &sub_domain)

Create subset of given mesh marked by sub domain

SubMesh(const Mesh &mesh, const MeshFunction<std::size_t> &sub_domains, std::size_t sub_domain)

Create subset of given mesh marked by mesh function

SubMesh(const Mesh &mesh, std::size_t sub_domain)

Create subset of given mesh from stored MeshValueCollection

void init(const Mesh &mesh, const std::vector<std::size_t> &sub_domains, std::size_t sub_domain)

Create sub mesh