functionsmoothLimit

Once continuously differentiable approximation to the limit function

Extends from Modelica.Icons.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 Buildings.Utilities.Math.Examples.SmoothMin.

Inputs

TypeNameDefaultDescription
RealxVariable
ReallLow limit
RealuUpper limit
RealdeltaXWidth of transition interval

Outputs

TypeNameDefaultDescription
RealyResult

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:
    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.