Examples#

This gallery walks through every public feature of engineeringkit.thermodynamics, one breakthrough per script: the first and second laws, ideal and real gases and their mixtures, vapour pressure and steam properties, heat-engine cycles and power plants, refrigerators and heat pumps, exergy, moist air and combustion.

Units, assumptions and numerical validation gives the physical validity limits. Each script is self-contained and can be run directly with python examples/thermodynamics/<section>/<script>.py.

Sections#

  • laws – Joule’s mechanical equivalent of heat and steady-flow devices, Clausius’s entropy and Maxwell’s relations.

  • properties – Dalton’s partial pressures, Clapeyron’s ideal gas, the Clausius-Clapeyron relation, the Joule-Thomson effect, van der Waals’s equation, Antoine’s equation, Pitzer’s acentric factor, Peng and Robinson’s equation and IAPWS-IF97 steam properties up to region 5.

  • cycles – Carnot’s bound, Stirling’s regenerator, the Rankine, Brayton, Otto, Diesel and dual cycles with reheat, feedwater heating, regeneration and intercooling, and the Curzon-Ahlborn efficiency at maximum power.

  • refrigeration – Perkins’s vapour-compression refrigerator, on water and on R-134a, and Kelvin’s heat pump.

  • exergy – Gouy and Stodola’s lost work and Rant’s exergy.

  • psychrometrics – Carrier’s psychrometric chart and air-conditioning processes.

  • combustion – Hess’s law, heating values and the adiabatic flame temperature.

Combustion#

Burning fuel in air: stoichiometry, heating values and flame temperatures.

Hess’s law and the heat of combustion (1840)

Hess's law and the heat of combustion (1840)

Cycles#

Heat engines: Carnot’s bound, the idealized cycles of real engines and power plants analysed state by state.

Carnot’s Réflexions: no engine beats the reversible one (1824)

Carnot's Réflexions: no engine beats the reversible one (1824)

Rankine’s steam cycle (1859)

Rankine's steam cycle (1859)

Brayton’s constant-pressure cycle (1872)

Brayton's constant-pressure cycle (1872)

Otto’s four-stroke cycle (1876)

Otto's four-stroke cycle (1876)

Diesel’s compression-ignition cycle (1893)

Diesel's compression-ignition cycle (1893)

Curzon and Ahlborn: efficiency at maximum power (1975)

Curzon and Ahlborn: efficiency at maximum power (1975)

Stirling’s regenerator (1816)

Stirling's regenerator (1816)

Rankine’s cycle with reheat and feedwater heating (1859)

Rankine's cycle with reheat and feedwater heating (1859)

Brayton’s cycle with regeneration, intercooling and reheat (1872)

Brayton's cycle with regeneration, intercooling and reheat (1872)

Diesel’s cycle and the dual cycle (1893)

Diesel's cycle and the dual cycle (1893)

Exergy#

Work potential and the work lost to irreversibility.

Gouy and Stodola: lost work (1889-1905)

Gouy and Stodola: lost work (1889-1905)

Rant names exergy (1956)

Rant names exergy (1956)

Laws#

The first law (energy is conserved) for closed systems and steady-flow devices, the second (entropy never decreases), and Maxwell’s relations.

Joule and the first law (1843-1850)

Joule and the first law (1843-1850)

Clausius’s inequality and entropy (1854-1865)

Clausius's inequality and entropy (1854-1865)

Maxwell’s thermodynamic relations (1871)

Maxwell's thermodynamic relations (1871)

Joule’s first law in steady-flow devices (1843-1850)

Joule's first law in steady-flow devices (1843-1850)

Properties#

Equations of state, ideal-gas mixtures, vapour pressure and the properties of water, steam and refrigerants.

Clapeyron’s ideal gas law (1834)

Clapeyron's ideal gas law (1834)

The Clausius-Clapeyron relation (1834-1850)

The Clausius-Clapeyron relation (1834-1850)

The Joule-Thomson effect (1852)

The Joule-Thomson effect (1852)

Van der Waals’s equation of state (1873)

Van der Waals's equation of state (1873)

Antoine’s vapour-pressure equation (1888)

Antoine's vapour-pressure equation (1888)

IAPWS-IF97: the properties of water and steam (1997)

IAPWS-IF97: the properties of water and steam (1997)

Dalton’s law of partial pressures (1801)

Dalton's law of partial pressures (1801)

Pitzer’s acentric factor (1955)

Pitzer's acentric factor (1955)

Peng and Robinson’s equation of state (1976)

Peng and Robinson's equation of state (1976)

IAPWS-IF97 region 5: steam in gas turbines (1997)

IAPWS-IF97 region 5: steam in gas turbines (1997)

Psychrometrics#

Moist air: humidity, relative humidity and dew point, and the air-conditioning processes.

Carrier’s psychrometric chart (1911)

Carrier's psychrometric chart (1911)

Carrier’s air-conditioning processes (1911)

Carrier's air-conditioning processes (1911)

Refrigeration#

Refrigerators and heat pumps, and their Carnot limits.

Perkins’s vapour-compression refrigerator (1834)

Perkins's vapour-compression refrigerator (1834)

Kelvin’s heat pump (1852)

Kelvin's heat pump (1852)

Perkins’s cycle on a modern refrigerant (1834)

Perkins's cycle on a modern refrigerant (1834)

Gallery generated by Sphinx-Gallery