10 #ifdef MOOSE_MFEM_ENABLED 22 "Calculates a running time average of a scalar coefficient projected onto an auxvariable");
23 params.
addRequiredParam<MFEMScalarCoefficientName>(
"source",
"Scalar coefficient to average");
24 params.
addParam<mfem::real_t>(
"time_skip", 0.0,
"Time to skip before beginning the average");
31 _source_coefficient(getScalarCoefficient(
"source")),
32 _result_coefficient(getScalarCoefficientByName(_result_var_name)),
33 _average_var(_result_var.ParFESpace()),
34 _skip(getParam<
Real>(
"time_skip")),
35 _time(getMFEMProblem().time()),
36 _dt(getMFEMProblem().dt())
MFEMScalarTimeAverageAux(const InputParameters ¶meters)
const Real & _skip
Time before the averaging starts.
virtual void execute() override
Computes the auxvariable.
mfem::Coefficient & _result_coefficient
Reference to result gridfunction coefficient.
const Real & _dt
Time step size.
mfem::ParGridFunction & _result_var
Reference to result gridfunction.
mfem::Coefficient & _source_coefficient
Reference to source coefficient.
Class to construct an auxiliary solver used to update a real auxvariable.
const Real & _time
The current time.
static InputParameters validParams()
AuxKernel to compute a running time average of a scalar coefficient using a linear blend...
static InputParameters validParams()
registerMooseObject("MooseApp", MFEMScalarTimeAverageAux)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
mfem::ParGridFunction _average_var
Placeholder gridfunction to avoid read/write aliasing during projection.