blockExogenousData
Reading external data from a file using Modelica's CombiTimeTable format (MCTT)
Extends from Interfaces.Basics.BaseConverter (Basic converter class), Icons.InformationSourceIndicator (Icon used to indicate external information).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
This block generates an output signal y_nout[:] (or y in case of a single output) by constant, linear or cubic Hermite spline interpolation in a table. The time points and function values are stored in a matrix table[i,j], where the first column table[:,1] contains the time points and the other columns contain the data to be interpolated. For more information → Modelica.Blocks.Sources.CombiTimeTable.
See also
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| TableDataDefinition | |||
| Boolean | tableOnFile | true | = true, if table is defined on file or in function usertab (combiTimeTable.tableOnFile) |
| Real[:,:] | table | fill(0.0, 2, 2) | Table matrix (time = first column; e.g., table=[0, 0; 1, 1; 2, 4]) (combiTimeTable.table) |
| String | tableName | "NoName" | Table name on file or in function usertab (see docu) (combiTimeTable.tableName) |
| String | fileNameURI | modelSettings.exogenousDataFileURI | URI for the exogenous data file |
| Boolean | verboseRead | true | = true, if info message that file is loading is to be printed (combiTimeTable.verboseRead) |
| TableDataInterpretation | |||
| Integer[:] | columns | 2:size(table, 2) | Columns of table to be interpolated (combiTimeTable.columns) |
| Smoothness | smoothness | Smoothness.LinearSegments | Smoothness of table interpolation (combiTimeTable.smoothness) |
| Extrapolation | extrapolation | Extrapolation.LastTwoPoints | Extrapolation of data outside the definition range (combiTimeTable.extrapolation) |
| Time | timeScale | 1 | Time scale of first table column (combiTimeTable.timeScale) |
| Real[:] | offset | {0} | Offsets of output signals (combiTimeTable.offset) |
| Time | startTime | 0 | Output = offset for time < startTime (combiTimeTable.startTime) |
| Time | shiftTime | startTime | Shift time of first table column (combiTimeTable.shiftTime) |
| TimeEvents | timeEvents | TimeEvents.Always | Time event handling of table interpolation (combiTimeTable.timeEvents) |
| Boolean | verboseExtrapolation | false | = true, if warning messages are to be printed if time is outside the table definition range (combiTimeTable.verboseExtrapolation) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y | Single Output | |
| RealMultiOutput | y_nout | Output vector | |
| ModelSettings | modelSettings |