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

LinearTimeTable

Parameters

TypeNameDefaultDescription
TableDataDefinition
BooleantableOnFiletrue= true, if table is defined on file or in function usertab (combiTimeTable.tableOnFile)
Real[:,:]tablefill(0.0, 2, 2)Table matrix (time = first column; e.g., table=[0, 0; 1, 1; 2, 4]) (combiTimeTable.table)
StringtableName"NoName"Table name on file or in function usertab (see docu) (combiTimeTable.tableName)
StringfileNameURImodelSettings.exogenousDataFileURIURI for the exogenous data file
BooleanverboseReadtrue= true, if info message that file is loading is to be printed (combiTimeTable.verboseRead)
TableDataInterpretation
Integer[:]columns2:size(table, 2)Columns of table to be interpolated (combiTimeTable.columns)
SmoothnesssmoothnessSmoothness.LinearSegmentsSmoothness of table interpolation (combiTimeTable.smoothness)
ExtrapolationextrapolationExtrapolation.LastTwoPointsExtrapolation of data outside the definition range (combiTimeTable.extrapolation)
TimetimeScale1Time scale of first table column (combiTimeTable.timeScale)
Real[:]offset{0}Offsets of output signals (combiTimeTable.offset)
TimestartTime0Output = offset for time < startTime (combiTimeTable.startTime)
TimeshiftTimestartTimeShift time of first table column (combiTimeTable.shiftTime)
TimeEventstimeEventsTimeEvents.AlwaysTime event handling of table interpolation (combiTimeTable.timeEvents)
BooleanverboseExtrapolationfalse= true, if warning messages are to be printed if time is outside the table definition range (combiTimeTable.verboseExtrapolation)

Components

TypeNameDefaultDescription
RealOutputySingle Output
RealMultiOutputy_noutOutput vector
ModelSettingsmodelSettings