WOLFRAM SYSTEM MODELER

regSquare2_utility

Interpolating with two 3-order polynomials with a prescribed derivative at x=0<br><br>This class is declared protected in <a href="Modelica.Fluid.Utilities.regSquare2.html">Modelica.Fluid.Utilities.regSquare2</a>

Wolfram Language

In[1]:=
SystemModel["Modelica.Fluid.Utilities.regSquare2.regSquare2_utility"]
Out[1]:=

Syntax

y = regSquare2_utility(x, x1, k1, k2, use_yd0, yd0)

Inputs (6)

x

Type: Real

x1

Type: Real

Description: Approximation of function abs(x) < x1

k1

Type: Real

Description: y = (if x>=0 then k1 else -k2)*x*|x|; k1 >= k2

k2

Type: Real

Description: y = (if x>=0 then k1 else -k2)*x*|x|

use_yd0

Default Value: false

Type: Boolean

Description: = true, if yd0 shall be used

yd0

Default Value: 1

Type: Real

Description: Desired derivative at x=0: dy/dx = yd0

Outputs (1)

y

Type: Real