modelCombiTable2DExtra
Altered CombiTable2D with the option to not extrapolate
Extends from Modelica.Blocks.Interfaces.SI2SO (2 Single Input / 1 Single Output continuous control block).
Information
As the standard model for two dimensional tables (Modelica.Blocks.Tables.CombiTable2D) does not allow extrapolation to be disabled, this models presents a work around. Using a simple limiter, extrapolation can be switched on or off.
See Modelica.Blocks.Tables.CombiTable2D for further information on the used tables.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | extrapolation | true | False to hold last value |
| Modelica.Blocks.Types.Smoothness | smoothness | Modelica.Blocks.Types.Smoothness.LinearSegments | Smoothness of table interpolation |
| Real[:,:] | table | [0, 0] | Table matrix (grid u1 = first column, grid u2 = first row; e.g., table=[0,0;0,1]) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u1 (from SI2SO) | Connector of Real input signal 1 | |
| RealInput | u2 (from SI2SO) | Connector of Real input signal 2 | |
| RealOutput | y (from SI2SO) | Connector of Real output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Tables.CombiTable2Ds | combiTable2D | ||
| Modelica.Blocks.Nonlinear.Limiter | limiter1 | ||
| Modelica.Blocks.Nonlinear.Limiter | limiter2 | ||
| Modelica.Blocks.Routing.RealPassThrough | realPassThrough2 | ||
| Modelica.Blocks.Routing.RealPassThrough | realPassThrough1 |
Revisions
-
November 26, 2018 by Fabian Wüllhorst:
First implementation (see issue #577)