10 #ifdef MOOSE_MFEM_ENABLED 15 #include "libmesh/ignore_warnings.h" 17 #include "libmesh/restore_warnings.h" 27 "The finite element space this variable is defined on.");
30 params.addClassDescription(
31 "Class for adding MFEM variables to the problem (`mfem::ParGridFunction`s).");
32 params.registerBase(
"MooseVariableBase");
33 params.addParam<VariableName>(
35 "Optional name to assign to the time derivative of the variable in transient problems.");
42 _gridfunction(buildGridFunction()),
43 _time_derivative_name(
44 isParamValid(
"time_derivative")
45 ? getParam<VariableName>(
"time_derivative")
47 getMFEMProblem().getProblemData().time_derivative_map.createTimeDerivativeName(
53 const std::shared_ptr<mfem::ParGridFunction>
static InputParameters validParams()
std::string name(const ElemQuality q)
const MFEMFESpace & _fespace
static InputParameters validParams()
registerMooseObject("MooseApp", MFEMVariable)
const std::shared_ptr< mfem::ParGridFunction > _gridfunction
Stores the constructed gridfunction.
Constructs and stores an mfem::ParGridFunction object.
MFEMVariable(const InputParameters ¶meters)
This class adds a getMFEMProblem method.
const std::shared_ptr< mfem::ParGridFunction > buildGridFunction()
Constructs the gridfunction.
Constructs and stores an mfem::ParFiniteElementSpace object.
static InputParameters validParams()
std::shared_ptr< mfem::ParFiniteElementSpace > getFESpace() const
Returns a shared pointer to the constructed fespace.