RCAIDE.Library.Methods.Powertrain.Converters.Compressor.compute_compressor_performance

compute_compressor_performance#

compute_compressor_performance(compressor, conditions)[source]#

Computes the performance of a compressor based on its polytropic efficiency.

Parameters:
  • compressor (RCAIDE.Library.Components.Converters.Compressor) –

    Compressor component with the following attributes:
    • tagstr

      Identifier for the compressor

    • pressure_ratiofloat

      Pressure ratio across compressor

    • polytropic_efficiencyfloat

      Polytropic efficiency of compression

    • working_fluidData

      Working fluid properties object

  • conditions (RCAIDE.Framework.Mission.Common.Conditions) –

    Flight conditions with:
    • energy.converters[compressor.tag].inputsData
      Input conditions
      • stagnation_temperaturenumpy.ndarray

        Inlet stagnation temperature [K]

      • stagnation_pressurenumpy.ndarray

        Inlet stagnation pressure [Pa]

      • static_temperaturenumpy.ndarray

        Inlet static temperature [K]

      • static_pressurenumpy.ndarray

        Inlet static pressure [Pa]

      • mach_numbernumpy.ndarray

        Inlet Mach number

    • energy.hybrid_power_split_ratiofloat

      Ratio of power split for hybrid systems

Returns:

Results are stored in conditions.energy.converters[compressor.tag].outputs:
  • work_donenumpy.ndarray

    Specific work done by compressor [J/kg]

  • stagnation_temperaturenumpy.ndarray

    Exit stagnation temperature [K]

  • stagnation_pressurenumpy.ndarray

    Exit stagnation pressure [Pa]

  • stagnation_enthalpynumpy.ndarray

    Exit stagnation enthalpy [J/kg]

  • static_temperaturenumpy.ndarray

    Exit static temperature [K]

  • static_pressurenumpy.ndarray

    Exit static pressure [Pa]

  • mach_numbernumpy.ndarray

    Exit Mach number

  • gas_constantnumpy.ndarray

    Gas constant [J/(kg·K)]

  • gammanumpy.ndarray

    Ratio of specific heats

  • cpnumpy.ndarray

    Specific heat at constant pressure [J/(kg·K)]

Return type:

None

Notes

This function implements the thermodynamic calculations for a compressor with a specified pressure ratio and polytropic efficiency. The work done is adjusted by the hybrid power split ratio if applicable.

Major Assumptions
  • Constant polytropic efficiency

  • Constant pressure ratio

  • Ideal gas behavior

  • Adiabatic process

Theory The compression process follows the polytropic relation:

\[T_{t,out}/T_{t,in} = (P_{t,out}/P_{t,in})^{(\gamma-1)/(\gamma \eta_{p})}\]

where \(\eta_{p}\) is the polytropic efficiency.

Enthalpy is calculated using the specific heat at constant pressure and the stagnation temperature.

\[h_{t} = C_{p} T_{t}\]

References

[1] Cantwell, B., “AA283 Course Notes”, Stanford University https://web.stanford.edu/~cantwell/AA283_Course_Material/AA283_Course_BOOK/AA283_Aircraft_and_Rocket_Propulsion_BOOK_Brian_J_Cantwell_May_28_2024.pdf