Courant number
C = cΔt/Δx
c = 2, Δx = 0.1, Δt = 0.04 gives 0.8.
For an explicit scheme for the wave equation with speed , grid spacing and time step , stability needs the Courant number .
This page is easier if you are comfortable with:
The idea is physical: in one time step information travels a distance , and the numerical scheme must reach at least that far. If exceeds , the true solution depends on points the scheme never looks at, so the scheme cannot be right. For , , , : stable. The largest step is , and gives : unstable. The wave itself is described in the wave equation and d'Alembert's solution.
For sound in air, m/s, a grid with m requires s. Halving forces halving , so the cost of a 3D simulation grows like the fourth power of the resolution. Compare the stricter condition for diffusion in the explicit heat scheme.
The same idea limits the stability of Euler's method, and the spatial differences are those of the central difference. Implicit methods such as Crank–Nicolson avoid the restriction.
The condition links the time step to the grid size and wave speed so that a simulation stays stable.
Time steps above 0.05 push the Courant number over 1.
These examples are worked by hand, step by step, so you can compare your own working.
Find for , , .
Find for , , .
Find the largest for and .
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
C = cΔt/Δx
c = 2, Δx = 0.1, Δt = 0.04 gives 0.8.
C ≤ 1
For explicit upwind schemes.
Δt = 0.06 gives C = 1.2
Violates CFL.
Δt ≤ Δx/c = 0.05
The CFL limit.
The Courant–Friedrichs–Lewy condition requires the numerical domain of dependence to contain the true one: for u_t + c u_x = 0 with an explicit upwind scheme, the Courant number C = |c|Δt/Δx must satisfy C ≤ 1.
c = 2, Δx = 0.1, Δt = 0.04. Find C.
Find the largest stable Δt.
Δt = 0.06. Find C.
Halve Δx to 0.05. What is the new Δt limit?
Δt ≤ Δx ✗
Δt ≤ Δx/c ✓
Speed matters.
stable means accurate ✗
necessary for stability only ✓
It does not ensure accuracy.
Δx units ✗
consistent units ✓
Match units.
C > 1 faster ✗
C > 1 diverges for explicit schemes ✓
Violates CFL.
Try each one on paper, then open the answer. Use the solver above to see the full working.
0.5
0.05
1.5
0.02
1
0.05
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Solve: …
The Courant number must be at most 1.
cΔt/Δx.
The explicit scheme is unstable.
Δt must halve too.
explicit heat scheme stability.
Euler method stability.
More in Numerical methods and optimisation and the formula sheets.