modelDynamicPipe

Information

StaticPipe

This components allows to model the mass flow rate through a pipe from a pressure difference at boundaries and the pressure loss coefficient ksi.

Compared with a static pipe, the following assumptions are performed:

  1. The mass balance is assumed quasi-static
  2. Density is assumed constant along the exchanger
    • Mass conservation within the control volume is not respected
    • Change of kinetic energy from contraction or expansion in neglected
    • Change of temperature from kinetic energy variation is neglected

ksi expresses how many dynamic pressure is lost. It is assumed to be constant and therefore independent of the flow regime.

The mass flow rate relation derives:

Where:

  • dp is the pressure difference between port_a.p and port_b.p
  • ksi is the pressure loss coefficient
  • d is the upstream density
  • Vel is fluid velocity
  • m_flow is the mass flow rate through the pipe
  • A is cross section of the pipe

To avoid infinite derivative at dp=0, The square root is replaced by the function regRoot2 of the MSL that replace the square root by a polynomial expression to insure a finite derivative. The threshold to switch between the polynom and the square root is abs(dp≤0.1) Pa

Parameters

TypeNameDefaultDescription
IntegerN3Number of discrete layers
DynamicsenergyDynamicsDynamics.SteadyStateInitialFormulation of energy balance
Modelica.SIunits.TemperatureT_start293.15Start value for temperature, if energyDynamics = FixedInitial
DynamicsmassDynamicsDynamics.SteadyStateInitialFormulation of mass balance
Modelica.SIunits.Temperature[:]X_startMedium.X_defaultStart value for mass fractions, if massDynamics = FixedInitial
Geometry
Modelica.SIunits.AreaAInner cross section area
Modelica.SIunits.LengthLPipe length
Flow
Realksi1dynamic pressure loss

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a
Modelica.Fluid.Interfaces.FluidPort_bport_b

Components

TypeNameDefaultDescription
Modelica.SIunits.Densityd_aDensity if flow positive at port_a
Modelica.SIunits.Densityd_bDensity if flow positive at port_b
Modelica.SIunits.PressureDifferencedp
Modelica.SIunits.VelocityVel
Modelica.SIunits.MassFlowRatem_flowAperture flow kg/s
TAeZoSysPro.PDE.Transport.UpwindFirstOrder[2]transport

Contents

NameDescription
Medium