blockSMTH3
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
| 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 |
|---|---|---|---|
| SystemDynamics.Levels.Level1a | Smooth1 | ||
| SystemDynamics.Rates.Rate_1 | Change_in_Smooth1 | ||
| SystemDynamics.Sources.Source | source | ||
| SystemDynamics.Functions.Utilities.Change_In_Smooth | ch_in_smooth1 | ||
| SystemDynamics.Levels.Level1a | Smooth2 | ||
| SystemDynamics.Rates.Rate_1 | Change_in_Smooth2 | ||
| SystemDynamics.Sources.Source | source1 | ||
| SystemDynamics.Functions.Utilities.Change_In_Smooth | ch_in_smooth2 | ||
| SystemDynamics.Levels.Level1a | Smooth3 | ||
| SystemDynamics.Rates.Rate_1 | Change_in_Smooth3 | ||
| SystemDynamics.Sources.Source | source2 | ||
| SystemDynamics.Functions.Utilities.Change_In_Smooth | ch_in_smooth3 |