TankRequirements block
Requirements.Examples.SimplePumpingSystem.Components.Checks.TankRequirements
ยท source
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 thanlimDuration(default 300 s). DelayedRising becomes true oncelevel < limLevelhas held forlimDuration, 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
| Name | Type | Description |
|---|---|---|
levelMax parameter | SI.Height | Maximum allowed level |
levelMin parameter | SI.Height | Minimum allowed level |
limLevel parameter | SI.Height | Level cannot be lower as LimLevel for more as LimDuration |
limDuration parameter | SI.Time | Maximum allowed duration for LimLevel |
Inputs
| Name | Type | Description |
|---|---|---|
observation input | Records.Tank | Observation variables record from a tank |
Components and variables
| Name | Type | Description |
|---|---|---|
not1 | Modelica.Blocks.MathBoolean.Not | True unless the level has been below limLevel for longer than limDuration |
R_InBand | Requirements.Verify.BooleanRequirement | Requirement: the tank level is within [levelMin, levelMax] |
R_LimLevel | Requirements.Verify.BooleanRequirement | Requirement: the tank level is not below limLevel for longer than limDuration |
o_level | Sources.RealExpression | Observed tank level |
band1 | LogicalBlocks.WithinBand | True while the level is within [levelMin, levelMax] |
delayedRising1 | LogicalBlocks.DelayedRising | True once the level has been below limLevel for longer than limDuration |