Black FridayUpgrade your career this Black Friday. Get up to ₹60,000 Scholarship on IIT programsUp to ₹60K Black Friday Scholarship52 seats leftOffer ends Fri, 27 Nov, 11:59 pm IST.

Black Friday Scholarship – IIT Jammu & IIT Roorkee

The best Black Friday deal isn't a gadget. It's your next career move.

Get up to ₹60,000 Black Friday Scholarship on our PG programs with IIT Jammu and iHUB DivyaSampark, IIT Roorkee. IIT certification, 12 live sessions with IIT faculty and 100% placement assistance.

Only 52 seats left. Offer ends Fri, 27 Nov, 11:59 pm IST

3,905 engineers placed since 2019 · 1,276 hiring companies

By submitting you agree to our Terms and Privacy Policy.

Your free demo class is requested

Browse courses

Courant Number and CFL Condition: Formula, Derivation and Time Step

What the Courant number C = u Δt/Δx means, why explicit schemes blow up above the CFL limit (derived step by step and shown in a C = 0.8 vs C = 1.2 test run), how implicit solvers differ, and the time-step settings Ansys Fluent and OpenFOAM use.

Courant Number and CFL Condition: Formula, Derivation and Time Step

The Courant number is the distance a fluid particle or wave travels in one time step, measured in cells: . The Courant-Friedrichs-Lewy (CFL) condition says an explicit time-marching scheme is stable only while stays at or below a limit set by the scheme, which is 1 for first-order upwind. Implicit solvers have no such hard limit, but the time step still decides how accurate the transient answer is. In practice: work out on your smallest cell and fastest flow, then pick to suit your solver.

In short

  • For 1D linear advection with first-order upwind, von Neumann analysis gives an amplification per step of . It is stable only for . At the shortest wave grows by 40% every step.
  • In Skill-Lync's worked example (100 cells, top-hat pulse), the run at stays bounded with a peak of 0.997 after 75 steps. At the largest value reaches 6.2 after 10 steps and 1.65 million after 50.
  • Ansys Fluent 2026 R1 defaults: Courant number 1.0 for the density-based explicit solver (do not exceed 2.0) and 5.0 for density-based implicit, which can often be raised to 10, 20 or 100. Explicit VOF uses 0.25 at the interface, and CFL-based adaptive time stepping uses 1 (Ansys Fluent User's Guide).
  • OpenFOAM sets the time step with adjustTimeStep yes; and maxCo in system/controlDict. The damBreak VoF tutorial uses maxCo 1 and maxAlphaCo 1, and the solver may grow the time step by at most 20% per step (OpenFOAM-12 source).

This guide is for students and junior CFD engineers who have seen "Courant Number mean: ... max: ..." in a solver log and want to know what to set. New to CFD? Start with what CFD is and how it works. Every number below was computed by a script, and solver settings are quoted from the Ansys and OpenFOAM documentation.

What is the Courant number?

The Courant number is a dimensionless ratio of how far the flow moves in one time step to the size of a cell: , where is the local velocity, the time step and the cell length in the flow direction. means the fluid crosses 30% of a cell per step. means it jumps past a whole cell.

Think of the mesh as a row of rooms and each time step as one turn. On each turn, a cell only hears from its next-door neighbours. If the flow carries information further than one room per turn, the update is built from data that does not contain the answer.

Three details matter in real cases:

  • Use the local value, then the worst one. Every cell has its own Courant number, so the solver reports a field with a mean and a maximum. Stability is governed by the maximum, which usually sits where cells are smallest and velocity is highest.
  • Use the cell size in the direction of the flow. The OpenFOAM cavity tutorial defines as the cell size in the direction of the velocity. A thin boundary-layer cell with flow running along it is not as restrictive as its thinnest dimension suggests.
  • Use the fastest signal, not just the flow speed. In compressible flow, pressure waves travel at the speed of sound relative to the fluid. An explicit compressible solver must therefore use , which for low-speed air is many times larger than .

What is the CFL condition?

The CFL condition is the rule that a numerical scheme's stencil must contain the physical domain of dependence: the region the true solution depends on. For explicit schemes it becomes , where depends on the scheme (1 for first-order upwind). It is necessary for convergence, but not sufficient on its own.

Richard Courant, Kurt Friedrichs and Hans Lewy published it in 1928 in Mathematische Annalen (volume 100, pages 32-74), in a paper on difference equations of mathematical physics. An English translation appeared in the IBM Journal of Research and Development in 1967. They were proving when finite-difference solutions converge, decades before CFD existed.

The picture below shows the argument for first-order upwind with flow to the right. The new value at node is built from nodes and at the old time level. The true solution at that point is whatever value sat at one step earlier, because the pulse simply moves. That foot point is cells upstream.

Space-time stencil of first-order upwind. At C = 0.8 the characteristic traced back from the new value lands 0.8 cells upstream, between nodes i-1 and i, inside the stencil. At C = 1.2 it lands 1.2 cells upstream, beyond node i-1, outside the stencil.
At the information the new value needs lies inside the two nodes the scheme uses. At it lies beyond them, so no choice of weights can recover it.

"Necessary but not sufficient" matters. The forward-time, central-space scheme (FTCS) also uses a stencil that contains the domain of dependence when , yet it is unstable for every above zero. Satisfying CFL tells you a scheme can be stable. Only a stability analysis of that specific scheme tells you whether it is.

How is the CFL limit derived? (von Neumann analysis)

Von Neumann analysis writes the numerical error as a sum of waves and asks whether any wave grows from one step to the next. For explicit first-order upwind on linear advection, the growth factor satisfies for every wavelength only when . That inequality is the CFL limit for this scheme.

Start from the 1D linear advection equation with constant speed , the simplest model of a quantity carried by a flow:

First-order upwind takes the spatial difference from the upstream side and steps forward in time explicitly:

Now substitute one Fourier mode, . Here is the phase angle of a wave with wavenumber , and is how much that wave is multiplied by each step. Dividing through by gives:

Square the real and imaginary parts and use :

Since , for every wave exactly when , which means . The most dangerous wave is the shortest one the mesh can hold, two cells long (). For that wave : 0.6 at and 1.4 at .

Amplification factor |G| against phase angle for explicit upwind at C = 0.25, 0.5, 0.8, 1.0 and 1.2, and implicit upwind at C = 5. Only C = 1.2 rises above 1, reaching 1.4 for the shortest wave; C = 1.0 is exactly 1 for every wave.
Amplification per step from the formula above. Every curve at or below is stable. is the only explicit case that grows. Computed in the run folder's calc.py.

Two results from the same algebra are worth remembering:

  • is exact for this scheme. , so every wave moves exactly one cell per step with no loss. Real problems never let you hold in every cell, so this is a curiosity, not a target.
  • Central differencing with explicit time stepping (FTCS) never works for pure advection. Its amplification is , which is above 1 for any . This is why the CFL condition alone is not enough.

Why low Courant numbers smear the solution

A Taylor-series expansion of the upwind scheme (the "modified equation") shows it actually solves advection plus a diffusion term that the mesh adds. The added diffusivity is:

With m/s and m, that is 0.001 m²/s at , 0.0025 m²/s at and 0.0045 m²/s at . Above it turns negative: anti-diffusion, which sharpens every wiggle until the solution blows up. So for this explicit scheme, the best accuracy is close to the limit. A tiny is stable, but it costs more steps and adds more numerical smearing.

Worked example: 1D advection at C = 0.8 vs C = 1.2

We ran Skill-Lync's own small test case to see the theory happen. A top-hat pulse of height 1, between 0.1 m and 0.3 m, is carried at m/s around a periodic 1 m domain of 100 cells ( m) for 0.6 s. The exact answer is the same pulse, moved to 0.7-0.9 m. The time step is set from .

import numpy as np
N, u, T = 100, 1.0, 0.6
dx = 1.0 / N
x = (np.arange(N) + 0.5) * dx
phi0 = ((x >= 0.1) & (x < 0.3)) * 1.0

def upwind(C):
    dt = C * dx / u
    f = phi0.copy()
    for _ in range(round(T / dt)):
        f = f - C * (f - np.roll(f, 1))
    return f

for C in (0.5, 0.8, 1.0, 1.2):
    f = upwind(C)
    print(C, f.max(), abs(f).max())
Courant numberTime step, stepsResult at t = 0.6 s
C = 0.50.005 s, 120Stable. Peak 0.931, edges smeared (L1 error 0.087)
C = 0.80.008 s, 75Stable. Peak 0.997, less smearing (L1 error 0.055)
C = 1.00.010 s, 60Exact: the pulse moves one cell per step
C = 1.20.012 s, 50Unstable. max |φ| = 6.2 after 10 steps, 2,544 after 30, 1.65 million after 50
Left: pulse profiles at t = 0.6 s; C = 0.8 peaks at 0.997 and C = 0.5 at 0.931 against the exact top-hat from 0.7 to 0.9 m. Right: maximum |phi| on a log scale; C = 0.8 and 1.0 stay at 1 while C = 1.2 climbs to 1.65 million after 50 steps.
Same scheme, same mesh, only the time step changes. Moving from to , a 50% larger step, turns a usable answer into overflow. Script: calc.py in the run folder.

The blow-up starts at the sharp edges of the pulse, where the two-cell wave is strongest, and it grows at close to the predicted 1.4 times per step. One detail surprises people: the total area under the curve stays exactly 0.2 in every run, including the one that reaches a million. A finite-volume scheme can conserve mass perfectly and still be unstable. Conservation and stability are separate properties.

Courant number for implicit solvers: why can they run above 1?

Implicit schemes solve for all new cell values together, so each new value depends on the whole domain, not just its neighbours. Their stencil always contains the domain of dependence, and many, like backward-Euler upwind, are unconditionally stable. You can run well above 1. The limit becomes accuracy, not stability.

For implicit (backward Euler) upwind, the same analysis gives:

This is at most 1 for every positive . That is the dashed curve in the amplification plot: stable at , but it shrinks short waves hard ( for the two-cell wave). Running the same pulse implicitly shows the trade:

Pulse at t = 0.6 s: explicit upwind at C = 0.8 peaks at 0.997; implicit upwind at C = 1.2 peaks at 0.62; implicit at C = 5 with 12 steps peaks at 0.42 and is spread over most of the domain.
Implicit upwind at and never blows up, but the peak falls to 0.62 and 0.42 (L1 errors 0.175 and 0.245, against 0.055 for explicit ).

Commercial solvers say the same. The Ansys Fluent User's Guide states that because the pressure-based transient formulation is fully implicit, "there is no stability criterion that must be met in determining" the time step. It then asks for a time step at least an order of magnitude smaller than the smallest time constant you want to capture. It suggests judging the step by inner iterations: 5-10 per time step is ideal, and many more means the step is too large. For periodic flows it suggests about 20 time steps per blade passing or per vortex-shedding period.

So for an implicit solver, the Courant number is an accuracy dial. Near 1, the flow moves about one cell per step, which resolves in time what the mesh resolves in space. Far above 1, you are averaging over events the mesh could have shown. The same explicit/implicit split appears in structural crash and impact analysis, where explicit codes are limited by the stress-wave speed. The implicit vs explicit FEA guide covers that side, and the post on time step in LS-DYNA shows how a crash code switches between explicit and implicit stepping.

What is the Courant number in 2D and 3D?

In 2D and 3D on a structured mesh, the directional Courant numbers add: . The sum, not each term, must stay below the scheme's limit. On unstructured meshes, solvers use a face-flux form: half the sum of absolute volume fluxes through a cell's faces, times , divided by the cell volume.

The sum is a real stability result, not just bookkeeping. For 2D explicit upwind, the shortest wave in both directions has . Sampling all wave directions in our script gives a maximum of exactly 1.0 at . It is 1.4 at , even though each direction on its own is below 1.

For any cell shape, OpenFOAM computes the cell Courant number from face fluxes (velocity times face-area vector) and cell volume :

The ½ is there because the signed fluxes sum to zero by mass conservation (what enters leaves), so the formula adds magnitudes and halves them. On a rectangular cell the two forms agree. Take a cell 1 mm by 0.5 mm with m/s, m/s and s: , , , and the face-flux formula also gives 0.40. The largest stable step at would be s.

The diffusion number: the other explicit limit

Explicit schemes also have a limit for diffusion (viscosity, heat conduction). With diffusivity , the diffusion number is . For explicit central differencing, von Neumann gives . That means in 1D, and with equal spacing in 2D and in 3D, all checked in our script. Because is squared, this limit, not the Courant number, often controls explicit runs on very fine meshes.

How do you calculate the time step from the Courant number?

Rearrange the definition: . Use the smallest cell length in the flow direction and the largest velocity expected in that region, taken from a steady run or a hand estimate. Then let the solver adapt the step as the flow develops, or check the reported maximum Courant number after the first few steps.

Example 1: the OpenFOAM cavity tutorial. The lid-driven cavity is a 0.1 m square box with a 20 × 20 mesh and a lid moving at 1 m/s. The cell size is m, and the fastest flow is next to the lid, so needs s. That is the deltaT the tutorial uses. Refine to 40 × 40 and the step must halve to 0.0025 s, which the tutorial also does.

Example 2: a transient (LES-type) run on a fine mesh. These inputs are illustrative. Say a steady run shows a peak speed of 36 m/s, and the smallest streamwise cell in the region of interest is 0.8 mm. Ansys best practice for scale-resolving simulation asks for a CFL of about 1 in the LES region, so:

Simulating 0.2 s of flow then takes 9,000 time steps. At Fluent's suggested 5-10 inner iterations each, that is 45,000-90,000 iterations. If you halve the cell to 0.4 mm, the step halves too (18,000 steps). In 3D you also have 8 times the cells, so the run costs about 16 times more. If you try to save time with s instead, the peak Courant number becomes 4.5, which an implicit solver may survive but an LES should not use.

This is the honest trade-off in transient CFD. Mesh refinement and time step are linked, and the smallest cell in a refinement zone you added for a picture can set the time step for the whole run. Look at how mesh sizing is chosen before shrinking cells where nothing important happens.

Local vs global time stepping

For steady problems, time is only a route to the converged answer, so each cell can take its own time step from its own stability limit. The Fluent Theory Guide calls this local time stepping: you set one global Courant number, and small cells take small steps while large cells take large ones. A transient run cannot do this. All cells must advance by the same physical , so the smallest cell sets the pace (global time stepping).

What is a good Courant number?

For explicit schemes, a good Courant number is just below the scheme's stability limit, commonly 0.5-1, and 0.25 at a VOF interface in Ansys Fluent. For implicit transient solvers, use about 1 where you need time accuracy, such as LES. For steady or implicit density-based runs, much higher values like 5-100 are normal because only convergence matters.

SituationTypical Courant numberSource
Explicit first-order upwind (textbook)von Neumann analysis above
Fluent density-based, explicitDefault 1.0. Stable up to 2.5 in theory, use no more than 2.0, and drop to 0.1-0.5 to start a difficult caseFluent User's Guide 37.4.1
Fluent density-based, implicitDefault 5.0. Often 10, 20, 100 or higherFluent User's Guide 37.4.1
Fluent explicit VOF (interface)0.25 default for the VOF sub-step. Keep the VOF Courant number around or below 1Fluent User's Guide 27.3
Fluent adaptive time steppingCFL-based default 1. Multiphase-specific global Courant number default 2Fluent User's Guide 51.16
LES / scale-resolving, Fluent or CFXAbout 1 in the LES region. Above 1 with the non-iterative fractional-step scheme can give a wrong answerAnsys SRS best practice 12.1.3
OpenFOAM PISO/PIMPLE (icoFoam, VoF)Below 1. The damBreak tutorial uses maxCo 1, maxAlphaCo 1OpenFOAM tutorials
Fluent pressure-based transient (implicit)No stability limit. Choose from the physics (5-10 iterations per step, about 20 steps per period)Fluent User's Guide 37.13

Treat the table as a starting point. Reacting flows and combustion CFD add fast chemical and acoustic time scales that can tighten the step further. Skill-Lync's combustion CFD specialisation works through those cases, and the Master's in CFD covers time-step selection across solvers.

How does Ansys Fluent handle the Courant number?

Fluent uses the Courant number in four places: the density-based solver's time-step control, a stabilising Courant number for the pressure-based coupled steady solver, the explicit VOF sub-step at the free surface, and CFL-based adaptive time stepping for transient runs. The defaults differ, so check which one a tutorial means.

  • Density-based solver. The Courant number in Solution Controls is "the main control over the time-stepping scheme". Fluent turns it into a time step per cell from cell volume, face areas and the largest local wave speed (Theory Guide equation 23-89).
  • Pressure-based coupled solver, steady. The Courant number here stabilises convergence and is not a physical time step. The Theory Guide relates it to an under-relaxation factor, so lowering it damps the iterations more strongly.
  • Explicit VOF. The volume fraction advances in sub-steps that keep the interface Courant number below the Multiphase Model setting (0.25 by default). The console prints a "Global Courant Number [Explicit VOF Criteria]".
  • Adaptive time stepping. In the Run Calculation task page, set the time-step type to Adaptive and the method to CFL-Based (target Courant number, default 1), Error-Based or Multiphase-Specific (global Courant number, default 2).

A worked VOF sub-step with illustrative inputs: water moves at 3 m/s through 2 mm interface cells. The transit time across a cell is s. At the default 0.25, the VOF sub-step can be at most a quarter of that, s. With a global time step of s, Fluent therefore needs about 6 volume-fraction sub-steps per time step. The global step's own interface Courant number is 1.5. The Advanced CFD using Ansys Fluent course sets up multiphase and transient cases like this.

How does OpenFOAM set the time step? (maxCo and adjustTimeStep)

OpenFOAM transient solvers print the mean and maximum cell Courant number every step. If adjustTimeStep yes; is set in system/controlDict, they rescale deltaT each step to keep the maximum near maxCo, capped by maxDeltaT. VoF solvers add maxAlphaCo for the interface. Set writeControl adjustableRunTime so output times still land exactly.

This is the time-control block of the OpenFOAM-12 damBreakLaminar tutorial:

deltaT          0.001;
writeControl    adjustableRunTime;
writeInterval   0.05;
adjustTimeStep  yes;
maxCo           1;
maxAlphaCo      1;
maxDeltaT       1;
  • What gets printed. Each step logs a line such as Courant Number mean: 0.221985 max: 0.839923 (from the cavity tutorial). The maximum is the number to watch. It comes from the face-flux formula above, computed in CourantNo.H.
  • How the step changes. In the OpenFOAM-12 source (setDeltaT.H), the new step is the smaller of 1.2 times the old step and maxCo/CoNum times the old step, then capped by maxDeltaT. Reductions are immediate. Increases are limited to 20% per step to avoid oscillation.
  • Defaults if you leave them out. In the openfoam.com v2312 source, adjustTimeStep defaults to false and maxCo to 1. Without the switch, deltaT stays fixed however high the Courant number climbs.
  • Checking after a run. The CourantNo function (listed by postProcess -list) calculates the cell Courant number as a field, so you can see which cells set the limit.

The Advanced CFD using OpenFOAM course goes through controlDict, fvSchemes and fvSolution case by case.

Why does my simulation blow up when the Courant number is high?

An explicit scheme blows up above its Courant limit because the shortest waves on the mesh are multiplied by more than 1 every step (1.4 per step at ). Implicit solvers usually fail more quietly, with inner iterations that stop converging. The usual causes:

  • Checking the mean instead of the maximum. A low mean can hide a high maximum in a few small cells.
  • Refining the mesh without changing the time step. Halving cells doubles the Courant number at the same .
  • The flow speeding up after the start. Jets and falling water reach speeds you did not plan for. Use adaptive time stepping or watch the log.
  • Startup shocks. Fluent recommends a conservatively small step for the first 5-10 time steps of a transient run, then increasing it gradually.
  • Bad cells. Highly stretched cells make the Courant estimate unreliable, as the Ansys SRS guide notes. A run that diverges at a reasonable Courant number often has a mesh problem. The convergence criteria guide shows how to tell divergence from slow convergence.

The opposite mistake, a Courant number of 0.01 in an explicit run, costs 100 steps where one would do. The question also comes up in interviews: see the CFD engineer interview questions.

Frequently asked questions

Is the Courant number the same as the CFL number?

Yes, in everyday CFD use. "Courant number" and "CFL number" both mean , the cells crossed per time step. Strictly, the CFL condition is the rule that this number must stay below a scheme-dependent limit. Ansys Fluent's documentation uses "Courant number (CFL)" for the same quantity.

Can the Courant number be greater than 1?

Yes, with implicit solvers and for steady problems. Fluent's density-based implicit default is 5, and values of 10-100 are common. For explicit schemes, values above the scheme's limit (1 for first-order upwind) make the solution grow without bound. For time-accurate LES, Ansys recommends about 1 even with an implicit solver.

What happens if the Courant number is too small?

The run stays stable but wastes time, and it can be less accurate. Each halving of doubles the number of steps. For explicit upwind, the numerical diffusion grows as falls, so a pulse smears more at than at . Our test case showed peaks of 0.931 and 0.997.

Does a steady-state simulation need a Courant number?

Only as a convergence control. Steady solvers march in pseudo-time, so the Courant number sets how big each pseudo-step is. Too high and iterations oscillate or diverge, too low and they crawl. Fluent's density-based and pressure-based coupled solvers expose it directly. With local time stepping, each cell takes its own step from one global Courant number.

Sources and further reading

Want this on your résumé?

Talk to a counsellor.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.