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
| Type | Name | Default | Description |
|---|---|---|---|
| String | complete_relative_path | Functions.fullPathName(Modelica.Utilities.System.getEnvironmentVariable(environment_variable_name) + relativepath) | |
| String | genericFileName | if use_absolute_path then absolute_path else complete_relative_path | |
| Basics | |||
| String | tableName | "default" | Table name on file or in function usertab (see docu) |
| Boolean | multiple_outputs | false | If set true multiple outputs are enabled (but useage of MultiSum block will fail) |
| Integer[:] | columns | 2:size(MSL_combiTimeTable.table, 2) | columns of table to be interpolated (*** has to be modified before usage! ***) |
| Boolean | change_of_sign | false | Change sign of output signal relative to table data |
| Data location | |||
| DataPrivacy | datasource | DataPrivacy.isPublic | Source of table data |
| String | environment_variable_name | if datasource == DataPrivacy.isPublic then Types.PUBLIC_DATA else Types.PRIVATE_DATA | |
| String | relativepath | "" | Path relative to source directory |
| Boolean | use_absolute_path | false | Should only be used for testing purposes |
| String | absolute_path | "" | |
| Advanced › table data interpretation | |||
| Real | constantfactor | 1.0 | Multiply output with constant factor |
| Modelica.Blocks.Types.Smoothness | smoothness | simCenter.tableInterpolationSmoothness | Smoothness of table interpolation |
| Modelica.Blocks.Types.Extrapolation | extrapolation | Modelica.Blocks.Types.Extrapolation.LastTwoPoints | Extrapolation of data outside the definition range |
| Real[:] | offset | {0} | Offsets of output signals |
| SI.Time | startTime | 0 | |
| Table data interpretation | |||
| Modelica.Units.SI.Time | shiftTime | startTime | Shift time of first table column |
| Modelica.Blocks.Types.TimeEvents | timeEvents | Modelica.Blocks.Types.TimeEvents.AtDiscontinuities | Time event handling of table interpolation |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput[MSL_combiTimeTable.nout] | y | ||
| Modelica.Blocks.Interfaces.RealOutput | y1 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.SimCenter | simCenter | ||
| Modelica.Blocks.Sources.CombiTimeTable | MSL_combiTimeTable | ||
| Modelica.Blocks.Math.Gain[MSL_combiTimeTable.nout] | sign_changer |