TimeTableGenerate a (possibly discontinuous) signal by linear interpolation in a table |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This block generates an output signal by linear 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 second column contains the data to be interpolated. The table interpolation has the following properties:
Example:
table = [0, 0; 1, 0; 1, 1; 2, 4; 3, 9; 4, 16]; If, e.g., time = 1.0, the output y = 0.0 (before event), 1.0 (after event) e.g., time = 1.5, the output y = 2.5, e.g., time = 2.0, the output y = 4.0, e.g., time = 5.0, the output y = 23.0 (i.e., extrapolation).
offset |
Value: 0 Type: Real Description: Offset of output signal y |
---|---|
startTime |
Value: 0 Type: Time (s) Description: Output y = offset for time < startTime |
table |
Value: fill(0.0, 0, 2) Type: Real[:,2] Description: Table matrix (time = first column; e.g., table=[0, 0; 1, 1; 2, 4]) |
timeScale |
Value: 1 Type: Time (s) Description: Time scale of first table column |
shiftTime |
Value: startTime Type: Time (s) Description: Shift time of first table column |
y |
Type: RealOutput Description: Connector of Real output signal |
---|
Modelica.Blocks.Examples Demonstrates the usage of blocks from Modelica.Blocks.Interaction.Show |
|
Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge H bridge DC/DC converter with DC drive |
|
Modelica.Magnetic.FluxTubes.Examples.Hysteresis Comparison of the different hysteresis models |
|
Modelica.Fluid.Examples.DrumBoiler Complete drum boiler model, including evaporator and supplementary components |
|
Modelica.Fluid.Examples.AST_BatchPlant.Test Tank with one time-varying top inlet mass flow rate and a bottom outlet into the ambient |