modelPressDrop

Pressure drop for gas flows

Extends from Icons.Gas.Tube.

Information

The pressure drop across the inlet and outlet connectors is computed according to a turbulent friction model, i.e. is proportional to the squared velocity of the fluid. The friction coefficient can be specified directly, or by giving an operating point, or as a multiple of the kinetic pressure. The correction coefficient Kfc can be used to modify the friction coefficient, e.g. to fit some experimental operating point.

A small linear pressure drop is added to avoid numerical singularities at low or zero flowrate. The wnom parameter must be always specified; the additional linear pressure drop is such that it is equal to the turbulent pressure drop when the flowrate is equal to wnf*wnom (the default value is 1% of the nominal flowrate).

Modelling options

The actual gas used in the component is determined by the replaceable Medium package. In the case of multiple component, variable composition gases, the start composition is given by Xstart, whose default value is Medium.reference_X.

The following options are available to specify the friction coefficient:

  • FFtype = 0: the hydraulic friction coefficient Kf is used directly.
  • FFtype = 1: the hydraulic friction coefficient is specified by the nominal operating point (wnom,dpnom, rhonom).
  • FFtype = 2: the pressure drop is K times the kinetic pressure.

Parameters

TypeNameDefaultDescription
Medium.MassFlowRatewnomNominal mass flowrate
SI.PressureDifferencedpnomNominal pressure drop
ThermoPower.Choices.PressDrop.FFtypesFFtypeThermoPower.Choices.PressDrop.FFtypes.KfFriction factor type
RealKf0Hydraulic resistance coefficient (DP = Kf*w^2/rho)
Medium.Densityrhonom0Nominal density
SI.PerUnitK0Kinetic resistance coefficient (DP=K*rho*velocity2/2)
SI.AreaA0Cross-section
SI.PerUnitwnf0.01Fraction of nominal flow rate at which linear friction equals turbulent friction
SI.PerUnitKfc1Friction factor correction coefficient
RealKf_aActual hydraulic resistance coefficient
BooleanallowFlowReversalsystem.allowFlowReversal= true to allow flow reversal, false restricts to design direction
Initialisation
Medium.AbsolutePressurepstart101325Start pressure value
Medium.TemperatureTstart300Start temperature value
Medium.MassFraction[Medium.nX]XstartMedium.reference_XStart gas composition

Connectors

TypeNameDefaultDescription
FlangeAinlet
FlangeBoutlet

Components

TypeNameDefaultDescription
Medium.BasePropertiesgas
ThermoPower.SystemsystemSystem wide properties
Medium.MassFlowRatewMass flow rate in the inlet
Medium.AbsolutePressurepinInlet pressure
Medium.AbsolutePressurepoutOutlet pressure
SI.PressureDifferencedpPressure drop

Contents

NameDescription
Medium
squareReg

Revisions