MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
submesh_utils.hpp File Reference

Go to the source code of this file.

Classes

struct  mfem::SubMeshUtils::UniqueIndexGenerator
 Convenience object to create unique indices. More...
 

Namespaces

namespace  mfem
 
namespace  mfem::SubMeshUtils
 

Functions

bool mfem::SubMeshUtils::ElementHasAttribute (const Element &el, const Array< int > &attributes)
 Given an element el and a list of attributes, determine if that element is in at least one attribute of attributes.
 
std::tuple< Array< int >, Array< int > > mfem::SubMeshUtils::AddElementsToMesh (const Mesh &parent, Mesh &mesh, const Array< int > &attributes, bool from_boundary=false)
 Given a Mesh parent and another Mesh mesh using the list of attributes in attributes, this function adds matching elements with those attributes from parent to mesh.
 
Array< int > mfem::SubMeshUtils::BuildFaceMap (const Mesh &parent, const Mesh &mesh, const Array< int > &parent_element_ids)
 Given two meshes that have a parent to SubMesh relationship create a face map, using a SubMesh to parent Mesh element id map.
 
void mfem::SubMeshUtils::BuildVdofToVdofMap (const FiniteElementSpace &subfes, const FiniteElementSpace &parentfes, const SubMesh::From &from, const Array< int > &parent_element_ids, Array< int > &vdof_to_vdof_map)
 Build the vdof to vdof mapping between two FiniteElementSpace objects.
 
template<class T , class RT = decltype(std::declval<T>().GetParent())>
RT mfem::SubMeshUtils::GetRootParent (const T &m)
 Identify the root parent of a given SubMesh.