modelValveReferenceValues_Undirected

Test for Reference Values in Basic and Specific Valve in undirected flow

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

Information

This test model verifies the safeguards for the reference values dp_ref and rho_ref in BasicControlValve and SpecificValveType.

When a valve is parameterized using Kvs, Cvs_US, or Cvs_UK, the reference values must remain at their defaults:

  • dp_ref = 1 bar
  • rho_ref = 1000 kg/m3

The model contains correctly parameterized reference valves as well as valves with modified reference values. The latter use assertionLevel = AssertionLevel.warning, allowing the simulation to continue while demonstrating the corresponding assertion messages.

The test verifies that modifying dp_ref or rho_ref for standardized flow coefficients is detected, while valves using the default reference values do not trigger these assertions.

Components

TypeNameDefaultDescription
ThermofluidStream.DropOfCommonsdropOfCommons
Boundaries.BoundaryRearboundaryRear
ThermofluidStream.Undirected.FlowControl.BasicControlValvereference
Boundaries.BoundaryForeboundaryFore
Modelica.Blocks.Sources.Rampramp
Boundaries.BoundaryRearboundaryRear2
ThermofluidStream.Undirected.FlowControl.BasicControlValvedp_ref
Boundaries.BoundaryForeboundaryFore2
Boundaries.BoundaryRearboundaryRear3
ThermofluidStream.Undirected.FlowControl.BasicControlValverho_ref
Boundaries.BoundaryForeboundaryFore3
Modelica.Blocks.Sources.Constantconst2
Boundaries.BoundaryRearboundaryRear4
ThermofluidStream.Undirected.FlowControl.SpecificValveTypereference1
Boundaries.BoundaryForeboundaryFore4
Boundaries.BoundaryRearboundaryRear5
ThermofluidStream.Undirected.FlowControl.SpecificValveTypedp_ref1
Boundaries.BoundaryForeboundaryFore5
Boundaries.BoundaryRearboundaryRear1
ThermofluidStream.Undirected.FlowControl.SpecificValveTyperho_ref1
Boundaries.BoundaryForeboundaryFore1

Contents

NameDescription
medium