modelDP

Lumped, 3-terms pressure drop model

Extends from ThermoCycle.Icons.Water.PressDrop.

Information

The DP model is a lumped model that computes a punctual pressure drop.

The assumptions for this model are:

  • Incompressible fluid for computing the pressure drop
  • No thermal energy losses to the ambient


The total pressure drop is computed as the sum of three different terms: a constant pressure difference (e.g. due to the static pressure head), a linear pressure drop (e.g. due to friction in a laminar flow) and a quadratic pressure drop (typical of turbulent flow):

Modelling options

In the General tab the following options are availabe:

  • Medium: the user has the possibility to easly switch Medium.
  • UseNom: If true, use the nominal conditions defined in the Nominal Conditions tab to compute the pressure drop characteristic (i.e. the parameters h, K and A)

In the Nominal condition tab the following option is availabe:

  • use_rho_nom: If true, the density is considered constant during the whole simulation and equal to the nominal value.

In the Initialization tab the following options are availabe:

  • constinit: If true, the pressure drop is considered constant at the beginning of the simulation to avoid oscillations.
  • UseHomotopy: If true, the homotopy function is used to set the pressure drop to zero in the first initialization.


The parameter DELTAp_0 defines a limitation of the pressure drop below which the quadratic expression is replaced by a third order polynomial expression to avoid the non-physical infinite derivative at DELTAp=0.

Parameters

TypeNameDefaultDescription
BooleanUseNomfalseUse Nominal conditions to compute pressure drop characteristics
Modelica.SIunits.Lengthh0Static fluid head (dp = h * rho * g)
Realk0Coefficient for linear pressure drop (dp = k * V_dot)
Modelica.SIunits.AreaA10e-5Valve throat area for quadratic pressure drop (dp = 1/A?*M_dot?/(2*rho))
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 pressure
Modelica.SIunits.TemperatureT_nom423.15Nominal temperature
Modelica.SIunits.Densityrho_nomMedium.density_pT(p_nom, T_nom)Nominal density
Modelica.SIunits.PressureDELTAp_stat_nom0Nominal static pressure drop
Modelica.SIunits.PressureDELTAp_lin_nom0Nominal linear pressure drop
Modelica.SIunits.PressureDELTAp_quad_nom0Nominal quadratic 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.PressureDELTAp_startDELTAp_stat_nom + DELTAp_lin_nom + DELTAp_quad_nomStart Value for the pressure drop
Modelica.SIunits.Timet_init10if constinit is true, time during which the pressure drop is set to the constant value DELTAp_start
Booleanconstinitfalseif true, sets the pressure drop to a constant value at the beginning of the simulation in order to avoid oscillations
BooleanUseHomotopyfalseif true, uses homotopy to set the pressure drop to zero in the first initialization

Components

TypeNameDefaultDescription
Modelica.SIunits.Lengthh_ok
Realk_ok
Modelica.SIunits.AreaA_ok
Modelica.SIunits.Densityd_fl
Medium.Densityrho
Modelica.SIunits.Pressurep_fl
Medium.SpecificEnthalpyh_fl
Modelica.SIunits.PressureDELTAp
Modelica.SIunits.PressureDELTAp_quadQuadratic pressure drop
Modelica.SIunits.PressureDELTAp_linLinear pressure drop
Modelica.SIunits.PressureDELTAp_statStatic pressure drop
Modelica.SIunits.MassFlowRateMdot
Modelica.SIunits.Timet_change5time during which the transition of the weighting factor function happens
Modelica.SIunits.MassFlowRateMdot_0Nominal mass flow rate
Interfaces.Fluid.FlangeAInFlow
Interfaces.Fluid.FlangeBOutFlow

Contents

NameDescription
Medium