10 #ifdef MOOSE_MFEM_ENABLED 22 "Calculates the divergence of an H(div) conforming RT source variable and stores the result" 23 " on an L2 conforming result auxvariable");
25 "Vector H(div) MFEMVariable to take the divergence of.");
26 params.
addParam<mfem::real_t>(
"scale_factor", 1.0,
"Factor to scale result auxvariable by.");
32 _source_var_name(getParam<VariableName>(
"source")),
33 _source_var(*getMFEMProblem().getProblemData().gridfunctions.Get(_source_var_name)),
34 _scale_factor(getParam<mfem::real_t>(
"scale_factor")),
35 _div(_source_var.ParFESpace(), _result_var.ParFESpace())
static InputParameters validParams()
mfem::common::ParDiscreteDivOperator _div
Divergence operator.
MFEMDivAux(const InputParameters ¶meters)
virtual void execute() override
Computes the auxvariable.
Class to set an L2 auxvariable to be the divergence of an H(div) vector variable. ...
mfem::ParGridFunction & _result_var
Reference to result gridfunction.
const mfem::real_t _scale_factor
Scalar factor to multiply the result by.
Class to construct an auxiliary solver used to update an auxvariable.
registerMooseObject("MooseApp", MFEMDivAux)
static InputParameters validParams()
const mfem::ParGridFunction & _source_var
Reference to source gridfunction.