A four-seat light aircraft in a longitudinal point-mass model. Change weight, flaps, air temperature and altitude, then watch stall speed, best-glide speed and the power curves move.
With the engine idle and weight, flaps and air as set above, the aircraft is flown at each speed (pitch holds the speed), the glide angle is measured from the integrated flight, and it is compared with the closed form atan(CD/CL). The flattest glide should sit at the best-glide speed.
The science
Atmosphere. ISA troposphere: T = 288.15 − 0.0065 h + ΔISA, p = 101325 (1 − 0.0065 h / 288.15)^5.2559 Pa, ρ = p / (287.05 T). Indicated airspeed is shown as TAS √σ with σ = ρ/1.225.
Lift and drag. L = ½ ρ V² S CL, D = ½ ρ V² S CD. The lift curve is linear, CL = a (α − α₀) with a = 4.9 rad⁻¹, α₀ = −2°, up to CL,max = 1.55 at α ≈ 16.5°; beyond that lift falls to 55 % of the peak over 8° and flat-plate pressure drag 1.28 sin²α is blended in. Flaps (0–30°) shift the curve up by up to 0.45 and add 0.018 (δ/30)² to CD0. Drag is the parabolic polar CD = CD0 + k CL², k = 1/(π e AR), AR = b²/S = 7.47, e = 0.75, CD0 = 0.027 (S = 16.2 m², b = 11 m, typical of a four-seat high-wing light aircraft).
Characteristic speeds. Stall speed Vs = √(2W / (ρ S CL,max)). Maximum lift-to-drag occurs at CL = √(CD0/k), giving (L/D)max = 1/(2√(CD0 k)) at Vbg = √(2W/(ρS) · √(k/CD0)). In a steady glide the flight path angle is γ = atan(CD/CL), independent of weight; weight only changes the speed at which each angle occurs.
Engine. Shaft power falls with density as P = P₀ (σ − 0.12)/0.88 (P₀ = 120 kW), propeller efficiency 0.80, thrust T = η P / V capped by a static-thrust limit of 3.2 kN × σ. Power required in level flight is D V; excess power gives the rate of climb ROC = (Pa − Pr)/W.
Equations of motion (point mass in the vertical plane, wind axes, RK4 at 50 steps per second): m dV/dt = T cos α − D − m g sin γ, m V dγ/dt = T sin α + L − m g cos γ, dh/dt = V sin γ. Pitch dynamics are replaced by a first-order response of α to the commanded angle (time constant 0.5 s); the short-period mode is therefore not modelled.
Simplifications and illustrative constants. No ground effect, wind, turbulence, sideslip, propeller slipstream, or compressibility; the post-stall curve and the pitch-break amount are illustrative; the autopilot gains are scheduled for stability, not tuned to a real autopilot. Not for flight planning. Models built with Blender, scene by Three.js.