20 params.
addClassDescription(
"Computes a moving average of the input control with a user-specified " 21 "number of points to average.");
23 params.
addRequiredParam<std::string>(
"input",
"Control data value to smooth.");
25 "The number of points to use in the moving average.");
32 _input(getChainControlData<
Real>(
"input")),
33 _n_points(getParam<unsigned
int>(
"n_points")),
34 _output(declareChainControlData<
Real>(
"value")),
35 _values(declareRestartableData<
std::vector<
Real>>(
"values")),
36 _previous_time(declareRestartableData<
Real>(
"previous_time"))
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether two variables are equal within an absolute tolerance.
Computes a moving average of the input control with a user-specified number of points to average...
auto max(const L &left, const R &right)
std::vector< Real > & _values
Vector to store values.
Real & _previous_time
Previous time for which value was cached.
static InputParameters validParams()
SmootherChainControl(const InputParameters ¶meters)
static InputParameters validParams()
registerMooseObject("MooseApp", SmootherChainControl)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real & _output
Output control value.
const Real & _input
Input data.
const unsigned int _n_points
The number of points to use in the moving average.
virtual void execute() override
Execute the control.
void executeInner()
Performs the main execution.
void ErrorVector unsigned int
Control that additionally provides the capability to produce/consume data values, to allow control op...