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

TypeNameDefaultDescription
BooleanextrapolationtrueFalse to hold last value
Modelica.Blocks.Types.SmoothnesssmoothnessModelica.Blocks.Types.Smoothness.LinearSegmentsSmoothness 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

TypeNameDefaultDescription
RealInputu1 (from SI2SO)Connector of Real input signal 1
RealInputu2 (from SI2SO)Connector of Real input signal 2
RealOutputy (from SI2SO)Connector of Real output signal

Components

TypeNameDefaultDescription
Modelica.Blocks.Tables.CombiTable2DscombiTable2D
Modelica.Blocks.Nonlinear.Limiterlimiter1
Modelica.Blocks.Nonlinear.Limiterlimiter2
Modelica.Blocks.Routing.RealPassThroughrealPassThrough2
Modelica.Blocks.Routing.RealPassThroughrealPassThrough1

Revisions

  • November 26, 2018  by Fabian Wüllhorst:
    First implementation (see issue #577)