modelRealPassThroughWithAssertion

Asserts Real input value while passing it through to Real output

Extends from Modelica.Blocks.Routing.RealPassThrough (Pass a Real signal through without modification).

Information

Asserts Real input value while passing it through to Real output.

Level of assertion message can be selected. Error will directly abort the simulation.

As during a period after initialization one might not want to assert the Real value, the parameter startTime can be set.
Use startTime = Modelica.Constants.inf to totally avoid assertion (functionality then is the same as in Modelica.Blocks.Routing.RealPassThrough).

Parameters

TypeNameDefaultDescription
RealminBoundMinimal value for the assertion boundary
RealmaxBoundMaximal value for the assertion boundary
Modelica.Units.SI.TimestartTime-Modelica.Constants.infTime after which assert statement is applied
AssertionLevelassertLevelAssertionLevel.errorLevel of assertion (built-in enumerator)

Connectors

TypeNameDefaultDescription
RealInputu (from SISO)Connector of Real input signal
RealOutputy (from SISO)Connector of Real output signal

Revisions

  • March 26, 2020 by Philipp Mehrfeld:
    First implementation. See #884.