modelCompressorRealGasIsothermal_L1_simple
Extends from Base.PartialCompressorRealGas_L1_simple (Partial compressor model for real gases with constant efficiency).
Information
1. Purpose of model
This model represents an isothermal compressor for real gases. It is a modified version of the model ClaRa.Components.TurboMachines.Compressors.CompressorGas_L1_simple from ClaRa version 1.2.1. The model is documented there and here only the changes are described.
2. Level of detail, physical effects considered, and physical insight
The model was changed to work with real gases and to model an isothermal compression. Also, mechanical and electrical efficiencies were added.
3. Limits of validity
Only valid for real gases, positive pressure differences and ideal isothermal compression. Variable efficiencies and time-dependent behavior are not considered.
4. Interfaces
gasPortIn: real gas inlet
gasPortOut: real gas outlet
m_flow_in: input for mass flow rate in [kg/s]
V_flow_in: input for volume flow rate in [m3/s]
P_el_in: input for electrical power in [W]
dp_in: input for pressure difference in [Pa]
5. Nomenclature
(no elements)
6. Governing Equations
The specific work for the reversible isothermal compression is calculated using equations from Baehr and Kabelac [1].

The electrical power is determined using the mechanical and electrical efficiencies.

7. Remarks for Usage
(no remarks)
8. Validation
(no remarks)
9. References
[1] Baehr, H. D., Kabelac, S. (2012). Thermodynamik: Grundlagen und technische Anwendungen. Springer-Verlag.
10. Version History
Model created by Carsten Bode (c.bode@tuhh.de) on Tue Sep 20 2016
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Types.TypeOfResource | typeOfResource (from PartialCompressorRealGas_L1_simple) | TransiEnt.Basics.Types.TypeOfResource.Consumer | Type of energy resource for global model statistics |
| Summary and Visualisation | |||
| Boolean | contributeToCycleSummary (from PartialCompressorRealGas_L1_simple) | simCenter.contributeToCycleSummary | True if component shall contribute to automatic efficiency calculation |
| Fundamental Definitions | |||
| TILMedia.VLEFluidTypes.BaseVLEFluid | medium (from PartialCompressorRealGas_L1_simple) | simCenter.gasModel1 | |
| SI.Efficiency | eta_mech (from PartialCompressorRealGas_L1_simple) | 0.95 | Mechanical efficiency |
| SI.Efficiency | eta_el (from PartialCompressorRealGas_L1_simple) | 0.97 | Electrical efficiency |
| PresetVariableType | presetVariableType (from PartialCompressorRealGas_L1_simple) | "V_flow" | Specifies which variable is preset |
| Boolean | useMechPowerPort (from PartialCompressorRealGas_L1_simple) | false | true if mechanical power port shall be visible |
| Electrical power | |||
| Boolean | use_P_elInput (from PartialCompressorRealGas_L1_simple) | false | = true, if P_el defined by input |
| SI.Power | P_el_fixed (from PartialCompressorRealGas_L1_simple) | 5e3 | Fixed value for electrical power |
| Shaft power | |||
| Boolean | use_P_shaftInput (from PartialCompressorRealGas_L1_simple) | false | = true, if P_shaft defined by input |
| SI.Power | P_shaft_fixed (from PartialCompressorRealGas_L1_simple) | 5e3 | Fixed value for shaft power |
| Pressure Increase | |||
| Boolean | use_Delta_p_input (from PartialCompressorRealGas_L1_simple) | false | = true, if Delta_p defined by input |
| SI.Pressure | Delta_p_fixed (from PartialCompressorRealGas_L1_simple) | 0.1e5 | Fixed value for pressure increase |
| Mass Flow Rate | |||
| Boolean | m_flowInput (from PartialCompressorRealGas_L1_simple) | false | = true, if m_flow defined by input |
| SI.MassFlowRate | m_flow_fixed (from PartialCompressorRealGas_L1_simple) | 0.5 | Fixed value for gas mass flow rate |
| Volume Flow Rate | |||
| Boolean | V_flowInput (from PartialCompressorRealGas_L1_simple) | false | = true, if V_flow defined by input |
| SI.VolumeFlowRate | V_flow_fixed (from PartialCompressorRealGas_L1_simple) | 0.5e-3 | Fixed value for gas volume flow rate |
| Statistics | |||
| Boolean | integrateElPower (from PartialCompressorRealGas_L1_simple) | simCenter.integrateElPower | true if electric powers shall be integrated |
| Boolean | calculateCost (from PartialCompressorRealGas_L1_simple) | simCenter.calculateCost | true if cost shall be calculated |
| SI.Power | P_el_n (from PartialCompressorRealGas_L1_simple) | 1e3 | Nominal power for cost calculation |
| TransiEnt.Basics.Units.MonetaryUnitPerEnergy | Cspec_demAndRev_el (from PartialCompressorRealGas_L1_simple) | simCenter.Cspec_demAndRev_free | Specific demand-related cost per electric energy |
| Initialization | |||
| SI.PressureDifference | Delta_p_start (from PartialCompressorRealGas_L1_simple) | 100 | Initial value for pressure difference |
| Expert Settings | |||
| Boolean | allow_reverseFlow (from PartialCompressorRealGas_L1_simple) | false | true if reverse flow should be prohibited (might be faster if small reverse flow occurs at almost zero flow) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Interfaces.Gas.RealGasPortIn | gasPortIn (from PartialCompressorRealGas_L1_simple) | inlet flow | |
| TransiEnt.Basics.Interfaces.Gas.RealGasPortOut | gasPortOut (from PartialCompressorRealGas_L1_simple) | outlet flow | |
| TransiEnt.Basics.Interfaces.General.PressureDifferenceIn | dp_in (from PartialCompressorRealGas_L1_simple) | Prescribed pressure increase | |
| TransiEnt.Basics.Interfaces.Electrical.ElectricPowerIn | P_el_in (from PartialCompressorRealGas_L1_simple) | Prescribed electric power | |
| TransiEnt.Basics.Interfaces.General.VolumeFlowRateIn | V_flow_in (from PartialCompressorRealGas_L1_simple) | Prescribed volume flow rate | |
| TransiEnt.Basics.Interfaces.General.MassFlowRateIn | m_flow_in (from PartialCompressorRealGas_L1_simple) | Prescribed mass flow rate | |
| TransiEnt.Basics.Interfaces.General.MechanicalPowerIn | P_shaft_in (from PartialCompressorRealGas_L1_simple) | Prescribed shaft power | |
| Basics.Interfaces.General.MechanicalPowerPort | mpp (from PartialCompressorRealGas_L1_simple) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | hOut (from PartialCompressorRealGas_L1_simple) | ||
| SI.Pressure | Delta_p (from PartialCompressorRealGas_L1_simple) | pressure increase | |
| SI.Power | P_hyd (from PartialCompressorRealGas_L1_simple) | Hydraulic power | |
| SI.Power | P_shaft (from PartialCompressorRealGas_L1_simple) | Drive power | |
| SI.Power | P_el (from PartialCompressorRealGas_L1_simple) | Electrical power | |
| SI.VolumeFlowRate | V_flow (from PartialCompressorRealGas_L1_simple) | ||
| TransiEnt.SimCenter | simCenter (from PartialCompressorRealGas_L1_simple) | ||
| TransiEnt.ModelStatistics | modelStatistics (from PartialCompressorRealGas_L1_simple) | ||
| ClaRa.Basics.Interfaces.Connected2SimCenter | connected2SimCenter (from PartialCompressorRealGas_L1_simple) | ||
| Summary | summary (from PartialCompressorRealGas_L1_simple) | ||
| Boundaries.Mechanical.Power | power (from PartialCompressorRealGas_L1_simple) | ||
| Modelica.Blocks.Sources.RealExpression | realExpression (from PartialCompressorRealGas_L1_simple) |