The air model at three scales
The air in the game is not a set of separate formulas but a physical field: wind flows around the terrain, and thermals and turbulence take their place and strength from it. It is computed at three levels. This page explains why three levels and why that split is acceptable; what exactly is computed at each level is on its own page:
| Level | What it is for a pilot | Scale | Page |
|---|---|---|---|
| 1. Mean wind field | where it blows, where a slope holds, where wind separates behind a ridge, where thermals “stand”, ceiling, drift | 400 m cell over the area, 100 and 50 m around the pilot; a field per game hour | Wind field: phases and Picard |
| 2. Thermals | core, edge, “missed and dropped”, life of a bubble | 100–500 m, minutes | Thermals |
| 3. Turbulence and rotor | jolts, downdrafts, shaking behind a ridge | under 50 m, seconds | Turbulence and rotor |
The wind in the game is always computed as a field; settings have no choice of computation mode. It is computed by the Rust library dp-air on the processor (the solver is the picard_rs crate); the graphics card takes no part in the wind computation, so the wind does not depend on the card or its driver. This page and the level pages describe that computation.
- Wind field: phases and Picard
- Level 1 of the air model: which flow regimes exist over terrain (flow over, separation, waves, blocking, convection, drainage, calm), how each is computed and what the game gets out — mean wind field, phase map, w*, z_i, separation zones.
- Thermals
- Level 2 of the air model — thermals: where sources, strength, ceiling and drift come from (the wind field), how a bubble is built, plus dust devils and thunderstorms.
- Turbulence and rotor
- Level 3 of the air model: how gusts, turbulence, downdrafts, rotor and reverse wind behind a ridge come out of the mean field; how the lee zone was calibrated against measurements; where the model is wrong.
Why three levels
The atmosphere spans scales from tens of kilometers (slopes, valleys, daily circulations) to fractions of a meter (eddies that toss the wing). Computing everything at once, honestly, in one go is impossible: to resolve 30 m eddies over tens of kilometers you need billions of cells on every time step — minutes per frame. And it is not needed: the scales differ in character, and each suits its own method.
- Size and time. The mean wind field over terrain changes over an hour and lives at kilometers — it can be computed as a steady solution of the equations on a coarse grid. A thermal is tens to hundreds of meters and minutes of life: a separate object that must be put in the right place and given strength. Turbulence is meters and seconds: its details are random, the statistics matter.
- Each level takes “where and how much” from the one below. The mean field says where there is more heat at the ground and the air converges (thermals are born there), where the flow separates behind a ridge (turbulence is stronger there), what wind carries the eddies. The shape and life of a thermal bubble and the gust spectrum are their own, but their amplitudes are derived from the field rather than fitted separately.
- No double counting. The vertical velocity of the field is split into mechanical (air flowing over terrain — goes to the pilot directly) and convective (from heating — reaches the pilot only through thermals). Otherwise heat would be counted twice.
- One physical law across levels. The strength of a thermal is the Deardorff scale w from the heat flux off the ground and the mixing-layer height; turbulence uses the same formula, and its w equals that of the thermal sources: ratio 1.001 ± 0.038 (Kayancha, 12:00).
What a pilot feels and what not
Whether the split is acceptable is decided by what a person under the wing perceives.
Feels: lift on a slope and its height; wind speed-up at the brow; sink and reverse wind behind a ridge; the rotor; a thermal — core, edge, drift with the wind and the ceiling at the inversion; the difference between morning and noon; jolts that roll the wing: the wing halves get air from the field at different points, so a different flow across the span rolls and shakes the wing by itself.
Does not feel or see (absent in the model or averaged): individual eddies smaller than a few meters — they give noise, not eddies as objects; the exact position of every neighboring thermal — density and strength matter, not a photograph of a particular day; thermal “streets” along the wind; moisture in the field (clouds come from the weather model); the nocturnal jet. These are deliberate limits, listed below and on the level pages.
How the split is checked: where levels meet, mass flux (lift in thermals is compensated by sink around them) and the common scale w* are preserved; the turbulence spectrum is checked against the −5/3 law, thermal density against the literature. Where a check failed, it is written in the limits.
How the field is computed around the pilot

The level 1 field lies on three nested grids: a 400 m area for the whole place (38.4 km, air.domain_l_m), a 100 m window (6.4 km) and a 50 m window (3.2 km) around the pilot. The windows join their parent without a step: 50 m before the window edge the wind at 50 m above ground changes by 9–12 % (inside the window, by 9–18 %). When the pilot has moved a quarter of the window side from its center (window_shift_frac), the windows are recomputed in the background while the game uses the old ones; if the window recomputation fails, the old ones stay and the next attempt comes no sooner than 10 s later. The field is recomputed every 15 game minutes (recompute_game_min) and when the wind or weather changes; the new one is blended in smoothly over 60 seconds. The field’s date is the flight date (sun, heating and thermals depend on it).

The computation runs on the processor, in the crate’s threads: by default all cores minus one, at least one (air.threads = 0); the thread count changes only the time, not the result (checked bit for bit at 2, 4 and 20 threads). The solver’s stopping criterion in the game is the tolerances × 5 (air.tol_scale = 5). When a place loads there is a “Computing the wind” stage with an “Iteration: N” line (with several runs, “Run r of n · Iteration: N”). Crate measurements at Ongudai (an 18-thread machine, threads limited by hand): loading with the 100 and 50 m windows — 78 s on 8 threads; the 400 m area alone on 2 threads — 94–104 s. On weak machines loading a place takes longer. The computation has no time limit: it stops on convergence or at the 3000-iteration limit. The menu wind is the wind at 10 m above the launch, while the solver sets the wind at the edge of the area; so loading runs in two passes: after the first the wind above the launch is measured and the inflow factor is adjusted (within 0.3–1), and the field of the second pass is the one given to the game. The finished field goes to a cache on disk (the “Wind cache on disk” slider in settings, default limit 200 MB, 0 turns it off): a repeat of the same place, launch and conditions takes it from the cache instead of computing. In flight, a failed recomputation leaves the previous field in place.
Multiplayer. Every client computes the field itself, on its own processor. The result does not depend on the thread count on one machine (bit for bit, 2/4/20 threads); agreement between different processors has not been checked.
What it is based on
The basis is the conservation of mass, momentum and heat in the Boussinesq approximation: air density is constant except in the buoyancy term. The model looks for a steady solution — the mean picture over an hour, rather than a step-by-step time simulation (on a fine grid that would cost minutes per frame). It is solved by the Picard method: approximations are refined until the field stops changing. But “one Picard for everything” has a known limit: in calm, in strong blocking and in convection there is no steady solution, or it is not what is needed. That is why at level 1 a sorting into wind phases stands before Picard — see the separate page.
The computing method was chosen from several. Time stepping is exact but expensive (in the prototype 7–18 s per 200 m area against 2–5 s for Picard); linear kernels with superposition are physically wrong — a thermal from a sum of kernels came out three times weaker than the real one. The Picard method gives an error of at most 0.5 % in wind and about 1 % in temperature deviation. More in the prototype summary (in Russian).
What it was checked against
The data are collected in the catalog (in Russian): where they come from, what was measured and what limits it.
Askervein (South Uist island, Scotland, 1982–83) is the classic test of flow over a single hill 116 m high: masts along lines across the hill, wind 210°, 8.9 m/s, nearly neutral air. The data are Zenodo 4095052 (in Russian), CC BY 4.0. We compared the speed-up of wind relative to a reference mast at the same height: 36 points at 10 m and a height profile at the summit.

What did not match: on the fine grid (12.5 m) the model gives a speed-up of 0.59–0.61 at 10 m near the summit against the measured 0.82–0.88; just past the summit it already slows the flow (0.19 against 0.68 and −0.07 against 0.40), while the measurements still show speed-up there. Along the ridge it is 0.1–0.3 below the measured.
Perdigão (Portugal, 2017) is two parallel ridges with a valley-to-ridge drop of about 200 m and a distance between ridges of about 1.4 km, patches of forest; masts and lidars. It is needed for the wake and rotor, which Askervein hardly shows (only 3 points behind the hill). Two neutral cases were selected: wind from the north-east (27.04.2017) and from the south-west (11.05.2017), about 8.8 m/s at 100 m. From the paper by Menke et al. 2019 the statistics of the reverse-flow zone over 1619 ten-minute periods are taken: it is present 52 % of the time, 697 m long on average (about 2.8 ridge heights), with a maximum reverse speed of about 0.22 of the wind at 100 m.

What did not match: the model does produce a reverse-flow zone behind the ridge, but weaker than measured: length 0.40 of the distance between ridges against 0.50 (north-east case), maximum reverse speed 0.11 of the wind at 100 m against 0.22; in the south-west case the length is 0.20 against 0.50.
Other. Thermal density N·zi/L = 1.4–1.5 against 1.2 ± 0.4 from the literature (Lenschow & Stephens 1980); number, radius and strength of cores follow Allen 2006; the gust spectrum follows the −5/3 law. Pilots’ words did not enter the fit: they were compared with the model after calibration (table below).
Calibration
There is no fitting “by eye so that it feels good”: that is the author’s decision. Calibration follows the Professor scheme from high-energy physics: a grid of model runs over the parameters, a polynomial approximation of each observable, and the χ² minimum against measurements with uncertainties. Only unknown parameters with physical meaning are fitted; those known from the literature are fixed with a reference; there are noticeably fewer parameters than observables.
Result of the last joint calibration: the common mixing length near terrain is 27 m (+4 −3) from Askervein and Perdigão together, χ²/ndf = 208/76 (Askervein 165 for 47 observables, Perdigão 43 for 35). This is much more than the uncertainties allow: the model does not describe the data within their limits. The cases pull the parameter in different directions: Askervein alone wants 145 m, Perdigão alone 10 m (the lower edge of the grid). This is a structural discrepancy of the model that a parameter cannot remove. The exponent of the wind profile with height depends on stability; the Prandtl number is taken from neutral-layer measurements.
Calibration went in three stages; the third replaced the first two, and comparing them shows what can be trusted.
1. Askervein alone, one parameter. The mixing length λ as a fraction of the layer depth (λ/h) and the hill roughness z0 were fitted; everything else comes from the literature.

The minimum landed on the upper limit λ/h = 0.25, χ²/ndf = 86.2/38. It later turned out that the pull upward was an artifact: the wind-profile exponent α had been set by hand (0.17), not fitted.
2. Added α and the mast profile. λ/h, the inflow α and z0 were fitted; 8 points of the speed profile with height were added to the 39 speed-ups.

The mast profile closed the valley: α was determined (0.235), λ/h dropped to 0.03, and the earlier estimate (0.25 at α = 0.17) turned out to be far outside the allowed region.
3. Askervein and Perdigão together (765 runs) is what the game uses: λ = 27 m (+4 −3); the game applies a 40 m floor (λ = the larger of 40 m and 0.0158·h), and α for Askervein is 0.242 ± 0.004. The residuals show where the model misses:

In one sentence: the model does not describe Askervein within the uncertainties (165 for 47 observables), is closer on Perdigão (43 for 35) but underestimates the reverse-flow zone — so read the numbers on this page as “order of magnitude with a known bias”, not as an exact forecast.
Pilots’ words against the model after calibration (synthetic case, wind 5 m/s):
| Pilot’s words | Target | Model | Matched |
|---|---|---|---|
| lift band about 2 mountain heights, calm above | speed-up at 2 H above the foot at most 10 % | 19 % (potential flow: 24 %) | no |
| saddle is a “pipe” ×1.5 | 1.5 ± 0.2 | ×1.9 at 20 m, ×1.74 at 50 m | no |
| in a saddle the wind turns toward the axis | at most 5° | 4.2° | yes |
| oblique wind 45° | lift 0.55–0.8 of direct | 0.72 | yes |
Limits of the model
Common to the whole model; specific ones are on the level pages.
- No moisture or clouds in the field. Cloud base is taken from the weather model; the field does not compute air humidity.
- Steady mean, not a time simulation. The field is the mean circulation over an hour; bubbles and eddies belong to levels 2 and 3.
- Speed-up at the brow is underestimated by 15–20 % at 20–100 m above the slope. The cause is the numerical diffusion of 1st-order advection and the limited terrain resolution. The way to fix it, if pilots say “weak at the brow”: 2nd order in the windows (time ×2–3) or a 25 m window.
- Saddle ×2.05 instead of ×1.5. At a Froude number of about 2 the flow goes over the whole range, and the saddle works as a lowered ridge. The day’s stability comes from the weather; there is no separate “saddle knob”.
- The lift band over a steep ridge is higher than “two heights”.
- Land cover is accounted for in heating and wind roughness (see Thermals), but soil moisture comes from terrain only, and over forest mechanical turbulence is underestimated.
- Evening, night, calm. The nocturnal jet maximum is not reproduced; stable cases have not been checked against inflow data (the calibration is neutral). In calm the model has no steady solution — the field there comes from statistics (see phases).
More
- Parts of the in-game description: field on the CPU (in Russian), thermals (in Russian), turbulence (in Russian), limits (in Russian).
- Calibration (in Russian), sensitivity (in Russian), the Picard field path in the Rust crate (in Russian).
- Joint calibration on two data sets: Askervein and Perdigão.
- Catalog of experimental data (in Russian); data of Askervein (in Russian) and Perdigão.
- Research: 3D reference on Ongudai terrain (in Russian), thermals from the field, turbulence from the field, 2D prototype (in Russian).
- Wind phases: research (in Russian), measurements on ideal terrain (in Russian).
- Wind field: phases and Picard, thermals, turbulence and rotor.
- Weather; research.