BuildSysPro.IBPSA.Utilities.Math.Functions.smoothLimit

# .BuildSysPro.IBPSA.Utilities.Math.Functions.smoothLimit

Once continuously differentiable approximation to the limit function

## 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 IBPSA.Utilities.Math.Examples.SmoothMin.

#### Interface

>     function smoothLimit
>       extends Modelica.Icons.Function;
>       input Real x "Variable";
>       input Real l "Low limit";
>       input Real u "Upper limit";
>       input Real deltaX "Width of transition interval";
>       output Real y "Result";
>     end smoothLimit;

## Revisions

- March 12, 2015, by Filip Jorissen:
  Added documentation reference demonstrating overshoot.
- February 5, 2015, by Filip Jorissen:
  Added `smoothOrder = 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.

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos