modelValve

Valve model. Extends from ClaRa ValveVLE_L1

Extends from ClaRa.Components.VolumesValvesFittings.Valves.GenericValveVLE_L1 (Valve for VLE fluid flows with replaceable flow models), TransiEnt.Basics.Icons.Valve.

Information

Purpose of model

A model of a valve, which is used to model a pressure loss. The model uses a steady mass balance and a replaceable pressure loss model. No heat losses are considered, and therefore, the specific enthalpy doesn’t change over the valve. An optional input for the opening of the valve is available (0= completely closed, 1=open).

Level of detail, physical effects considered, and physical insight

static model of a valve. The level of detail depends on the chosen pressure loss model.

  • pressure loss
  • variable fluid properties

Limits of validity

Only valid for static issues.

Interfaces

Governing Equations

0=m_in+m_out

h_in=h_out

p_in-p_out=delta_p

delta_p is calculated according to the chosen pressure loss model and the opening of the valve

References

The model was extended from the ClaRa library.

Version History

Model documented by Jan Westphal (j.westphal@tuhh.de) in January 2025

Parameters

TypeNameDefaultDescription
BooleanshowExpertSummary (from GenericValveVLE_L1)simCenter.showExpertSummary|Summary and Visualisation||True, if expert summary should be applied
BooleanshowData (from GenericValveVLE_L1)true|Summary and Visualisation||True, if a data port containing p,T,h,s,m_flow shall be shown, else false
BooleanuseStabilisedMassFlow (from GenericValveVLE_L1)false|Expert Settings|Numerical Robustness|
Fundamental Definitions
TILMedia.VLEFluid.Types.BaseVLEFluidmedium (from GenericValveVLE_L1)simCenter.fluid1Medium in the component
BooleanuseHomotopy (from GenericValveVLE_L1)simCenter.useHomotopyTrue, if homotopy method is used during initialisation
BooleancheckValve (from GenericValveVLE_L1)falseTrue, if valve is check valve
Control Signals
BooleanopeningInputIsActive (from GenericValveVLE_L1)falseTrue, if a variable opening is used
Realopening_const_ (from GenericValveVLE_L1)1A constant opening: =1: open, =0: closed

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputopening_in (from GenericValveVLE_L1)opening_=1: completely open, =0: completely closed
ClaRa.Basics.Interfaces.FluidPortIninlet (from GenericValveVLE_L1)Inlet port
ClaRa.Basics.Interfaces.FluidPortOutoutlet (from GenericValveVLE_L1)Outlet port
Basics.Interfaces.EyeOuteye (from GenericValveVLE_L1)

Components

TypeNameDefaultDescription
Stringcomplexity (from ComplexityLevel)"??"
Basics.Units.TimeTau (from GenericValveVLE_L1)0.1Time Constant of Stabilisation
Realopening_leak_ (from GenericValveVLE_L1)0Leakage valve opening in p.u.
ClaRa.SimCentersimCenter (from GenericValveVLE_L1)
PressureLosspressureLoss (from GenericValveVLE_L1)
Summarysummary (from GenericValveVLE_L1)
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_phfluidOut (from GenericValveVLE_L1)
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_phfluidIn (from GenericValveVLE_L1)