modelLookupFunctions
Showcase of lookup-functions
Extends from Icons.Example (Icon for an example).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
This example demonstrates the use of parametric lookup and table functions in models and may serve as a showcase. While table functions are still frequently used, the advantage of parametric functions is their smoothness—at least in the relevant range—and the better calibration/identification options.
See also
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | slope1To50 | 2 | Slope parameter (general) |
| Real | slope | slope1To50 | Determines the gradient of the curve (Janoschek and S-Shaped) |
| Real | slopeUpTo1 | 0.5 | Slope parameter (0< slope <= 1) (concaveLookupPosisitve) |
| Real | interceptUpward | 0. | Value of y when input is zero or less (y0) for upward sloping functions |
| Real | interceptDownward | 2. | Value of y when input is zero or less (y0) for downward sloping functions |
| Real | upperBound | 2 | Upper asymptote for u <= 0 (upperBound > lowerBound) (Janoschek and S-Shaped) |
| Real | lowerBound | 0 | Lower asymptote for u -> infinity (Janoschek) |
| Real | x_ref | 1 | x-value for point of inflection(>0) (Janoschek) |
| Real | y_ref | 1 | y-value for point of inflection(lowerBound < y_ref < upperBound) (Janoschek) |
| Real[:,:] | table | {{0, 0}, {2, 4}, {4, 6}, {6, 8}} | Table matrix (grid = first column; e.g., table=[0,2]) (combiTable1D.table) (tableFunction.table) |
| Modelica.Blocks.Types.Smoothness | smoothness | Modelica.Blocks.Types.Smoothness.LinearSegments | Smoothness of table interpolation (tableFunction.smoothness) |
| Modelica.Blocks.Types.Extrapolation | extrapolation | Modelica.Blocks.Types.Extrapolation.HoldLastPoint | Extrapolation of data outside the definition range (combiTable.extrapolation) (tableFunction.extrapolation) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| ModelOutput | modelOutput | The main model output |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ModelSettings | modelSettings | ||
| InformationSources.RampInput | '0..10' | Ramp from 0 to 10 in 10 units of time | |
| InformationSources.RampInput | '-5..5' | Ramp from -5 to 5 in 10 units of time |
Contents
| Name | Description |
|---|---|
| Main Output |
Revisions
- Modified simulation plots in v2.0.0.