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