blockSMTH3

Third-order exponential smoothing
Diagram of SMTH3

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
SystemDynamics.Levels.Level1aSmooth1
SystemDynamics.Rates.Rate_1Change_in_Smooth1
SystemDynamics.Sources.Sourcesource
SystemDynamics.Functions.Utilities.Change_In_Smoothch_in_smooth1
SystemDynamics.Levels.Level1aSmooth2
SystemDynamics.Rates.Rate_1Change_in_Smooth2
SystemDynamics.Sources.Sourcesource1
SystemDynamics.Functions.Utilities.Change_In_Smoothch_in_smooth2
SystemDynamics.Levels.Level1aSmooth3
SystemDynamics.Rates.Rate_1Change_in_Smooth3
SystemDynamics.Sources.Sourcesource2
SystemDynamics.Functions.Utilities.Change_In_Smoothch_in_smooth3