modelStaticPipe

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. The flow regime is steady state.

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
Modelica.SIunits.PressureDifferencedp_small0.01
Geometry
Modelica.SIunits.AreaAInner cross section area
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

Contents

NameDescription
Medium