modelRotaryCompressor
Model that describes a simple rotary compressor
Extends from BaseClasses.PartialCompressor (Partial model for compressor that contains basic definitions used in various compressor models).
Information
This is a model of a simple rotary compressor that is used, for example, in close-loop systems like heat pumps or chillers. It inherits from PartialCompressor which inherits from PartialCompression. Therefore, please checkout these sub-models for further information of underlying modeling approaches and parameterisation:
- AixLib.Fluid.Movers.Compressors.BaseClasses.PartialCompressor.
- AixLib.Fluid.Movers.Compressors.BaseClasses.PartialCompression.
For this model, no further losses are assumed at inlet and outlet of the compressor.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| General › Geometry | |||
| Modelica.Units.SI.Volume | VDis (from PartialCompressor) | 13e-6 | Displacement volume of the compressor |
| Modelica.Units.SI.Efficiency | epsRef (from PartialCompressor) | 0.04 | Ratio of the real and the ideal displacement volume |
| Modelica.Units.SI.Diameter | diameterInl (from PartialCompressor) | 12e-3 | Diameter of the pipe at compressor's inlet |
| Modelica.Units.SI.Diameter | diameterOut (from PartialCompressor) | 8e-3 | Diameter of the pipe at compressor's outlet |
| General › Compressor's characterisitcs | |||
| Modelica.Units.SI.Frequency | rotSpeMax (from PartialCompressor) | 120 | Maximal rotational speed executable by the compressor |
| Real | piPreMax (from PartialCompressor) | 15 | Maximal pressure ratio executable by the compressor |
| Transient behaviour | |||
| Boolean | useInpFil (from PartialCompressor) | true | = true, if transient behaviour of rotational speed is computed |
| Modelica.Units.SI.Time | risTim (from PartialCompressor) | 0.5 | Time until rotational speed reaches 99.6 % of its set value |
| Pressure losses › General | |||
| Real | zetInl (from PartialCompressor) | ((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 |
| Real | zetOut (from PartialCompressor) | ((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 | |||
| Boolean | from_dp (from PartialCompressor) | false | = true, use m_flow = f(dp) else dp = f(m_flow) |
| Boolean | homotopyInitialization (from PartialCompressor) | true | = true, use homotopy method for initialisation |
| Boolean | linearized (from PartialCompressor) | false | = true, use linear relation between m_flow and dp for any flow rate |
| Heat losses › General | |||
| Utilities.Types.HeatTransferModels | heaTraMod (from PartialCompressor) | Utilities.Types.HeatTransferModels.Simplified | Choose heat transfer model for heat losses at compressor's inlet and outlet |
| Heat losses › Geometry | |||
| Modelica.Units.SI.Mass | mWal (from PartialCompressor) | 2.5 | Mass of the fictitious wall |
| Modelica.Units.SI.SpecificHeatCapacity | cpWal (from PartialCompressor) | 450 | Specific heat capacity of the fictitious wall |
| Heat losses › Thermal conductances | |||
| Modelica.Units.SI.ThermalConductance | kAMeaInl (from PartialCompressor) | 25 | Effective mean thermal conductance between medium and fictitious wall at inlet |
| Modelica.Units.SI.ThermalConductance | kAMeaOut (from PartialCompressor) | 35 | Effective mean thermal conductance between medium and fictitious wall at outlet |
| Modelica.Units.SI.ThermalConductance | kAMeaAmb (from PartialCompressor) | 5 | Effective mean thermal conductance coefficient between fictitious wall and ambient |
| Heat losses › Initialisation | |||
| Boolean | iniTWal0 (from PartialCompressor) | true | = true, if wall is initialised at fixed temperature; Otherwise, steady state initialisation |
| Modelica.Units.SI.Temperature | TWal0 (from PartialCompressor) | 293.15 | Temperature of wall at initialisation |
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialCompressor) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
| Utilities.Types.SimpleCompressor | simCom (from PartialCompressor) | Utilities.Types.SimpleCompressor.Default | Parameter used to activate or deactivate menue choices |
| Advanced › General | |||
| Modelica.Units.SI.PressureDifference | dp_start (from PartialCompressor) | -20e5 | Guess value of compressor's dp = port_a.p - port_b.p |
| Medium.MassFlowRate | m_flow_start (from PartialCompressor) | 0.5*m_flow_nominal | Guess value of compressor's m_flow = port_a.m_flowr |
| Medium.MassFlowRate | m_flow_small (from PartialCompressor) | 1e-6*m_flow_nominal | Small mass flow rate for regularization of compressor's zero flow |
| Modelica.Units.SI.MassFlowRate | m_flow_nominal (from PartialCompressor) | 0.1 | Nominal mass flow rate |
| Advanced › Diagnostics | |||
| Boolean | show_T (from PartialCompressor) | false | = true, if compressor's temperatures at port_a and port_b are computed |
| Boolean | show_V_flow (from PartialCompressor) | false | = true, if compressor's volume flow rate at inflowing port is computed |
| Boolean | show_staEff (from PartialCompressor) | false | = true, if thermodynamic states and efficiencies are computed |
| Boolean | show_qua (from PartialCompressor) | false | = true, if vapour qualities are computed |
| Advanced › Initialisation | |||
| Modelica.Units.SI.Frequency | rotSpe0 (from PartialCompressor) | 60 | Compressor's rotational spped at initialisation |
| Modelica.Units.SI.AbsolutePressure | pInl0 (from PartialCompressor) | 3e5 | Pressure at compressor's inlet at initialisation |
| Modelica.Units.SI.Temperature | TInl0 (from PartialCompressor) | 283.15 | Temperature at compressor's inlet at initialisation |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_a (from PartialCompressor) | Fluid connector a (positive design flow direction is from port_a to port_b) | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_b (from PartialCompressor) | ||
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_b | heatPort (from PartialCompressor) | Heat port connector to calculate heat losses to ambient | |
| Modelica.Blocks.Interfaces.RealInput | manVarCom (from PartialCompressor) | Prescribed compressor's rotational speed | |
| Modelica.Blocks.Interfaces.RealOutput | curManVarCom (from PartialCompressor) | Current compressor's rotational speed |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| CompressionProcess | comPro (from PartialCompressor) | Model describing compression process |
Revisions
- October 20, 2017, by Mirko Engelpracht:
First implementation (see issue 467).