TankRequirements block

Requirements.Examples.SimplePumpingSystem.Components.Checks.TankRequirements  ยท source

Icon of TankRequirements

Requirements for a Tank

Extends Requirements.Interfaces.PartialRequirements

Requirements for a tank of the pumping system. The input observation is a Tank record with the tank level. Two requirements are checked:

  • R_InBand: the level stays within [levelMin, levelMax] (defaults 1.8 m and 2.21 m), checked with WithinBand.
  • R_LimLevel: the level is not below limLevel (default 2.0 m) for longer than limDuration (default 300 s). DelayedRising becomes true once level < limLevel has held for limDuration, and its negation is the checked property.

The block extends PartialRequirements; its parameter observationName names the observed tank and is shown in the icon.

Parameters

NameTypeDescription
levelMax parameterSI.HeightMaximum allowed level
levelMin parameterSI.HeightMinimum allowed level
limLevel parameterSI.HeightLevel cannot be lower as LimLevel for more as LimDuration
limDuration parameterSI.TimeMaximum allowed duration for LimLevel

Inputs

NameTypeDescription
observation inputRecords.TankObservation variables record from a tank

Components and variables

NameTypeDescription
not1Modelica.Blocks.MathBoolean.NotTrue unless the level has been below limLevel for longer than limDuration
R_InBandRequirements.Verify.BooleanRequirementRequirement: the tank level is within [levelMin, levelMax]
R_LimLevelRequirements.Verify.BooleanRequirementRequirement: the tank level is not below limLevel for longer than limDuration
o_levelSources.RealExpressionObserved tank level
band1LogicalBlocks.WithinBandTrue while the level is within [levelMin, levelMax]
delayedRising1LogicalBlocks.DelayedRisingTrue once the level has been below limLevel for longer than limDuration