MPS block
Requirements.Examples.BackupPowerSupply.Components.MPS
ยท source
Requirements for Main Power Supply (MPS) defined in graphical form
Extends Requirements.Interfaces.PartialEnvironment
Requirements for the Main Power Supply (MPS) of the EDF Backup Power Supply benchmark, defined in graphical form. The FORM-L formulation of the benchmark is kept as a comment in the class. The block extends PartialEnvironment.
Inputs: the voltage MPSVoltage (V), and the Boolean status signals On and
Available of the MPS. Outputs: the events eLoss (rising edge of not Available)
and eRestore (rising edge of Available).
Requirements (Set 1, voltage and On/Off):
- R1: MPS CAN be declared Off when the voltage gets below 170 V (WhenRising: Off at the instant the voltage falls below 170 V).
- R2: MPS MUST be declared Off when the voltage gets below 160 V (During: Off while the voltage is below 160 V).
- R3: MPS CAN be declared On again when the voltage gets above 200 V (WhenRising).
- R4: MPS MUST be declared On again when the voltage gets above 210 V (During).
Requirements (Set 2, availability):
- R5: MPS CAN be declared Unavailable when it has been Off for more than 4 consecutive seconds (DelayedRising) or for more than 4 accumulated seconds during any 10 s window (MinAccumulatedDuration2).
- R6: the same with 6 s: then MPS MUST be declared Unavailable.
- R7: MPS CAN be declared Available again when On for more than 8 consecutive seconds (checked at the instant Available becomes true).
- R8: MPS MUST be declared Available again when On for more than 10 consecutive seconds.
The block is used in MainPowerSupplyRequirements, which drives its inputs with tables.
Components and variables
| Name | Type | Description |
|---|---|---|
MPSVoltage | Modelica.Blocks.Interfaces.RealInput | Voltage of MPS |
On | Modelica.Blocks.Interfaces.BooleanInput | = true, if MPS is on |
Available | Modelica.Blocks.Interfaces.BooleanInput | = true, if MPS is available |
eLoss | Requirements.Interfaces.EventOutput | Signals that the MPS has transited from available to unavailable |
eRestore | Requirements.Interfaces.EventOutput | Signals that the MPS has transited from unavailable to available |
Off | Modelica.Blocks.MathBoolean.Not | = true, if MPS is not on |
R1 | Verify.Requirement | Requirement R1: Off is true when the voltage falls below 170 V |
R2 | Verify.Requirement | Requirement R2: Off is true while the voltage is below 160 V |
R3 | Verify.Requirement | Requirement R3: On is true when the voltage rises above 200 V |
R4 | Verify.Requirement | Requirement R4: On is true while the voltage is above 210 V |
Unavailable | Modelica.Blocks.MathBoolean.Not | = true, if MPS is not available |
duringAny1 | LogicalBlocks.DelayedRising | = true, when MPS has been Off for more than 4 consecutive seconds |
duringAcc1 | ChecksInSlidingWindow.MinAccumulatedDuration2 | = true, when MPS has been Off for more than 4 accumulated seconds during any 10 seconds time window |
or1 | Modelica.Blocks.Logical.Or | = true, when MPS has been Off for more than 4 consecutive or 4 accumulated seconds in a 10 s window |
R5 | Verify.Requirement | Requirement R5: Unavailable is true when the 4 s Off condition becomes true |
duringAny2 | LogicalBlocks.DelayedRising | = true, when MPS has been Off for more than 6 consecutive seconds |
duringAcc2 | ChecksInSlidingWindow.MinAccumulatedDuration2 | = true, when MPS has been Off for more than 6 accumulated seconds during any 10 seconds time window |
or2 | Modelica.Blocks.Logical.Or | = true, when MPS has been Off for more than 6 consecutive or 6 accumulated seconds in a 10 s window |
during3 | ChecksInFixedWindow.During | Checks that Unavailable is true while the 6 s Off condition holds |
R6 | Verify.Requirement | Requirement R6: Unavailable is true while the 6 s Off condition holds |
duringAny3 | LogicalBlocks.DelayedRising | = true, when MPS has been On for more than 8 consecutive seconds |
R7 | Verify.Requirement | Requirement R7: when MPS becomes Available, it has been On for more than 8 consecutive seconds |
duringAny4 | LogicalBlocks.DelayedRising | = true, when MPS has been On for more than 10 consecutive seconds |
during4 | ChecksInFixedWindow.During | Checks that Available is true while MPS has been On for more than 10 consecutive seconds |
R8 | Verify.Requirement | Requirement R8: Available is true while MPS has been On for more than 10 consecutive seconds |
edge1 | Modelica.Blocks.Logical.Edge | Rising edge of Unavailable (loss of availability) |
edge2 | Modelica.Blocks.Logical.Edge | Rising edge of Available (restoration of availability) |
whenRising1 | ChecksInFixedWindow.WhenRising | Checks that Off is true when the voltage falls below 170 V |
expr1 | Sources.BooleanExpression | = true, if the voltage is below 170 V |
during1 | ChecksInFixedWindow.During | Checks that Off is true while the voltage is below 160 V |
expr2 | Sources.BooleanExpression | = true, if the voltage is below 160 V |
whenRising2 | ChecksInFixedWindow.WhenRising | Checks that On is true when the voltage rises above 200 V |
expr3 | Sources.BooleanExpression | = true, if the voltage is above 200 V |
during2 | ChecksInFixedWindow.During | Checks that On is true while the voltage is above 210 V |
expr4 | Sources.BooleanExpression | = true, if the voltage is above 210 V |
whenRising3 | ChecksInFixedWindow.WhenRising | Checks that Unavailable is true when the 4 s Off condition becomes true |
whenRising4 | ChecksInFixedWindow.WhenRising | Checks that MPS has been On for more than 8 s when it becomes Available |