CheckPumpingSystem model

Requirements.Examples.SimplePumpingSystem.CheckPumpingSystem  ยท source

Icon of CheckPumpingSystem

Check model PumpingSystem

Extends Modelica.Icons.Example, Requirements.Examples.SimplePumpingSystem.Components.PumpingSystem

Example that checks the requirements of the drinking water pumping system PumpingSystem, which this model extends. When the users' valve opens at t = 200 s, the on-off controller turns the pump on and off to keep the reservoir level around 2 m. The following requirement blocks observe the plant:

The observation records are built at the call site with explicit record constructors (see the revisions). Simulate for 2000 s; the inner PrintViolations block (with evaluationTime = 2000 s) prints the violated, untested and satisfied requirements at the end of the run and writes them to CheckPumpingSystem_log.txt and CheckPumpingSystem_log.html.

Revisions

DateDescription
Sept. 14, 2026The observation records are built with explicit record constructors from reservoir, pumps, source and sink, which are no longer passed to the binding functions themselves (a Dymola extension; the record cast of the Modelica Language Specification, section 12.6.1, is implemented by Dymola alone). The source and sink observations use the Source record constructor directly: OpenModelica 1.27 returns zeros from a function whose result is a record with an array component when the call has parameter variability, as a fixed boundary's pressures have (H. Tummescheit, Model Based Innovation LLC)

Components and variables

NameTypeDescription
printViolations innerVerify.PrintViolationsPrints the requirement verdicts and writes the log files at the end of the simulation
tankRequirementsSimplePumpingSystem.Components.Checks.TankRequirementsLevel requirements of the reservoir
pumpRequirementsSimplePumpingSystem.Components.Checks.PumpRequirementsSpeed and cavitation requirements of the pumps
sourceRequirements1Components.Checks.SourceRequirementsCavitation requirements at the ports of the source
sourceRequirements2Components.Checks.SourceRequirementsCavitation requirements at the ports of the sink