modelValve

Valve with incompressible flow hypothesis for the calculation of the pressure drop

Extends from ThermoCycle.Icons.Water.Valve.

Information

The Valve model represents the expansion of a fluid through a valve.

The assumptions for this model are:

  • No dynamics ( it is considered negligible when compared to the one characterizing the heat exchanger).
  • No ambient heat losses (the expansion is assumed isenthalpic)
  • Incompressible flow for computing the pressure drop
  • Quadratic pressure drop (turbulent flow)

Parameters

TypeNameDefaultDescription
BooleanUseNomfalseUse Nominal conditions to compute pressure drop characteristics
Modelica.SIunits.AreaAfull10e-5Cross-sectional area of the fully open valve
RealXopen1Valve opening if no external command is connected (0=fully closed; 1=fully open)
Modelica.SIunits.PressureDELTAp_0500Pressure drop below which a 3rd order interpolation is used for the computation of the flow rate in order to avoid infinite derivative at 0
Nominal Conditions
Modelica.SIunits.MassFlowRateMdot_nom0.1Nominal mass flow rate
Modelica.SIunits.Pressurep_nom1e5Nominal inlet pressure
Modelica.SIunits.TemperatureT_nom423.15Nominal inlet temperature
Modelica.SIunits.Densityrho_nomMedium.density_pTX(p_nom, T_nom, fill(0, 0))Nominal density
Modelica.SIunits.PressureDELTAp_nom0Nominal pressure drop
Booleanuse_rho_nomfalseUse the nominal density for the computation of the pressure drop (i.e it depends only on the flow rate)
Initialization
Modelica.SIunits.Timet_init10if constinit is true, time during which the pressure drop is set to the constant value DELTAp_nom
Booleanconstinitfalseif true, sets the pressure drop to a constant value at the beginning of the simulation in order to avoid oscillations

Components

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputcmd
Modelica.SIunits.AreaAValve throat area
Modelica.SIunits.PressureDELTAp
Modelica.SIunits.PressureDELTAp_bis
Modelica.SIunits.MassFlowRateMdot
Medium.ThermodynamicStatefluidState
Medium.DensityrhoInlet density
Modelica.SIunits.Timet_change5
ThermoCycle.Interfaces.Fluid.FlangeAInFlow
ThermoCycle.Interfaces.Fluid.FlangeBOutFlow

Contents

NameDescription
Medium