Controls
Presets
Parameters
Model checks
The science
Why a hot-air balloon floats. The envelope is open at the bottom, so the air inside has the same pressure p as the air outside, and by the ideal gas law its density is ρi = p/(R Ti), smaller than the outside density ρa = p/(R Ta) when Ti > Ta. The envelope has a fixed volume V, so the net lift is (ρa − ρi) V g − m g, where m is the mass of fabric, basket, burners, fuel and crew. The balloon is in equilibrium when the hot air is light enough that this is zero: Ti = Ta ρa/(ρa − m/V). Higher up the air is thinner and colder, so a hotter envelope is needed; the temperature rises until it hits the fabric limit (120 °C here), which sets the ceiling.
Atmosphere. The standard-atmosphere troposphere: Ta = T0 − L z with L = 6.5 K/km and p = p0(Ta/T0)g/(RL), p0 = 101 325 Pa, R = 287.05 J/kg/K; you can change the ground temperature T0.
Heat balance and thermal lag. With the mouth open, the heated air expands out of the envelope, so the heat input only raises the temperature of the air that stays: (cp mi + Cfabric) dTi/dt = Qburner − U A (Ti − Ta), where mi = pV/(R Ti), cp = 1005 J/kg/K, Cfabric is the heat capacity of the nylon skin (0.45 kg/m² at 1700 J/kg/K) and A is the envelope area. This is a slow first-order lag with a time constant of 10 minutes or more: the pilot must anticipate. The loop altitude ← lift ← temperature ← burner behaves like a double integrator with delay, which is why a proportional-only autopilot with a high gain sustains a limit-cycle oscillation (try the aggressive preset) and why the derivative term on the climb rate adds the needed damping.
Autopilot. A PID controller on the altitude error with the derivative taken on the measured climb rate and conditional integration against windup. Its output is the burner duty (fraction of time the burner fires, here treated as a continuous power). Equilibrium needs a steady duty U A (Teq − Ta)/Qmax which the integral term finds on its own.
What the five checks compare. (1) The pressure from integrating dp/dz = −ρ g with RK4 against the closed form. (2) The equilibrium temperature from a bisection root of the lift function against the closed form. (3) The step response of the heat balance (time-stepped, with the air mass changing) against the exact analytic integral by partial fractions. (4) The period of the small vertical oscillation with frozen temperature against 2π√(M/k) from the lift gradient. (5) The closed-loop autopilot: zero steady-state error and the steady duty matching the predicted hold duty.
Simplifications and honest limits. Still air with no wind or thermals (a real balloon is steered by wind layers), constant lapse rate and a dry atmosphere, the hot air at one uniform temperature (real envelopes have a hot top and cooler skirt), no vent or parachute valve, a spherical-equivalent area for heat loss and drag, a burner treated as continuous power and perfect fuel metering. The heat-loss coefficient 5 W/m²K and the 90 % burner efficiency are illustrative values chosen to give a cooling rate of a few kelvin per minute and a hold duty of about 10 %, not measurements of a specific balloon; propane heating value 46.3 MJ/kg is the usual textbook figure. The 120 °C limit is a typical fabric rating. This is a teaching model, not a flight-planning tool; never use it to decide a real flight.