https://mooseframework.inl.gov
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 {
24 public:
26 
28 
29  virtual ~MFEMScalarTimeAverageAux() override = default;
30 
32  virtual void execute() override;
33 
34 protected:
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
MFEMScalarTimeAverageAux(const InputParameters &parameters)
const Real & _skip
Time before the averaging starts.
virtual void execute() override
Computes the auxvariable.
mfem::Coefficient & _result_coefficient
Reference to result gridfunction coefficient.
virtual ~MFEMScalarTimeAverageAux() override=default
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
const Real & _dt
Time step size.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
mfem::Coefficient & _source_coefficient
Reference to source coefficient.
Class to construct an auxiliary solver used to update a real auxvariable.
Definition: MFEMAuxKernel.h:20
const Real & _time
The current time.
AuxKernel to compute a running time average of a scalar coefficient using a linear blend...
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
mfem::ParGridFunction _average_var
Placeholder gridfunction to avoid read/write aliasing during projection.