SmootherControl

The SmootherControl is a controller that smooths the input signal using a moving average technique.

It receives an "input" value and stores it into a vector of size "n_points". When the vector reaches its maximum capacity (n_points), the oldest value (first element) is removed, and the current input is added to the end of the vector. Then it calculates the average of the values stored in the vector. The value of the output data is computed as:

output=1s(v)Σi=1s(v)vis(v)Noutput = \frac{1}{s(v)} \Sigma^{s(v)}_{i=1} v_i\\ \\ s(v) \leq N

where vv is the vector containing the input values, s(v)s(v) is the current size of the vector, and NN is the maximum size of the vector, defined by "n_points".

Input Parameters

  • inputControl data value to smooth.

    C++ Type:std::string

    Unit:(no unit assumed)

    Controllable:No

    Description:Control data value to smooth.

  • n_pointsThe number of points to use in the moving average.

    C++ Type:unsigned int

    Unit:(no unit assumed)

    Controllable:No

    Description:The number of points to use in the moving average.

Required Parameters

  • depends_onThe Controls that this control relies upon (i.e. must execute before this one)

    C++ Type:std::vector<std::string>

    Unit:(no unit assumed)

    Controllable:No

    Description:The Controls that this control relies upon (i.e. must execute before this one)

Optional Parameters

  • control_tagsAdds user-defined labels for accessing object parameters via control logic.

    C++ Type:std::vector<std::string>

    Unit:(no unit assumed)

    Controllable:No

    Description:Adds user-defined labels for accessing object parameters via control logic.

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Unit:(no unit assumed)

    Controllable:No

    Description:Set the enabled status of the MooseObject.

  • implicitTrueDetermines whether this object is calculated using an implicit or explicit form

    Default:True

    C++ Type:bool

    Unit:(no unit assumed)

    Controllable:No

    Description:Determines whether this object is calculated using an implicit or explicit form

Advanced Parameters