modelPartialCompressorRealGas_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
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Types.TypeOfResource | typeOfResource | TransiEnt.Basics.Types.TypeOfResource.Consumer | Type of energy resource for global model statistics |
| Summary and Visualisation | |||
| Boolean | contributeToCycleSummary | simCenter.contributeToCycleSummary | True if component shall contribute to automatic efficiency calculation |
| Fundamental Definitions | |||
| TILMedia.VLEFluidTypes.BaseVLEFluid | medium | simCenter.gasModel1 | |
| SI.Efficiency | eta_mech | 0.95 | Mechanical efficiency |
| SI.Efficiency | eta_el | 0.97 | Electrical efficiency |
| PresetVariableType | presetVariableType | "V_flow" | Specifies which variable is preset |
| Boolean | useMechPowerPort | false | true if mechanical power port shall be visible |
| Electrical power | |||
| Boolean | use_P_elInput | false | = true, if P_el defined by input |
| SI.Power | P_el_fixed | 5e3 | Fixed value for electrical power |
| Shaft power | |||
| Boolean | use_P_shaftInput | false | = true, if P_shaft defined by input |
| SI.Power | P_shaft_fixed | 5e3 | Fixed value for shaft power |
| Pressure Increase | |||
| Boolean | use_Delta_p_input | false | = true, if Delta_p defined by input |
| SI.Pressure | Delta_p_fixed | 0.1e5 | Fixed value for pressure increase |
| Mass Flow Rate | |||
| Boolean | m_flowInput | false | = true, if m_flow defined by input |
| SI.MassFlowRate | m_flow_fixed | 0.5 | Fixed value for gas mass flow rate |
| Volume Flow Rate | |||
| Boolean | V_flowInput | false | = true, if V_flow defined by input |
| SI.VolumeFlowRate | V_flow_fixed | 0.5e-3 | Fixed value for gas volume flow rate |
| Statistics | |||
| Boolean | integrateElPower | simCenter.integrateElPower | true if electric powers shall be integrated |
| Boolean | calculateCost | simCenter.calculateCost | true if cost shall be calculated |
| SI.Power | P_el_n | 1e3 | Nominal power for cost calculation |
| TransiEnt.Basics.Units.MonetaryUnitPerEnergy | Cspec_demAndRev_el | simCenter.Cspec_demAndRev_free | Specific demand-related cost per electric energy |
| Initialization | |||
| SI.PressureDifference | Delta_p_start | 100 | Initial value for pressure difference |
| Expert Settings | |||
| Boolean | allow_reverseFlow | 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 | inlet flow | |
| TransiEnt.Basics.Interfaces.Gas.RealGasPortOut | gasPortOut | outlet flow | |
| TransiEnt.Basics.Interfaces.General.PressureDifferenceIn | dp_in | Prescribed pressure increase | |
| TransiEnt.Basics.Interfaces.Electrical.ElectricPowerIn | P_el_in | Prescribed electric power | |
| TransiEnt.Basics.Interfaces.General.VolumeFlowRateIn | V_flow_in | Prescribed volume flow rate | |
| TransiEnt.Basics.Interfaces.General.MassFlowRateIn | m_flow_in | Prescribed mass flow rate | |
| TransiEnt.Basics.Interfaces.General.MechanicalPowerIn | P_shaft_in | Prescribed shaft power | |
| Basics.Interfaces.General.MechanicalPowerPort | mpp |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | hOut | ||
| SI.Pressure | Delta_p | pressure increase | |
| SI.Power | P_hyd | Hydraulic power | |
| SI.Power | P_shaft | Drive power | |
| SI.Power | P_el | Electrical power | |
| SI.VolumeFlowRate | V_flow | ||
| TransiEnt.SimCenter | simCenter | ||
| TransiEnt.ModelStatistics | modelStatistics | ||
| ClaRa.Basics.Interfaces.Connected2SimCenter | connected2SimCenter | ||
| Summary | summary | ||
| Boundaries.Mechanical.Power | power | ||
| Modelica.Blocks.Sources.RealExpression | realExpression |
Contents
| Name | Description |
|---|---|