https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CumulativeTimeAverageFunctorAux.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#pragma once
11
12#include "AuxKernel.h"
13
34{
35public:
37
39
40 virtual void timestepSetup() override;
41
42protected:
43 virtual Real computeValue() override;
44
47 enum class Scheme
48 {
51 };
52
55
58
60 const Real _start_time;
61
64
66 bool & _averaging;
68 Real & _t_start;
69};
OutputTools< Real >::VariableValue VariableValue
Definition MooseTypes.h:348
Running (time-weighted) mean of a functor (FE, FV or linear FV variable, or any functor) over [t_star...
const VariableValue & _mean_old
Value of the average at the previous time step.
virtual Real computeValue() override
Compute and return the value of the aux variable.
Scheme
Quadratures of the time integral of the functor over a time step, in the order of the time_integratio...
const Real _start_time
Time at which averaging starts.
virtual void timestepSetup() override
Gets called at the beginning of the timestep before this object is asked to do its job.
Real & _t_start
Beginning of the averaging interval, never earlier than start_time.
const Scheme _scheme
Quadrature of the time integral of the functor over a time step.
const Moose::Functor< Real > & _functor
Quantity being averaged.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...