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 #include "MFEMAuxKernel.h"
14 
22 {
23 public:
25 
27 
28  virtual ~MFEMScalarTimeAverageAux() override = default;
29 
31  virtual void execute() override;
32 
33 protected:
35  const VariableName _source_var_name;
37  mfem::Coefficient & _source_var_coefficient;
39  mfem::Coefficient & _result_var_coefficient;
41  mfem::ParGridFunction _average_var;
43  const Real & _skip;
45  const Real & _time;
47  const Real & _dt;
48 };
49 
50 #endif
MFEMScalarTimeAverageAux(const InputParameters &parameters)
const Real & _skip
Time before the averaging starts.
virtual void execute() override
Computes the auxvariable.
mfem::Coefficient & _result_var_coefficient
Reference to result gridfunction coefficient.
virtual ~MFEMScalarTimeAverageAux() override=default
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:127
const Real & _dt
Time step size.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Class to construct an auxiliary solver used to update an auxvariable.
Definition: MFEMAuxKernel.h:20
const Real & _time
The current time.
AuxKernel to compute a running time average of an MFEMVariable 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.
mfem::Coefficient & _source_var_coefficient
Reference to source gridfunction coefficient.
const VariableName _source_var_name
Name of source MFEMVariable to take the time average of.