modelSMTH1
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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | averaging_time | 1 | Averaging time |
| Real | smooth_init | 0 | Initial value of smoothed variable |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | Input variable | |
| Modelica.Blocks.Interfaces.RealOutput | y | Output variable |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Levels.Level1a | Smooth_of_Input | ||
| Rates.Rate_1 | Change_in_Smooth | ||
| Sources.Source | source | ||
| Utilities.change_in_smooth | change_in_smooth |