10 #ifdef MOOSE_MFEM_ENABLED 23 params.
addClassDescription(
"Class to construct an MFEMSubMesh formed from the subspace of the " 24 "parent mesh restricted to the set of user-specified boundaries.");
25 params.
addParam<BoundaryName>(
"submesh_boundary",
"Name to assign submesh boundary.");
38 _submesh = std::make_shared<mfem::ParSubMesh>(
40 _submesh->attribute_sets.attr_sets =
getMesh().bdr_attribute_sets.attr_sets;
43 _submesh->bdr_attribute_sets.SetAttributeSet(
44 getParam<BoundaryName>(
"submesh_boundary"),
45 mfem::Array<int>({
getMesh().bdr_attributes.Max() + 1}));
Constructs and stores an mfem::ParSubMesh object as as a restriction of the parent mesh to the set of...
const mfem::Array< int > & getBoundaryAttributes()
const mfem::ParMesh & getMesh()
static InputParameters validParams()
static InputParameters validParams()
MFEMBoundarySubMesh(const InputParameters ¶meters)
static InputParameters validParams()
Base class for construction of a mfem::ParSubMesh object.
registerMooseObject("MooseApp", MFEMBoundarySubMesh)
virtual void buildSubMesh() override
Constructs the submesh.
Base class for construction of an object that is restricted to a subset of boundaries of the problem ...
bool isParamSetByUser(const std::string &name) const
Test if the supplied parameter is set by a user, as opposed to not set or set to default.
std::shared_ptr< mfem::ParSubMesh > _submesh
Stores the constructed submesh.