108 return parent_element_ids_;
118 return parent_face_ids_;
128 return parent_edge_ids_;
138 return parent_face_ori_;
148 return parent_vertex_ids_;
159 return pe == -1 ? pe : parent_to_submesh_element_ids_[pe];
169 return pv == -1 ? pv : parent_to_submesh_vertex_ids_[pv];
179 return pe == -1 ? pe : parent_to_submesh_edge_ids_[pe];
189 return pf == -1 ? pf : parent_to_submesh_face_ids_[pf];
223 return dynamic_cast<const SubMesh *
>(m) !=
nullptr;
Class for grid function - Vector with associated FE space.
Array< int > attributes
A list of all unique element attributes used by the Mesh.
Class representing a Nonconformal SubMesh. This is only used by SubMesh.
Subdomain representation of a topological parent in another Mesh.
const Array< int > & GetParentElementIDMap() const
Get the parent element id map.
static SubMesh CreateFromBoundary(const Mesh &parent, const Array< int > &boundary_attributes)
Create a surface SubMesh from its parent.
const Array< int > & GetParentFaceIDMap() const
Get the face id map.
const Array< int > & GetParentVertexIDMap() const
Get the parent vertex id map.
static void Transfer(const GridFunction &src, GridFunction &dst)
Transfer the dofs of a GridFunction.
const Array< int > & GetParentEdgeIDMap() const
Get the edge id map.
int GetSubMeshFaceFromParent(int pf) const
Get the submesh face corresponding to a parent element. -1 == not present.
SubMesh & operator=(SubMesh &&)=default
SubMesh(SubMesh &&)=default
static SubMesh CreateFromDomain(const Mesh &parent, const Array< int > &domain_attributes)
Create a domain SubMesh from its parent.
From GetFrom() const
Get the From indicator.
int GetSubMeshEdgeFromParent(int pe) const
Get the submesh edge corresponding to a parent element. -1 == not present.
static TransferMap CreateTransferMap(const GridFunction &src, const GridFunction &dst)
Create a Transfer Map object.
int GetSubMeshElementFromParent(int pe) const
Get the submesh element corresponding to a parent element. -1 == not present.
const Array< int > & GetParentFaceOrientations() const
Get the relative face orientations.
static bool IsSubMesh(const Mesh *m)
Check if Mesh m is a SubMesh.
const Mesh * GetParent() const
Get the parent Mesh object.
int GetSubMeshVertexFromParent(int pv) const
Get the submesh vertex corresponding to a parent element. -1 == not present.
From
Indicator from which part of the parent Mesh the SubMesh is created.
TransferMap represents a mapping of degrees of freedom from a source GridFunction to a destination Gr...