https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SmootherControl.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 "THMControl.h"
13
21{
22public:
24
25 virtual void execute();
27
28protected:
30 const Real & _input;
32 const unsigned int _n_points;
34 Real & _output;
36 std::vector<Real> & _values;
37};
const InputParameters & parameters() const
Computes a moving average value of the input control with a user-specified number of points to averag...
const unsigned int _n_points
The number of points to use in the moving average.
Real & _output
Output control value.
std::vector< Real > & _values
Vector to store values.
static InputParameters validParams()
virtual void execute()
const Real & _input
Input data.