blockSMTH1

First-order exponential smoothing

Information

This is a first-order exponential smoothing function. It describes the smoothing of information flows.

In engineering terms, this would be called a first-order low-pass filter with the transfer function:

G(s) = 1/(tau*s + 1)

and the time constant

tau = averaging_time.

The initial value of the output can be set. By default, it assumes a value 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.Level1aSmooth_of_Input
SystemDynamics.Rates.Rate_1Change_in_Smooth
SystemDynamics.Sources.Sourcesource
SystemDynamics.Functions.Utilities.Change_In_Smoothchange_in_smooth