modelPartialCompressorRealGas_L1_simple

Partial compressor model for real gases with constant efficiency
Diagram of PartialCompressorRealGas_L1_simple

Information

1. Purpose of model

This model is a partial model for real gas compressors. 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 mechanical and electrical efficiencies were added.

3. Limits of validity

Only valid for real gases and positive pressure differences. 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

P_shaft_in: input for shaft power in W

dp_in: input for pressure difference in Pa

mpp: mechanical power port (if useMechPowerPort)

5. Nomenclature

Delta_p "pressure increase"

P_hyd "Hydraulic power"

P_shaft "Drive power"

P_el "Electrical power"

V_flow "Volume flow rate"

6. Governing Equations

(no remarks)

7. Remarks for Usage

useMechPowerPort and use_P_elInput cannot be true at the same time since the electric power is then calculated outside of the compressor.

8. Validation

(no remarks)

9. References

(no remarks)

10. Version History

Model created by Carsten Bode (c.bode@tuhh.de) on Tue Sep 20 2016

Modified by Carsten Bode (c.bode@tuhh.de) in Nov 2020 (added shaft power and mechanical power port)

Parameters

TypeNameDefaultDescription
TransiEnt.Basics.Types.TypeOfResourcetypeOfResourceTransiEnt.Basics.Types.TypeOfResource.ConsumerType of energy resource for global model statistics
Summary and Visualisation
BooleancontributeToCycleSummarysimCenter.contributeToCycleSummaryTrue if component shall contribute to automatic efficiency calculation
Fundamental Definitions
TILMedia.VLEFluidTypes.BaseVLEFluidmediumsimCenter.gasModel1
SI.Efficiencyeta_mech0.95Mechanical efficiency
SI.Efficiencyeta_el0.97Electrical efficiency
PresetVariableTypepresetVariableType"V_flow"Specifies which variable is preset
BooleanuseMechPowerPortfalsetrue if mechanical power port shall be visible
Electrical power
Booleanuse_P_elInputfalse= true, if P_el defined by input
SI.PowerP_el_fixed5e3Fixed value for electrical power
Shaft power
Booleanuse_P_shaftInputfalse= true, if P_shaft defined by input
SI.PowerP_shaft_fixed5e3Fixed value for shaft power
Pressure Increase
Booleanuse_Delta_p_inputfalse= true, if Delta_p defined by input
SI.PressureDelta_p_fixed0.1e5Fixed value for pressure increase
Mass Flow Rate
Booleanm_flowInputfalse= true, if m_flow defined by input
SI.MassFlowRatem_flow_fixed0.5Fixed value for gas mass flow rate
Volume Flow Rate
BooleanV_flowInputfalse= true, if V_flow defined by input
SI.VolumeFlowRateV_flow_fixed0.5e-3Fixed value for gas volume flow rate
Statistics
BooleanintegrateElPowersimCenter.integrateElPowertrue if electric powers shall be integrated
BooleancalculateCostsimCenter.calculateCosttrue if cost shall be calculated
SI.PowerP_el_n1e3Nominal power for cost calculation
TransiEnt.Basics.Units.MonetaryUnitPerEnergyCspec_demAndRev_elsimCenter.Cspec_demAndRev_freeSpecific demand-related cost per electric energy
Initialization
SI.PressureDifferenceDelta_p_start100Initial value for pressure difference
Expert Settings
Booleanallow_reverseFlowfalsetrue if reverse flow should be prohibited (might be faster if small reverse flow occurs at almost zero flow)

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortIninlet flow
TransiEnt.Basics.Interfaces.Gas.RealGasPortOutgasPortOutoutlet flow
TransiEnt.Basics.Interfaces.General.PressureDifferenceIndp_inPrescribed pressure increase
TransiEnt.Basics.Interfaces.Electrical.ElectricPowerInP_el_inPrescribed electric power
TransiEnt.Basics.Interfaces.General.VolumeFlowRateInV_flow_inPrescribed volume flow rate
TransiEnt.Basics.Interfaces.General.MassFlowRateInm_flow_inPrescribed mass flow rate
TransiEnt.Basics.Interfaces.General.MechanicalPowerInP_shaft_inPrescribed shaft power
Basics.Interfaces.General.MechanicalPowerPortmpp

Components

TypeNameDefaultDescription
RealhOut
SI.PressureDelta_ppressure increase
SI.PowerP_hydHydraulic power
SI.PowerP_shaftDrive power
SI.PowerP_elElectrical power
SI.VolumeFlowRateV_flow
TransiEnt.SimCentersimCenter
TransiEnt.ModelStatisticsmodelStatistics
ClaRa.Basics.Interfaces.Connected2SimCenterconnected2SimCenter
Summarysummary
Boundaries.Mechanical.Powerpower
Modelica.Blocks.Sources.RealExpressionrealExpression

Contents

NameDescription
CostSpecsGeneral
Outlineprotected
Summaryprotected