Twice Lipschitz continuously differentiable approximation to the
Heaviside(.,.)
function.
Function is derived from a quintic polynomial going through (0,0) and (1,1),
with zero first and second order derivatives at those points.
See Example
Buildings.Utilities.Math.Examples.SmoothHeaviside.
function smoothHeaviside extends Modelica.Icons.Function; input Real x "Argument"; input Real delta(min = Modelica.Constants.eps) "Parameter used for scaling"; output Real y "Result"; end smoothHeaviside;
delta.min
attribute to guard against division by zero.spliceFunction
with regStep
.
This is for
issue 300.
smoothOrder = 1
.