blockTableFunctionVector
Extends from Interfaces.PartialConverters.MIMO_nin (Converter with multiple inputs and outputs of dimensions nin), Icons.InterpolationTable (Icon for table functions).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
This converter uses the Modelica CombiTable format to read in a 1-D table function from file. For more explanation regarding the 1-D Modelica CombiTable interpolation see Modelica.Blocks.Tables.CombiTable1Dv.
Notes
The Modelica CombiTable format can be generated by Wolfram Mathematica using Export[]:
Export[ filename, { {"TableName1", table1}, {"TableName2", table2}, ... }, "MCTT" ]
where table1, table2, ... are 2-dimensional arrays. By default all lookup data are assumed to be included in a single file whose name is given by the global parameter lookupDataFileURI.
See also
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Structural Parameters | |||
| Integer | nin (from MIMO_nin) | 2 | Number of input and output signals |
| TableDataDefinition | |||
| Boolean | tableOnFile | false | = true, if table is defined on file or in function usertab (combiTable1D.tableOnFile) |
| Real[:,:] | table | fill(0.0, 2, 2) | Table matrix (combiTable1D.table) |
| 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 = lookupDataFileURI) |
| Boolean | verboseRead | true | = true, if info message that file is loading is to be printed (combiTable1D.verboseRead) |
| TableDataInterpretation | |||
| Smoothness | smoothness | Smoothness.LinearSegments | Smoothness of table interpolation |
| Integer | columns | fill(2, nin) | Columns of table to be interpolated (length must be equal to length of input and output vectors) |
| Extrapolation | extrapolation | Extrapolation.LastTwoPoints | Extrapolation of data outside the definition range (combiTable1D.extrapolation) |
| Boolean | verboseExtrapolation | false | = true, if warning messages are to be printed if table input is outside the definition range (combiTable1D.verboseExtrapolation) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Connectors.RealMultiInput[nin] | u (from MIMO_nin) | Input |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealMultiOutput | y (from MIMO_nin) |
Revisions
- Class adapted to compliance with MSL 4.0.0 in v2.2.