Presets
Playback
Aircraft
Sailplanes and a paraglider on the same physics core as the 3D page.
Pilot and autopilot
Arrow keys fly manually: left/right bank, up/down speed. Space pauses, R restarts.
Wind and shear
Convection (thermals)
Simulation
Layers
Model checks
The science
Glide polar
Quasi-steady flight with a parabolic drag polar: CL = 2 n m g / (rho V^2 S), CD = CD0 + CL^2 / (pi e AR), sink rate s = V CD / CL, glide ratio L/D = CL/CD. The best glide ratio is L/D max = 1/2 sqrt(pi e AR / CD0) at CL = sqrt(CD0 pi e AR); minimum sink is at CL = sqrt(3 CD0 pi e AR). Air density follows the standard atmosphere with an adjustable temperature offset. Class values (mass, wing area, aspect ratio, CD0) are typical published figures, not a measured polar of one aircraft; the page marks them as assumptions.
Turns and stall
In a coordinated turn the load factor is n = 1/cos(phi), the radius r = V^2/(g tan phi) and the turn rate g tan(phi)/V. Stall speed grows as sqrt(n), so steep circling needs more speed and costs more sink (dashed polar). Roll rate is limited to 25 deg/s.
Thermals
Convective velocity scale w* = (g/T * H/(rho cp) * zi)^(1/3) from the surface heat flux H and the convective layer depth zi. The core updraft at height z above its source follows a Lenschow-type profile w = k w* (z/zi)^(1/3) (1 - 1.1 z/zi) (k = 2.9 here). Across the thermal the vertical speed is w(r) = w_core (1 - x) e^-x with x = (r/R)^2, which has zero net mass flux (the sink ring balances the core). Each thermal leans downwind by U z / w_rise, pulses on a 15-30 minute cycle and starts on a sun-facing slope found from the terrain model. Cumulus mark the top of active thermals. Real thermals are far more irregular: this is a smooth ensemble model.
Ridge (slope) lift
Wind pushed up a slope gives w = U . grad(h_s) e^(-agl / lambda), where h_s is the smoothed relief and lambda is the decay height (about the horizontal scale of the ridge). The lee side of the same ridge produces sink. This is a linearised estimate: it has no flow separation, rotors or mountain (lee) waves, which are the subject of other simulations on this site.
Wind and wind shear
Wind speed rises with height as U(z) = U2000 (z/2000)^a, is reduced near the ground by surface friction, and veers by a chosen number of degrees per kilometre. The glider flies in moving air, so when it climbs or descends through a wind gradient its ground-frame inertia changes its airspeed by dV = -dW . heading (a lower tail wind raises airspeed); the pilot model then relaxes back to the commanded speed with a 2.2 s time constant.
MacCready speed to fly
For a climb rate MC the cross-country speed is V_xc = V_g MC / (MC + s(V) - w); the page maximises it over the polar (air-mass lift w, tail wind included), which is the tangent construction on the polar graph: the line from (0, MC) touches the polar at the optimum speed. A pilot should leave a thermal when the climb drops below MC.
Autopilots and idealisations
Thermal centring circles in the air mass and shifts the circle toward the lift-weighted centroid of the last turn. Ridge patrol flies along the crest, steers toward stronger lift and turns around when it runs out. Cross-country glides to the goal at MacCready speed, heads for the best nearby cumulus (the idealised pilot sees where thermals are), circles above MC and leaves below it. Terrain avoidance looks 450 m ahead. The terrain is a generated alpine valley (20 km square, Blender mesh), not a real map.
What the checks verify
(1) a brute-force scan of the polar against the closed-form best glide; (2) the thermal profile has zero net flux and its circle average matches a Bessel-function formula; (3) a still-air glide in the time stepper loses the altitude predicted by the polar; (4) a 30-degree turn has the predicted radius and the MacCready tangent condition holds.
Educational model; not a flight-planning tool. No relation to any manufacturer.
What to try
- Thermal day (sailplane): watch the cross-country autopilot glide, find cumulus, circle and leave at the MacCready rate; raise MC to 3 and see it skip weak lift.
- Ridge soaring day: turn on the ridge-lift arrows (green up, red down), then lower the wind and see the lift vanish; change the decay height.
- Paraglider thermal: compare the polar and speeds with the sailplane; strong wind makes a paraglider go backwards.
- Strong shear aloft: push the shear exponent and veering, fly through the gradient and watch the airspeed readout jump.
- Add water ballast: the polar shifts to higher speed for the same L/D max, and the speed to fly rises.
- Switch to manual (arrow keys) and try to stay in a thermal yourself.