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

Converters.Lookup

Parameters

TypeNameDefaultDescription
Realslope1To502Slope parameter (general)
Realslopeslope1To50Determines the gradient of the curve (Janoschek and S-Shaped)
RealslopeUpTo10.5Slope parameter (0< slope <= 1) (concaveLookupPosisitve)
RealinterceptUpward0.Value of y when input is zero or less (y0) for upward sloping functions
RealinterceptDownward2.Value of y when input is zero or less (y0) for downward sloping functions
RealupperBound2Upper asymptote for u <= 0 (upperBound > lowerBound) (Janoschek and S-Shaped)
ReallowerBound0Lower asymptote for u -> infinity (Janoschek)
Realx_ref1x-value for point of inflection(>0) (Janoschek)
Realy_ref1y-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.SmoothnesssmoothnessModelica.Blocks.Types.Smoothness.LinearSegmentsSmoothness of table interpolation (tableFunction.smoothness)
Modelica.Blocks.Types.ExtrapolationextrapolationModelica.Blocks.Types.Extrapolation.HoldLastPointExtrapolation of data outside the definition range (combiTable.extrapolation) (tableFunction.extrapolation)

Connectors

TypeNameDefaultDescription
ModelOutputmodelOutputThe main model output

Components

TypeNameDefaultDescription
ModelSettingsmodelSettings
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

NameDescription
ModelOutputMain Output

Revisions

  • Modified simulation plots in v2.0.0.