23 #include "libmesh/ignore_warnings.h" 25 #include "libmesh/restore_warnings.h" 63 std::unique_ptr<MooseMesh>
safeClone()
const override;
82 void displace(mfem::GridFunction
const & displacement);
114 inline const mfem::ParMesh &
unsigned int dimension() const override
Returns MeshBase::mesh_dimension(), (not MeshBase::spatial_dimension()!) of the underlying libMesh me...
bool isDistributedMesh() const override
Returns the final Mesh distribution type.
bool shouldDisplace() const
Returns true if mesh displacement is required.
std::optional< std::reference_wrapper< std::string const > > getMeshDisplacementVariable() const
Returns an optional reference to displacement variable name.
void uniformRefinement(mfem::Mesh &mesh, const unsigned int nref) const
Performs a uniform refinement on the chosen mesh nref times.
unsigned int spatialDimension() const override
Returns MeshBase::spatial_dimension.
std::optional< std::string > _mesh_displacement_variable
Holds name of variable used for mesh displacement, if set.
static InputParameters validParams()
void buildDummyMooseMesh()
Builds a placeholder mesh when no MOOSE mesh is required.
dof_id_type nActiveLocalElem() const override
void buildMesh() override
Build MFEM ParMesh and a placeholder MOOSE mesh.
std::unique_ptr< MooseMesh > safeClone() const override
Clones the mesh.
std::shared_ptr< mfem::ParMesh > getMFEMParMeshPtr()
Copy a shared_ptr to the mfem::ParMesh object.
SubdomainID nSubdomains() const override
MFEMMesh(const InputParameters ¶meters)
std::shared_ptr< mfem::ParMesh > _mfem_par_mesh
Smart pointers to mfem::ParMesh object.
mfem::ParMesh & getMFEMParMesh()
Accessors for the _mfem_par_mesh object.
void displace(mfem::GridFunction const &displacement)
Displace the nodes of the mesh by the given displacement.
const InputParameters & parameters() const
Get the parameters of the object.
dof_id_type nActiveElem() const override