modelGenericDataTable

Parameterized version of MSL's CombiTimeTable. See Examples.Basics.GenericTable_How_to for explanation

Extends from TransiEnt.Basics.Icons.Model (Icon for models).

Information

1. Purpose of model

Generates an output from any data table.

2. Level of detail, physical effects considered, and physical insight

(Description)

3. Limits of validity

(Description)

4. Interfaces

Modelica RealOutput: y[MSL_combiTimeTable.nout]

Modelica RealOutput: y1

5. Nomenclature

(no elements)

6. Governing Equations

(no equations)

7. Remarks for Usage

MSL_combiTimetable from MSL is used. Standard setting for timeEvents is changed from 'Always' to 'AtDiscontinuities' to avoid unnecessary events.

8. Validation

(no validation or testing necessary)

9. References

(none)

10. Version History

Model modified by Oliver Schülting (oliver.schuelting@tuhh.de) on Feb 2020: changed standard MSL-setting for timeEvents

Parameters

TypeNameDefaultDescription
Stringcomplete_relative_pathFunctions.fullPathName(Modelica.Utilities.System.getEnvironmentVariable(environment_variable_name) + relativepath)
StringgenericFileNameif use_absolute_path then absolute_path else complete_relative_path
Basics
StringtableName"default"Table name on file or in function usertab (see docu)
Booleanmultiple_outputsfalseIf set true multiple outputs are enabled (but useage of MultiSum block will fail)
Integer[:]columns2:size(MSL_combiTimeTable.table, 2)columns of table to be interpolated (*** has to be modified before usage! ***)
Booleanchange_of_signfalseChange sign of output signal relative to table data
Data location
DataPrivacydatasourceDataPrivacy.isPublicSource of table data
Stringenvironment_variable_nameif datasource == DataPrivacy.isPublic then Types.PUBLIC_DATA else Types.PRIVATE_DATA
Stringrelativepath""Path relative to source directory
Booleanuse_absolute_pathfalseShould only be used for testing purposes
Stringabsolute_path""
Advanced › table data interpretation
Realconstantfactor1.0Multiply output with constant factor
Modelica.Blocks.Types.SmoothnesssmoothnesssimCenter.tableInterpolationSmoothnessSmoothness of table interpolation
Modelica.Blocks.Types.ExtrapolationextrapolationModelica.Blocks.Types.Extrapolation.LastTwoPointsExtrapolation of data outside the definition range
Real[:]offset{0}Offsets of output signals
SI.TimestartTime0
Table data interpretation
Modelica.Units.SI.TimeshiftTimestartTimeShift time of first table column
Modelica.Blocks.Types.TimeEventstimeEventsModelica.Blocks.Types.TimeEvents.AtDiscontinuitiesTime event handling of table interpolation

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutput[MSL_combiTimeTable.nout]y
Modelica.Blocks.Interfaces.RealOutputy1

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
Modelica.Blocks.Sources.CombiTimeTableMSL_combiTimeTable
Modelica.Blocks.Math.Gain[MSL_combiTimeTable.nout]sign_changer