10 #ifdef MOOSE_MFEM_ENABLED 22 "Calculates the sum of two variables sharing an FE space, each optionally scaled by a real " 23 "constant, and stores the result in a third.");
24 params.
addRequiredParam<VariableName>(
"first_source_variable",
"First variable to sum.");
25 params.
addRequiredParam<VariableName>(
"second_source_variable",
"Second variable to sum.");
27 "first_scale_factor", 1.0,
"Factor to scale the first variable by prior to sum.");
29 "second_scale_factor", 1.0,
"Factor to scale the second variable by prior to sum.");
35 _v1_var_name(getParam<VariableName>(
"first_source_variable")),
36 _v2_var_name(getParam<VariableName>(
"second_source_variable")),
37 _v1_var(*getMFEMProblem().getProblemData().gridfunctions.Get(_v1_var_name)),
38 _v2_var(*getMFEMProblem().getProblemData().gridfunctions.Get(_v2_var_name)),
39 _lambda1(getParam<mfem::real_t>(
"first_scale_factor")),
40 _lambda2(getParam<mfem::real_t>(
"second_scale_factor"))
const mfem::real_t _lambda2
registerMooseObject("MooseApp", MFEMSumAux)
MFEMSumAux(const InputParameters ¶meters)
virtual void execute() override
Execute method.
mfem::ParGridFunction & _result_var
Reference to result gridfunction.
Class to construct an auxiliary solver used to update an auxvariable.
const mfem::real_t _lambda1
static InputParameters validParams()
const mfem::ParGridFunction & _v1_var
static InputParameters validParams()
const mfem::ParGridFunction & _v2_var