blockTableFunctionVector

Table function for vector input and output using Modelica's CombiTable format

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

TableFunctionLinearTimeTable

Parameters

TypeNameDefaultDescription
Structural Parameters
Integernin (from MIMO_nin)2Number of input and output signals
TableDataDefinition
BooleantableOnFilefalse= true, if table is defined on file or in function usertab (combiTable1D.tableOnFile)
Real[:,:]tablefill(0.0, 2, 2)Table matrix (combiTable1D.table)
StringtableName"NoName"Name of the table in the file containing the data
StringfileNameURImodelSettings.lookupDataFileURIURI of the file to read the data from (default = lookupDataFileURI)
BooleanverboseReadtrue= true, if info message that file is loading is to be printed (combiTable1D.verboseRead)
TableDataInterpretation
SmoothnesssmoothnessSmoothness.LinearSegmentsSmoothness of table interpolation
Integercolumnsfill(2, nin)Columns of table to be interpolated (length must be equal to length of input and output vectors)
ExtrapolationextrapolationExtrapolation.LastTwoPointsExtrapolation of data outside the definition range (combiTable1D.extrapolation)
BooleanverboseExtrapolationfalse= true, if warning messages are to be printed if table input is outside the definition range (combiTable1D.verboseExtrapolation)

Connectors

TypeNameDefaultDescription
Connectors.RealMultiInput[nin]u (from MIMO_nin)Input

Components

TypeNameDefaultDescription
RealMultiOutputy (from MIMO_nin)

Revisions

  • Class adapted to compliance with MSL 4.0.0 in v2.2.