modelCompressorBase

Gas compressor
Diagram of CompressorBase

Extends from ThermoPower.Icons.Gas.Compressor.

Information

This is the base model for a compressor, including the interface and all equations except the actual computation of the performance characteristics. Reverse flow conditions are not supported.

This model does not include any shaft inertia by itself; if that is needed, connect a Modelica.Mechanics.Rotational.Inertia model to one of the shaft connectors.

As a base-model, it can be used both for axial and centrifugal compressors.

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 calculate the enthalpy of the outgoing gas:

  • explicitIsentropicEnthalpy = true: the isentropic enthalpy hout_iso is calculated by the Medium.isentropicEnthalpy function.
  • explicitIsentropicEnthalpy = false: the isentropic enthalpy is obtained by equating the specific entropy of the inlet gas gas_in and of a fictitious gas state gas_iso, with the same pressure of the outgoing gas; both are computed with the function Medium.specificEntropy.

Parameters

TypeNameDefaultDescription
BooleanexplicitIsentropicEnthalpytrueisentropicEnthalpy function used
SI.PerUniteta_mech0.98mechanical efficiency
Medium.TemperatureTdes_ininlet design temperature
BooleanallowFlowReversalsystem.allowFlowReversal= true to allow flow reversal, false restricts to design direction
Initialisation
Medium.AbsolutePressurepstart_ininlet start pressure
Medium.AbsolutePressurepstart_outoutlet start pressure
Medium.TemperatureTstart_inTdes_ininlet start temperature
Medium.TemperatureTstart_outoutlet start temperature
Medium.MassFraction[Medium.nX]XstartMedium.reference_Xstart gas composition

Connectors

TypeNameDefaultDescription
FlangeAinlet
FlangeBoutlet
Modelica.Mechanics.Rotational.Interfaces.Flange_ashaft_a
Modelica.Mechanics.Rotational.Interfaces.Flange_bshaft_b

Components

TypeNameDefaultDescription
ThermoPower.SystemsystemSystem wide properties
Medium.BasePropertiesgas_in
Medium.BasePropertiesgas_iso
Medium.SpecificEnthalpyhout_isoOutlet isentropic enthalpy
Medium.SpecificEnthalpyhoutOutlet enthaply
Medium.SpecificEntropys_inInlet specific entropy
Medium.AbsolutePressurepoutOutlet pressure
Medium.MassFlowRatewGas flow rate
SI.Anglephishaft rotation angle
SI.AngularVelocityomegashaft angular velocity
SI.Torquetaunet torque acting on the compressor
SI.PerUnitetaisentropic efficiency
SI.PerUnitPRpressure ratio

Contents

NameDescription
Medium

Revisions