modelSMTH3

Third-order exponential smoothing

Information

This is a third-order exponential smoothing function.

In engineering terms, this would be called a third-order low-pass filter consisting of three first-order low-pass filters placed in series. The third-order filter is characterized by the transfer function:

G(s) = (1/(tau*s + 1))^3.

Each first-order filter has a time constants of:

tau = averaging_time/3.

The initial values of the outputs of each of the three first-order filters can be set. However, they can only be set together, i.e., only one parameter is provided for all three of them. By default, they assume values of zero.

Parameters

TypeNameDefaultDescription
Realaveraging_time1Averaging time
Realsmooth_init0Initial value of smoothed variable

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputuInput variable
Modelica.Blocks.Interfaces.RealOutputyOutput variable

Components

TypeNameDefaultDescription
Levels.Level1aSmooth1
Rates.Rate_1Change_in_Smooth1
Sources.Sourcesource
Utilities.change_in_smoothch_in_smooth1
Levels.Level1aSmooth2
Rates.Rate_1Change_in_Smooth2
Sources.Sourcesource1
Utilities.change_in_smoothch_in_smooth2
Levels.Level1aSmooth3
Rates.Rate_1Change_in_Smooth3
Sources.Sourcesource2
Utilities.change_in_smoothch_in_smooth3