18 params.
addRequiredParam<std::string>(
"input",
"Control data value to smooth.");
20 "The number of points to use in the moving average.");
22 "with a user-specified number of points to average. "
23 "The output control value is named 'name:value', "
24 "where 'name' is the name of the control object.");
30 _input(getControlData<Real>(
"input")),
31 _n_points(getParam<unsigned
int>(
"n_points")),
32 _output(declareComponentControlData<Real>(
"value")),
33 _values(declareRestartableData<
std::vector<Real>>(
"values"))
const ExecFlagType EXEC_TIMESTEP_BEGIN
registerMooseObject("ThermalHydraulicsApp", SmootherControl)
void ErrorVector unsigned int
FEProblemBase & _fe_problem
const ExecFlagType & getCurrentExecuteOnFlag() 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()
SmootherControl(const InputParameters ¶meters)
const Real & _input
Input data.
static InputParameters validParams()