{
  "id": 20050974,
  "title": "From Rocket Science to Code: 12 Real-World Thermodynamic Notebooks with pyglenn",
  "url": "https://urgent.news/2026/11/14/from-rocket-science-to-code-12-real-world-thermodynamic-notebooks",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-14T21:09:48.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/profleao/from-rocket-science-to-code-12-real-world-thermodynamic-notebooks-with-pyglenn-5h8i"
  },
  "original_language": "en",
  "account": "Thermodynamic notebooks showcase the reality of gas properties beyond simplistic models. Dr. Reginaldo G. Leão Jr.'s collection of twelve Jupyter notebooks, called pyglenn-notebooks, provides practical examples of real-world thermodynamic modeling. A key example is Notebook 09, which examines the cold-air standard delusion in gas turbine applications.\n\nThe textbook formula for Brayton cycle efficiency assumes constant specific heats: ηcold = 1 - rp(γ−1)/γ. For a pressure ratio of 10 and γ = 1.4, this yields a thermal efficiency of 48.2%. However, when pyglenn accounts for temperature-dependent heat capacity, the real thermal efficiency falls to 45.6%. The 2.6 percentage point difference demonstrates the impact of real gas behavior at high turbine inlet temperatures.\n\nThe notebook employs scipy's root_scalar function to solve for compressor discharge temperature. By matching entropy across compressor and turbine stages with temperature-dependent Cp(T), pyglenn reveals the numerical differences between theoretical and practical performance. This highlights the importance of incorporating realistic thermodynamic properties in engineering designs, as neglecting them can lead to costly failures in real-world applications.",
  "summary": "Engineering textbooks routinely introduce gas dynamics under the convenient assumption of constant specific heats. Students memorize that air has a heat capacity ratio ( γ ) of 1.4, calculate cycle efficiencies on a pocket calculator, and move on. Inside a gas turbine combustor or a rocket nozzle, that simplification collapses. At 1500 K, molecular nitrogen and oxygen absorb energy in quantized…",
  "key_points": [
    "pyglenn-notebooks showcase real-world thermodynamic modeling",
    "Brayton cycle efficiency formula assumes constant specific heats",
    "pyglenn reveals 2.6 percentage point efficiency difference"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}