Lesson
The theory — Weather on a Grid
A forecast model holds the atmosphere as numbers on a grid and moves them forward in time steps. The simplest thing it does is advection: wind carries a pattern along, ∂u/∂t + c ∂u/∂x = 0. This page solves that on a ring 160 km round, and the choice matters, because advection has an exact answer — after a time t the field is the starting field shifted by c·t and nothing more — so every error reported here is measured against the truth rather than against a finer run. The Courant number ν = c·Δt/Δx is how many cells the wind crosses in one step, and the CFL condition ν ≤ 1 is the rule the explicit schemes here obey or fail. Courant, Friedrichs and Lewy published it in 1928, eighteen years before anyone ran a numerical forecast.
What each symbol means
c- the wind speed, in m/s. Constant here; in a real model it is part of the answer rather than a setting
Δx- the grid spacing, which is 160 km divided by the number of cells
Δt- the time step, in seconds
ν- the Courant number, c·Δt/Δx. Everything on the page turns on whether it is above or below 1
N- cells around the ring, from 10 to 400
- Assumes
- One equation, one dimension, one wind speed, and a ring with no edges. Because the exact answer is known, the error reported is the scheme's own and nothing else. It also assumes an explicit scheme, where each new value is built only out of old ones. That is the assumption the CFL condition is really about, and it is the one a real model partly escapes.
- Breaks when
- On most of what a forecast centre deals with. A real model carries several wave speeds at once and the fastest is sound, about 340 m/s: obeying CFL for sound waves nobody is forecasting would force a time step thirty times smaller than the weather needs, which is why operational models are semi-implicit and treat those waves apart. Wind is not constant either, so ν has to hold against the fastest wind anywhere on the grid rather than an average one. A limited-area model has boundaries, and what to do at them is a research subject of its own. An implicit scheme escapes the CFL limit altogether, at the price of solving a system of equations every step instead of sweeping an array.
Problem solved in full
-
The 4 km model takes 40 minutes. What does 500 m cost? 7 steps
A 4 km forecast model covers its domain in 40 minutes of computer time, and you are asked what the same forecast would cost at 500 m. Work it out before reading on, and notice which of the three factors you were not expecting. Press Exactly on the edge to put the tool on the 1 km row of the table.
-
Start with the cells. Halving the spacing doubles the count along each side, and a forecast domain has two horizontal dimensions, so one halving is four times the cells: 4 km gives 40 × 40 where 2 km gives 80 × 80.
-
Now the factor that catches people. The time step is not yours to keep. CFL ties it to the spacing, so halving Δx halves the largest Δt allowed: at a 10 m/s wind and ν = 0.9, a 4 km grid permits 360 s and a 2 km grid permits 180 s. Steps for one simulated day go from 240 to 480.
-
Multiply them. Four times the cells and twice the steps is eight times the work for one halving: 384,000 cell updates a day at 4 km against 3,072,000 at 2 km. The table's last column reads 8.00 on every row, which is the factor rather than an estimate of it.
-
From 4 km to 500 m is three halvings, so the factor is 8³ = 512. The table agrees end to end: 384,000 updates a day at 4 km, 196,608,000 at 500 m.
-
The 40 minutes becomes 40 × 512 = 20,480 minutes, which is a fortnight, for one day of weather. That is the answer to why a forecast grid is the size it is rather than as fine as anyone would like, and why a centre buying twice the resolution is buying eight times the machine.
-
The estimate is honest about its own shape. It assumes the work per cell update does not change, which is about right for one advection term and increasingly generous as the physics gets richer. It assumes ν stays at 0.9, which no real model can promise, because ν has to hold against the fastest wind on the grid and a jet stream does not consult the modeller.
-
Where the page stops: a centre facing this arithmetic does not simply pay it. Part of the factor is bought back with a semi-implicit scheme, which escapes CFL for the fast waves at the cost of solving a system each step, and part by spending resolution only where it is needed, in a nested or variable-resolution grid. Both are real, neither is free, and this page computes neither.
Answer
512 times the work, so roughly a fortnight for a single day of forecast. Four times the cells and twice the steps per halving, three halvings, 8³ = 512. The factor nobody expects is the third one: the Courant condition spends your time step for you.
-
Learning path
How a weather forecast is made
References (4)
- The condition itself, published in 1928 — eighteen years before anyone integrated a forecast, and about hyperbolic equations rather than about weather: R. Courant, K. Friedrichs and H. Lewy, "Über die partiellen Differenzengleichungen der mathematischen Physik." Mathematische Annalen 100(1), 1928, pp. 32-74. DOI 10.1007/BF01448839
- The first numerical forecast that worked, and the paper that had to choose a grid and a time step to make it work: J. G. Charney, R. Fjørtoft and J. von Neumann, "Numerical Integration of the Barotropic Vorticity Equation." Tellus 2(4), 1950, pp. 237-254. DOI 10.3402/tellusa.v2i4.8607
- Richardson's 1922 attempt, which is where the subject starts and where the arithmetic first bit — his six-hour forecast of pressure change came out 145 hPa, against a real change of almost nothing: L. F. Richardson, Weather Prediction by Numerical Process. Cambridge University Press, 1922.
- Where the stability analysis of these two schemes is done properly, including why a second-order centred difference is unconditionally unstable for pure advection: D. R. Durran, Numerical Methods for Fluid Dynamics: With Applications to Geophysics, 2nd edition. Springer, 2010.