functionsmoothLimit
Once continuously differentiable approximation to the limit function
Extends from Modelica.Icons.Function (Icon for functions).
Information
Once continuously differentiable approximation to the limit(.,.) function.
The output is bounded to be in [l, u].
Note that the limit need not be respected, such as illustrated in Buildings.Utilities.Math.Examples.SmoothMin.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Variable | |
| Real | l | Low limit | |
| Real | u | Upper limit | |
| Real | deltaX | Width of transition interval |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | Result |
Revisions
-
July 21, 2025 by Hongxiang Fu:
Made the function inlined.
This is for #4278. -
March 12, 2015, by Filip Jorissen:
Added documentation reference demonstrating overshoot. -
February 5, 2015, by Filip Jorissen:
AddedsmoothOrder = 1. -
Sept 1, 2010, by Michael Wetter:
Changed scaling to make sure that bounds are never violated. -
July 14, 2010, by Wangda Zuo, Michael Wetter:
First implementation.