modelRequirement

Example for Requirement (Property shall not be Violated)

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Using the Requirement block as

results in

simulation result

and gives the following output to the output window:

Requirements violated (1 of 3):
    (R_violated at 1.5 s): Input gives a violated requirement

Requirements untested (1 of 3):
    (R_Undecided): Input gives an undecided requirement

Requirements satisfied (1 of 3):
    (R_Satisfied): Input gives a satisfied requirement

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.BooleanTablecheck
Modelica_Requirements.Sources.PropertyConstantpropertyConstant
Modelica_Requirements.Verify.PrintViolationsprintViolations
Modelica_Requirements.Verify.RequirementR_violated
Modelica_Requirements.Verify.RequirementR_Satisfied
Modelica_Requirements.Verify.RequirementR_Undecided
Modelica_Requirements.LogicalBlocks.BooleanToPropertyBtoP1
Modelica_Requirements.ChecksInFixedWindow.Duringduring1