modelSinkPressure

Pressure sink for gas flows

Extends from Icons.Gas.SourceP.

Information

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 nominal gas composition is given by Xnom, whose default value is Medium.reference_X .

If R is set to zero, the pressure sink is ideal; otherwise, the inlet pressure increases proportionally to the outgoing flowrate.

If the in_p connector is wired, then the source pressure is given by the corresponding signal, otherwise it is fixed to p0.

If the in_T connector is wired, then the source temperature is given by the corresponding signal, otherwise it is fixed to T.

If the in_X connector is wired, then the source massfraction is given by the corresponding signal, otherwise it is fixed to Xnom.

Parameters

TypeNameDefaultDescription
Medium.AbsolutePressurep0101325Nominal pressure
Medium.TemperatureT300Nominal temperature
Medium.MassFraction[Medium.nX]XnomMedium.reference_XNominal gas composition
Units.HydraulicResistanceR0Hydraulic Resistance
BooleanallowFlowReversalsystem.allowFlowReversal= true to allow flow reversal, false restricts to design direction
External inputs
Booleanuse_in_p0falseUse connector input for the pressure
Booleanuse_in_TfalseUse connector input for the temperature
Booleanuse_in_XfalseUse connector input for the composition

Connectors

TypeNameDefaultDescription
FlangeAflange
Modelica.Blocks.Interfaces.RealInputin_p0
Modelica.Blocks.Interfaces.RealInputin_T
Modelica.Blocks.Interfaces.RealInput[Medium.nX]in_X

Components

TypeNameDefaultDescription
Medium.BasePropertiesgas
ThermoPower.SystemsystemSystem wide properties

Contents

NameDescription
Medium

Revisions

  • 19 Nov 2004 by Francesco Casella:
    Removed p0fix and Tfix and Xfix; the connection of external signals is now detected automatically.

  • Adapted to Modelica.Media
  • 1 Oct 2003 by Francesco Casella:
    First release.