Phase 07 · 15 lessons
Thermodynamics
Engineering thermodynamics and a first course in heat transfer, at the level of a second-year thermodynamics course and a first heat-transfer course (the MIT 16.Unified thermodynamics notes and Lienhard's A Heat Transfer Textbook in scope), taught through aerospace systems and organised around one idea: conservation plus the second law. Every lesson draws the boundary of a system or control volume first, writes its mass and energy balance, says what generates entropy, and checks its main result by an independent route. Those routes include: cp against dh/dT of the NASA polynomials and the Lienhard air table; a tank blowdown's energy balance closing to round-off and its closed form; a steam table tested against Clausius–Clapeyron and h = u + pv; S_gen ≥ 0 over hundreds of random cases and path independence; many small compressor stages against the polytropic closed form; the Brayton work as an enclosed area; ideal limits recovering the closed forms of recuperated cycles; an exergy audit whose destructions are computed two ways and close to 10⁻¹⁶; two independent routes to the saturation pressure; Hess's law against standard heating values; a Gibbs minimiser against SLSQP and the law of mass action; a finite-volume conduction solver against Fourier series, fins and erf; convection correlations against the Reynolds–Colburn analogy and numerical averages; view factors against reciprocity and summation; and in lesson 15 the correlations of lessons 13 and 14 against your own measurement. By the end you can compute ideal-gas properties from the NASA 9-coefficient polynomials and apply the first law to closed systems and to unsteady control volumes. You can read and interpret real-substance tables and compute entropy generation and exergy destruction. You can analyse ideal and real Brayton cycles with recuperation and intercooling, do the psychrometrics of an airliner cabin, and compute adiabatic flame temperatures and chemical equilibrium by Gibbs minimisation. You can solve conduction problems numerically, use convection correlations inside their ranges, and compute view factors and radiative exchange for a spacecraft radiator. You can also measure a cooling curve at home and compare it with lumped and distributed models. You get a tested Python module for each of these. The mathematics is not new: Phases 01–03 supplied it, and Phase 04 the ideal gas and kinetic theory. What is new is engineering thermodynamics and heat transfer: systems and control volumes, the two laws, real-substance properties, cycles, exergy, mixtures, reacting systems and equilibrium, and conduction, convection and radiation.
Lessons
- P07.01computational Systems, Properties & State Build it: Ideal-gas property calculator (NASA 9-coefficient cp, h, s for species and dry air; ideal-gas equation of state; state postulate)
- P07.02computational The First Law Build it: Tank blowdown model (adiabatic, isothermal and wall-heated blowdown of a nitrogen pressurant tank through a choked orifice; closed-system work and heat)
- P07.03data-based investigation of the NIST SRD 69 values in Yan's appendices Properties of Pure Substances Build it: Steam/propellant table lookup (water and ammonia saturation and superheated tables, phase identification, quality, interpolation, table checks)
- P07.04computational The Second Law & Entropy Build it: Entropy generation tracker (heat across a finite ΔT, throttling, mixing, friction, a cycle's Clausius integral)
- P07.05computational Isentropic Processes & Efficiencies Build it: Compressor efficiency calculator (isentropic and polytropic efficiency, constant and variable cp, multi-stage)
- P07.06computational Power Cycles: Brayton Build it: Ideal Brayton cycle analyzer (state table, efficiency, specific work, optimum pressure ratio, T–s and p–v diagrams)
- P07.07computational Real Brayton Cycles Build it: Intercooled, recuperated cycle (component efficiencies, pressure losses, recuperator effectiveness; turboprop/APU scale)
- P07.08computational Exergy Build it: Exergy loss audit of a turbojet core (per-component exergy destruction T₀S_gen, fuel exergy, second-law efficiency)
- P07.09computational Gas Mixtures & Psychrometrics Build it: Cabin air conditioning (Dalton and Amagat, humidity ratio, relative humidity, dew point, moist-air enthalpy, stream mixing, an environmental control system from cruise outside air to cabin)
- P07.10computational only Chemical Reactions & Combustion Build it: Adiabatic flame temperature (stoichiometry, equivalence ratio, heating values from NASA enthalpies of formation, complete-combustion flame temperature for Jet-A/air, CH₄/O₂, H₂/O₂)
- P07.11computational only Chemical Equilibrium Build it: Equilibrium solver (Gibbs minimisation by the element-potential method, as in NASA CEA; equilibrium flame temperature; an illustrative rocket chamber)
- P07.12computational Heat Transfer: Conduction Build it: 2-D conduction solver (steady finite-volume Laplace/Poisson; explicit, Crank–Nicolson and implicit transients; walls, fins, an avionics card and a heat-sink chamber wall)
- P07.13computational Heat Transfer: Convection Build it: Convective cooling correlations (flat plate laminar and turbulent, cylinder in cross-flow, pipe flow, natural convection on plates and cylinders; an avionics box, a cold plate and a regenerative-style cooling channel)
- P07.14computational Heat Transfer: Radiation Build it: View factor and radiative balance (closed-form view factors, numerical double-area integration, radiosity network for an N-surface enclosure, spacecraft radiator equilibrium temperature)
- P07.15physical experiment Home Lab: Cooling Curve 🔬 Build it: Measure the cooling of a small aluminium bar; fit lumped and distributed models
One lesson has a physical experiment (marked 🔬): the cooling-curve home lab. A learner without the kit completes it with the seeded synthetic dataset supplied, which is labelled SYNTHETIC wherever it appears; a calculation or a simulation is never presented as a measurement. Lesson 03 is a data-based investigation of published property tables. Every other lesson's part 4 is a computational experiment, such as a parameter sweep, a sensitivity study or a comparison of two methods. Lessons 10 and 11 are computational only: there is no at-home combustion, flame, burning, fuel handling or fuel of any kind in this phase. Lesson 02 models a pressurant tank; pressure vessels are never built, filled or vented at home in this course.
Lesson ids are P07.01 to P07.15. Each lesson's metadata table gives its exact prerequisites, and every lesson's metadata table reads:
| Time | unmeasured |
|---|
The Time row stays unmeasured until pilots measure it. No time estimate is given here for the same reason.
Prerequisites
Phases 00–05, in particular: P00.13 (safety for home experiments) and P00.14 (measurement, calibration and uncertainty) for lesson 15, and P00.15 (the first predict-measure-compare experiment), whose method lesson 15 repeats at a higher level; P01.05 (integration) for h and s° from cp and for the property integrals; P01.13 (linear systems) for the radiosity network and the finite-volume solver; P02.01 (first-order ODEs) for the tank blowdown and the lumped cooling curve; P02.11 (PDEs: the heat equation and separation of variables) for conduction and the distributed cooling model; P02.18 (regression and curve fitting) for the cooling-curve fits; P03.02 (root finding) for every property inversion and flame temperature; P03.03 (interpolation) for the property tables; P03.04 (numerical integration) for path integrals, contour areas and view factors; P03.05 and P03.06 (ODE integrators) for the blowdown and the variable-h cooling model; P03.10 (nonlinear systems) and P03.15 (constrained optimisation) for Gibbs minimisation; P03.11 (finite differences for PDEs) for the conduction solver; P03.14 (unconstrained optimisation) for the optimum pressure ratio and the intercooler split; P04.02 (work and energy) and P04.07 (kinetic theory of gases: the ideal gas, equipartition and γ) for lesson 01; and P04.15 (the electronics bench and its NTC thermistor) for logging in lesson 15. Lessons 10 and 11 also assume Bridge B2 or equivalent general chemistry (moles, balancing equations, equilibrium constants). Skill checks before starting: you can integrate a polynomial term by term, find a root with scipy.optimize.brentq, interpolate a table in ln p against 1/T, integrate an ODE system with solve_ivp, write the five-point Laplacian, and propagate an uncertainty through a product and a sum.
The project kit
The kit lives in projects/p07-cooling-curve/ with a bom.yaml (three cost tiers, minimum_cost, recommended and enhanced, with dated price ranges, reusing items from p00-calibration, p00-first-experiment and p04-electronics-bench), safety.md (the full safety box), procedure.md, report-template.md, data/README.md (the raw-data and prediction formats) and data/synthetic/ (the seeded SYNTHETIC dataset, seed 715, for learners without a kit). Read safety.md before buying anything and again before every session. The kit's safety.md is authoritative. The limits below summarise the hard rules that every version of this kit must keep, and nothing in the kit may relax them. The prediction, with its uncertainty budget, is written down and dated in data/prediction.md before the bar goes into the water, raw data are never edited, and the report states which numbers were measured, which were computed, and which are SYNTHETIC.
p07-cooling-curve(folder, lesson 15). A small 6061 aluminium bar (25.4 mm round, 50 mm long, or similar) warmed in tap-hot water, lifted out with tongs, dried and hung in a string sling from a stand of books and a pencil in still room air; its temperature logged every 15 s for 60 min with a kitchen probe thermometer or the 10 kΩ NTC thermistor on thep04-electronics-benchmicrocontroller, and the room read with a second thermometer. You predict the time constant τ = ρcV/(hA) from the natural-convection correlation of lesson 13 and the linearised radiation of lesson 14, with an uncertainty, before measuring; then you fit a lumped exponential (log-linear and nonlinear, with the probe lag removed), check the Biot number, compare with a distributed series solution, and test whether h is constant from windowed time constants. Hard limits:- tap-hot water no hotter than 60 °C, checked with the thermometer before the bar goes in;
- no boiling water, kettle at the boil, stove, oven, flame, heat gun, hot plate, microwave heating of metal, or soldering iron;
- the bar handled with tongs while it is warm;
- battery or USB power only for any electronics (no mains-powered heaters or circuits);
- no glass containers;
- water kept away from the microcontroller and the computer;
- stop if the bar is too hot to touch through a folded cloth, if the water reads above 60 °C, or if any electronics get wet.
Nothing in this phase involves combustion, fuel of any kind, pressure vessels, power tools, mains-powered heating, or any heat source other than the hot tap. Lessons 10 and 11 compute flames and equilibrium compositions; nothing is burned. Lesson 02 computes a tank blowdown; no tank is filled or vented. A report without a completed safety box is not graded.
Property data
Every property in this phase comes from free, verified sources and is used as data with a citation, copied into each lesson's code as given constants; no thermodynamics or heat-transfer library is used in tested code. Ideal-gas properties are the NASA Glenn 9-coefficient polynomials (McBride, Zehe & Gordon, NASA/TP-2002-211556, @nasa-tp-2002-211556-glenn-coefficients), extracted unrounded from data/thermo.inp of NASA CEA (@nasa-cea-github); the database was fitted with R = 8.314510 J/(mol·K) and the phase uses the CODATA 2018 value 8.31446261815324, so h(298.15 K) reproduces each enthalpy of formation to about 2 J/mol, a tolerance the tests state. Dry air is the phase's own fixed convention, N₂ 0.7808, O₂ 0.2095, Ar 0.0093, CO₂ 0.0004 by mole (M = 28.9657 g/mol), used in every lesson. Water and ammonia tables are Yan's appendices (@libretexts-yan-engineering-thermodynamics), whose values Yan generated from the NIST Chemistry WebBook (SRD 69, Lemmon, McLinden and Friend). Heat-transfer properties are Lienhard & Lienhard, A Heat Transfer Textbook, 6th ed., Appendix A (Tables A.1, A.2, A.3, A.6) and Tables 10.1 and 10.5 (@lienhard-heat-transfer-textbook); the book is free to download for personal and non-profit instructional use and is copyrighted, so the lessons use its values as data and write their own explanations. A value not in these sources is derived or labelled "typical, illustrative" and never tested against.
Running the code
From the repo root, pytest curriculum/phase-07/lesson-NN- tests your starter/main.py. AEFS_IMPL=solution pytest curriculum/phase-07/lesson-NN- runs the same tests against the reference solution in solutions/phase-07/lesson-NN-. Against the starter every failure is a NotImplementedError until you fill the functions in. Tests check properties rather than single numbers:
- mass, energy, entropy, exergy, element and dry-air/water balances closing to round-off;
- S_gen ≥ 0 for every process, including seeded random cases, and every accepted cycle below Carnot;
- agreement between two methods (polynomial and table, closed form and ODE, element potentials and SLSQP, finite volumes and Fourier series or erf, closed-form and numerical view factors, the lumped model and the series solution);
- limiting cases (constant cp, an ideal component, ΔT → 0, the isothermal and adiabatic tank, an isothermal enclosure, Bi → 0, the low-temperature limit of equilibrium);
- textbook closed forms and independent data (the Lienhard air table, Clausius–Clapeyron, standard heats of combustion, the Reynolds–Colburn analogy);
- convergence at the predicted order where a numerical method is used.
The code uses NumPy, SciPy and Matplotlib only; no CoolProp, Cantera or other thermodynamics or heat-transfer library is used in tested code. Anything random is seeded. Tests need no network and write files only to a temporary directory. python scripts/check_lessons.py checks every lesson's structure.
The exam and the mini-project
Phase exam and mini-project: assessments/phase-07/. The exam has four parts. Part A covers concepts: systems, state and the first law; the second law and exergy; mixtures, reactions and equilibrium; and heat transfer. Part B covers analysis by hand over every lesson from 01 to 14, one question per lesson, with property values from the phase's own data given where they are needed. Part C is computation: a tested θ-method slab conduction solver checked against the erf solution, its own energy balance and the explicit stability limit. Part D is engineering interpretation. Its first question asks you to interpret your own p07-cooling-curve measurement; the SYNTHETIC seed-715 record is supplied for learners without a kit. Its second question reviews a SYNTHETIC thermal check sheet for unit, environment and correlation-range errors, judges a recuperator proposal, and tests the cooling-curve kit's safety limits and the computational-only rule of lessons 10 and 11. The exam has no time limit: take as long as you need and record whether you worked closed-reference. Results are reported per competency: (1) reasoning, (2) analysis, (3) computation, (4) interpretation. The worked solutions and pass thresholds are in solutions/phase-07/exam/. The mini-project is the cooling-curve report from lesson 15, graded with the rubric. Seeded unseen cases for the computational lessons are planned in parameterized-cases/. Outcomes are recorded as practice completed, self-assessed mastery or externally reviewed mastery. None of these is a credential, and nothing in this phase qualifies anyone to design, analyse or approve real engines, pressure vessels, combustors or spacecraft thermal systems.
References: references/phase-07.md. Every required reading is free. The MIT 16.Unified thermodynamics and propulsion notes (@mit-16-unified-thermodynamics-propulsion-notes, linked by section title only, since their authors do not permit copying) and the openly licensed MIT OCW 16.050 notes (@mit-ocw-16-050-thermal-energy) carry the first and second laws, cycles, exergy and the heat-transfer introduction. Yan's Introduction to Engineering Thermodynamics (@libretexts-yan-engineering-thermodynamics) carries systems, the first law for closed systems and control volumes, pure-substance tables and entropy. Lienhard's A Heat Transfer Textbook (@lienhard-heat-transfer-textbook) carries conduction, convection, radiation and the cooling-curve models. NASA RP-1311 (@nasa-rp-1311-cea-analysis) and Ellgen's Thermodynamics and Chemical Equilibrium (@libretexts-ellgen-thermodynamics-chemical-equilibrium) carry equilibrium, with OpenStax Chemistry 2e (@openstax-chemistry-2e) for stoichiometry, heats of combustion and equilibrium constants, and OpenStax University Physics Vol. 2 (@openstax-university-physics-vol2) for the physics side throughout. The lessons add the further sources named in the reference map. The curriculum links to every source and writes its own explanations.