Skip to main content

Module cycle

Module cycle 

Source
Expand description

Thermodynamic cycles — Otto, Diesel, Brayton, Rankine, refrigeration.

All SI units: kelvins, pascals, joules, moles. Ideal-gas cycles use the calorically perfect gas model. Steam cycles (behind steam feature) use IAPWS-IF97 table data.

Structs§

CycleComparisonEntry
Entry for comparing multiple cycles.
CycleResult
Result of a thermodynamic cycle analysis.
DiagramPoint
A point for plotting cycle diagrams (T-s or P-v).
StatePoint
A thermodynamic state point in a cycle.

Enums§

CycleKind
Kind of thermodynamic cycle.
ProcessKind
Type of thermodynamic process connecting two state points.

Functions§

adiabatic_temp_from_pressure
Adiabatic temperature from pressure ratio: T₂ = T₁·(P₂/P₁)^((γ-1)/γ).
adiabatic_work
Work done in an adiabatic process: W = n·Cv·(T₁ - T₂) (J).
brayton_cycle
Brayton cycle analysis (gas turbine).
compare_cycles
Compare multiple cycles against their Carnot limits.
cycle_pv_diagram
Generate P-v diagram points for a cycle.
cycle_ts_diagram
Generate T-s diagram points for a cycle.
diesel_cycle
Diesel cycle analysis (compression-ignition engine).
heat_pump_cop
Heat pump COP from refrigeration COP.
isobaric_heat
Heat transfer at constant pressure: Q = n·Cp·(T₂ - T₁) (J).
isochoric_heat
Heat transfer at constant volume: Q = n·Cv·(T₂ - T₁) (J).
otto_cycle
Otto cycle analysis (spark-ignition engine).