functionlimitBySform
Returns a S-shaped transition
Extends from Modelica.Icons.Function (Icon for functions).
Information
Syntax
y = Functions.limitBySform(x_min, x_max, y_min, y_max, x);
Description
A smooth transition between points (x_min, y_min) and (x_max, y_max). The transition is done in such a way that the 1st function's derivative is continuous for all x. The higher derivatives are, in contrast, discontinuous at input points.
The figure below shows the function y and its 1st derivative dy/dx for the following input: x_max = -0.4, x_min = 0.6, y_max = 1.4, y_min = 1.2.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x_min | Abscissa for y_min | |
| Real | x_max | Abscissa for y_max | |
| Real | y_min | First value of y | |
| Real | y_max | Second value of y | |
| Real | x | Current abscissa value |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | Current ordinate |
Revisions
Developed 2010 at the DLR Institute of System Dynamics and Control