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}));
registerMooseObject("MooseApp", MFEMBoundarySubMesh)
Base class for construction of an object that is restricted to a subset of boundaries of the problem ...
const mfem::Array< int > & getBoundaryAttributes()
const mfem::ParMesh & getMesh()
static InputParameters validParams()
Constructs and stores an mfem::ParSubMesh object as as a restriction of the parent mesh to the set of...
static InputParameters validParams()
virtual void buildSubMesh() override
Constructs the submesh.
MFEMBoundarySubMesh(const InputParameters ¶meters)
Base class for construction of a mfem::ParSubMesh object.
std::shared_ptr< mfem::ParSubMesh > _submesh
Stores the constructed submesh.
static InputParameters validParams()
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.