modelPartialCompressor

Partial model for compressor that contains basic definitions used in various compressor models

Information

This is a base model for simple compressor models that are used, for example, in close-loop systems like heat pumps or chillers.

Definitions needed for completion

Three definitions need to be added by an extending class using this component:

  • Redecleration of the model parCom.
  • Connection of parCom.heatPort with heatPort.
  • Connection of port_a and port_b with parCom.port_a and parCom.port_b.

The latter provides the possibility to add further components (e.g. pressure losses or heat transfers) located at the compressor's inlet and outlet.

Modeling approaches

This base model mainly consists of one sub-models and, therefore, please checkout this model for further information of underlying modeling approaches:

Parameters

TypeNameDefaultDescription
General › Geometry
Modelica.Units.SI.VolumeVDis13e-6Displacement volume of the compressor
Modelica.Units.SI.EfficiencyepsRef0.04Ratio of the real and the ideal displacement volume
Modelica.Units.SI.DiameterdiameterInl12e-3Diameter of the pipe at compressor's inlet
Modelica.Units.SI.DiameterdiameterOut8e-3Diameter of the pipe at compressor's outlet
General › Compressor's characterisitcs
Modelica.Units.SI.FrequencyrotSpeMax120Maximal rotational speed executable by the compressor
RealpiPreMax15Maximal pressure ratio executable by the compressor
Transient behaviour
BooleanuseInpFiltrue= true, if transient behaviour of rotational speed is computed
Modelica.Units.SI.TimerisTim0.5Time until rotational speed reaches 99.6 % of its set value
Pressure losses › General
RealzetInl((1/0.59 - 1)^2 + (1 - (diameterInl/0.066)^2))*(1 - (diameterInl/0.066)^2)Pressure loss factor at compressor's inlet for flow of port_a -> port_b
RealzetOut((1/0.59 - 1)^2 + (1 - (diameterOut/0.1122)^2))*(1 - (diameterOut/0.1122)^2)Pressure loss factor at compressor's outlet for flow of port_a -> port_b
Pressure losses › Advanced
Booleanfrom_dpfalse= true, use m_flow = f(dp) else dp = f(m_flow)
BooleanhomotopyInitializationtrue= true, use homotopy method for initialisation
Booleanlinearizedfalse= true, use linear relation between m_flow and dp for any flow rate
Heat losses › General
Utilities.Types.HeatTransferModelsheaTraModUtilities.Types.HeatTransferModels.SimplifiedChoose heat transfer model for heat losses at compressor's inlet and outlet
Heat losses › Geometry
Modelica.Units.SI.MassmWal2.5Mass of the fictitious wall
Modelica.Units.SI.SpecificHeatCapacitycpWal450Specific heat capacity of the fictitious wall
Heat losses › Thermal conductances
Modelica.Units.SI.ThermalConductancekAMeaInl25Effective mean thermal conductance between medium and fictitious wall at inlet
Modelica.Units.SI.ThermalConductancekAMeaOut35Effective mean thermal conductance between medium and fictitious wall at outlet
Modelica.Units.SI.ThermalConductancekAMeaAmb5Effective mean thermal conductance coefficient between fictitious wall and ambient
Heat losses › Initialisation
BooleaniniTWal0true= true, if wall is initialised at fixed temperature; Otherwise, steady state initialisation
Modelica.Units.SI.TemperatureTWal0293.15Temperature of wall at initialisation
Assumptions
BooleanallowFlowReversaltrue= false to simplify equations, assuming, but not enforcing, no flow reversal
Utilities.Types.SimpleCompressorsimComUtilities.Types.SimpleCompressor.DefaultParameter used to activate or deactivate menue choices
Advanced › General
Modelica.Units.SI.PressureDifferencedp_start-20e5Guess value of compressor's dp = port_a.p - port_b.p
Medium.MassFlowRatem_flow_start0.5*m_flow_nominalGuess value of compressor's m_flow = port_a.m_flowr
Medium.MassFlowRatem_flow_small1e-6*m_flow_nominalSmall mass flow rate for regularization of compressor's zero flow
Modelica.Units.SI.MassFlowRatem_flow_nominal0.1Nominal mass flow rate
Advanced › Diagnostics
Booleanshow_Tfalse= true, if compressor's temperatures at port_a and port_b are computed
Booleanshow_V_flowfalse= true, if compressor's volume flow rate at inflowing port is computed
Booleanshow_staEfffalse= true, if thermodynamic states and efficiencies are computed
Booleanshow_quafalse= true, if vapour qualities are computed
Advanced › Initialisation
Modelica.Units.SI.FrequencyrotSpe060Compressor's rotational spped at initialisation
Modelica.Units.SI.AbsolutePressurepInl03e5Pressure at compressor's inlet at initialisation
Modelica.Units.SI.TemperatureTInl0283.15Temperature at compressor's inlet at initialisation

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_aFluid connector a (positive design flow direction is from port_a to port_b)
Modelica.Fluid.Interfaces.FluidPort_bport_b
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_bheatPortHeat port connector to calculate heat losses to ambient
Modelica.Blocks.Interfaces.RealInputmanVarComPrescribed compressor's rotational speed
Modelica.Blocks.Interfaces.RealOutputcurManVarComCurrent compressor's rotational speed

Components

TypeNameDefaultDescription
CompressionProcesscomProModel describing compression process

Contents

NameDescription
Medium
EngineEfficiency
VolumetricEfficiency
IsentropicEfficiency
CompressionProcess

Revisions

  • October 20, 2017, by Mirko Engelpracht:
    First implementation (see issue 467).