modelLookup_TableOnFile
Table-based lookup given on file
Extends from Interfaces.PartialCLD.Lookup (Partial lookup for causal loop diagramming).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
Using the lookup converter →TableFunction the normalized current value of the stock, which is connected via the StockInfoInput connector, is used as input to an interpolation table (on file) to obtain the output y.
The value used for the normalization is a constant by default (referenceValue = 1); if hasConstantReference = false the optional input u is used instead.
Notes
- The reference value for normalization should be strictly positive; the divison for normalization is protected against divison by zero and will return zero in that case.
- Instead of using the current value of a connected stock, the input connector u can be used as basis by setting
hasStockInfoInput = false.
See also
Lookup_Table, Lookup_JPositive, Lookup_JNegative, Lookup_SPositive, Lookup_SNegative
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | pol (from Lookup) | "±" | Polarity |
| ReferenceType | referenceValue (from Lookup) | 1 | Constant reference value to normalize input |
| Structural Parameters | |||
| Boolean | hasConstantReference (from Lookup) | true | = true, if the reference value is given by a constant parameter |
| Boolean | hasStockInfoInput (from Lookup) | true | = true, if the input is given by the input connector u instead of stockInfoInput |
| TableDataDefinition | |||
| String | tableName | "NoName" | Name of the table in the file containing the data |
| String | fileNameURI | modelSettings.lookupDataFileURI | URI of the file to read the data from (default = modelSettings.lookupDataFileURI) |
| Boolean | verboseRead | true | = true, if info message that file is loading is to be printed |
| TableDataInterpretation | |||
| Smoothness | smoothness | Smoothness.LinearSegments | Smoothness of table interpolation |
| Extrapolation | extrapolation | Extrapolation.HoldLastPoint | Extrapolation of data outside the definition range |
| Boolean | verboseExtrapolation | false | = true, if warning messages are to be printed if table input is outside the definition range |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Connectors.StockInfoInput | stockInfoInput (from Lookup) | ||
| Connectors.RealInput | u_ref (from Lookup) | Reference value for stock | |
| Connectors.RealInput | u (from Lookup) | Input for lookup (optional) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from Lookup) | Output of output type | |
| ModelSettings | modelSetting |
Revisions
- Introduced in v2.0.0.