https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMScalarTimeAverageAux.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#ifdef MOOSE_MFEM_ENABLED
11
12#pragma once
13
14#include "MFEMAuxKernel.h"
15
23{
24public:
26
28
29 virtual ~MFEMScalarTimeAverageAux() override = default;
30
32 virtual void execute() override;
33
34protected:
36 mfem::Coefficient & _source_coefficient;
38 mfem::Coefficient & _result_coefficient;
40 mfem::ParGridFunction _average_var;
42 const Real & _skip;
44 const Real & _time;
46 const Real & _dt;
47};
48
49#endif
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Class to construct an auxiliary solver used to update a real auxvariable.
AuxKernel to compute a running time average of a scalar coefficient using a linear blend.
mfem::Coefficient & _result_coefficient
Reference to result gridfunction coefficient.
const Real & _time
The current time.
mfem::Coefficient & _source_coefficient
Reference to source coefficient.
virtual ~MFEMScalarTimeAverageAux() override=default
const Real & _skip
Time before the averaging starts.
virtual void execute() override
Computes the auxvariable.
mfem::ParGridFunction _average_var
Placeholder gridfunction to avoid read/write aliasing during projection.
const Real & _dt
Time step size.
static InputParameters validParams()
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131