WOLFRAM SYSTEM MODELER

AssertCondition

Assert that input u is true

Wolfram Language

In[1]:=
SystemModel["Modelica.Blocks.Logical.AssertCondition"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This block asserts that the Boolean input u is true. If u is false, the simulation will either abort with an error (if assertionLevel is set to error), or issue a warning and continue (if assertionLevel is set to warning). The message will be reported in either case. For further information, refer to the documentation of ModelicaReference.Operators.'assert()' – an operator which this block is based on.

Typically, this block is used by connecting a (possibly) time varying outside condition and the input u to abort the simulation if the condition fails.

Parameters (2)

message

Value: "Assert block failed"

Type: String

Description: Assertion message to be displayed if the input u is false; please adapt

assertionLevel

Value: AssertionLevel.error

Type: AssertionLevel

Description: Assertion level

Connectors (1)

u

Type: BooleanInput

Description: Connector of Boolean input signal