Fanno Flow Calculator

Duct flow

Exit Mach number M20.61
Inlet Fanno parameter 4fL*/D at M11.0691
Pressure ratio p2/p10.82
Temperature ratio T2/T10.98
How this was calculated
  1. Fanno flow is adiabatic flow in a constant-area duct with friction: friction drives subsonic flow up toward Mach 1 and supersonic flow down toward Mach 1, the choking limit.
  2. At the inlet Mach 0.5 the Fanno parameter 4fL*/D is 1.0691; the duct's friction parameter 0.60 leaves 0.4691 of it at the exit.
  3. Solving the Fanno relation for that remaining parameter gives an exit Mach number of 0.61.
  4. Across the duct the pressure ratio is 0.82 and the temperature ratio is 0.98; if the friction parameter exceeded 1.0691 the flow would choke at Mach 1.

This Fanno flow calculator handles adiabatic flow in a constant-area duct with friction, the case where wall friction alone pushes a stream toward Mach 1. Enter your inlet Mach number and the duct's friction parameter, and the calculator returns the exit Mach number along with the associated pressure ratio. The underlying quantity is the Fanno parameter 4fL*/D, which measures how much friction a stream can still absorb before choking. At gamma 1.4 it is 1.0691 at Mach 0.5, 0.0723 at Mach 0.8 and 0.3050 at Mach 2. A Mach 0.5 inlet with a duct friction parameter of 0.6 exits at Mach 0.61 with a pressure ratio of 0.82; a Mach 2 inlet with a friction parameter of 0.2 exits at Mach 1.41; and a Mach 0.8 inlet with a friction parameter of 0.05 exits at Mach 0.88, close to choking. If the duct's friction parameter exceeds the inlet Fanno parameter, the flow chokes: mass flow is capped and the inlet conditions must change.

The method follows the standard Fanno relations, which treat friction as the only loss in an adiabatic, constant-area duct and so drive subsonic flow up toward Mach 1 and supersonic flow down toward Mach 1. That is why the Fanno parameter is the accepted way to judge how close a duct is to choking. This page shows the formula, step-by-step workings, the worked examples above and the sources behind the numbers, so you can check every result rather than take it on trust.

Worked examples

Mach 0.5 with friction 0.6

(0.5 · 0.6 · 1.4)

Exit Mach number M20.61
Inlet Fanno parameter 4fL*/D at M11.0691
Pressure ratio p2/p10.82
Temperature ratio T2/T10.98

Mach 2 slowed by friction

(2 · 0.2 · 1.4)

Exit Mach number M21.41
Inlet Fanno parameter 4fL*/D at M10.3050
Pressure ratio p2/p11.60
Temperature ratio T2/T11.29

Mach 0.8 close to choking

(0.8 · 0.05 · 1.4)

Exit Mach number M20.88
Inlet Fanno parameter 4fL*/D at M10.0723
Pressure ratio p2/p10.90
Temperature ratio T2/T10.98

What is Fanno flow?

Fanno flow is adiabatic flow through a constant-area duct with friction. "Adiabatic" means no heat is added to or removed from the stream; the only thing acting on the gas is wall friction. In a duct of fixed cross-section, that friction raises entropy and changes the Mach number in a direction that depends on how fast the stream is already moving: friction drives subsonic flow toward Mach 1 and drives supersonic flow down toward Mach 1. Both regimes converge on the same sonic endpoint, which is why a single family of curves describes them.

That family is the Fanno curve, a line traced on a temperature-entropy diagram by all the states a stream can reach from a given inlet condition as friction is added. The curve peaks at Mach 1, and the path from any starting Mach number runs along the curve toward that peak. The distance to the peak is measured by the Fanno parameter 4fL*/D, where f is the friction factor, L* is the length of duct that would bring the flow to Mach 1, and D is the hydraulic diameter. The parameter therefore says how much friction a stream can still absorb before choking. At gamma 1.4 it is 1.0691 at Mach 0.5, 0.0723 at Mach 0.8 and 0.3050 at Mach 2. Notice how small the reserve is at Mach 0.8: a stream already close to sonic has very little friction left to give.

The worked examples show the parameter in action. A Mach 0.5 stream through a duct with a friction parameter of 0.6 exits at Mach 0.61, with a pressure ratio of 0.82. A Mach 0.8 stream with a friction parameter of 0.05 exits at Mach 0.88, close to choking. On the supersonic side the movement is downward instead: a Mach 2 stream with a friction parameter of 0.2 exits at Mach 1.41. In every case the exit Mach number has moved toward 1, never away from it.

Choking is the limit of this process. If the duct's friction parameter exceeds the inlet Fanno parameter, the flow chokes: the mass flow is capped and the inlet conditions must change. Adding more duct length or more roughness past that point does not push more mass through — it forces the upstream state to adjust instead. That is why the Fanno parameter is the practical quantity to check when sizing a duct, and why a Fanno flow calculation begins with the inlet Mach number and the friction the duct can supply.

Fanno parameter 4fL*/D at gamma 1.4: 1.0691 at Mach 0.5, 0.0723 at Mach 0.8, 0.3050 at Mach 2. If the duct's friction parameter exceeds the inlet value, the flow chokes.

The Fanno parameter and choking

The Fanno parameter, written 4fL*/D, is the number that ties duct length, friction factor and diameter together into a single measure of friction. It is best read as a budget: it tells you how much friction a stream can still absorb before it chokes. The star in the symbol marks the choking point, so L* is the length of duct that would bring the flow to Mach 1 from its current state. A high value means the stream has plenty of friction left to spend; a low value means it is close to the limit. Because the parameter depends on the Mach number, every inlet condition comes with its own allowance. At gamma 1.4, the Fanno parameter is 1.0691 at Mach 0.5, 0.0723 at Mach 0.8 and 0.3050 at Mach 2. Note how the allowance shrinks sharply as subsonic flow approaches Mach 1, while supersonic flow at Mach 2 still has a moderate reserve.

The calculator uses that budget directly. It looks up the Fanno parameter for the inlet Mach number, then subtracts the duct's own friction parameter, which represents the friction the gas actually experiences over the given length, diameter and friction factor. The remainder is the Fanno parameter available at the exit. The calculator then solves the Fanno relation for the exit Mach number that corresponds to that remainder. In effect, the inlet value and the duct value are compared on the same scale, and the difference sets the exit state.

The reference values show how the arithmetic plays out. Take Mach 0.5 with a duct friction parameter of 0.6: subtracting 0.6 from 1.0691 leaves a remainder that corresponds to an exit Mach of 0.61, with a pressure ratio of 0.82. Take Mach 2 with a friction parameter of 0.2: the supersonic stream decelerates to Mach 1.41. Take Mach 0.8 with a friction parameter of 0.05: the exit is Mach 0.88, close to choking because the inlet allowance of 0.0723 is nearly used up. These three cases illustrate the central behavior of Fanno flow: friction drives subsonic flow toward Mach 1 and supersonic flow down toward Mach 1, so the exit always moves closer to the sonic point than the inlet.

The subtraction also defines the choking condition. If the duct's friction parameter exceeds the inlet Fanno parameter, the remainder would be negative, which has no physical solution. The flow chokes: the mass flow is capped and the inlet conditions must change. In practice this means the duct cannot pass more flow at the given inlet state, and the upstream pressure, Mach number or both must adjust until the budget balances again. Checking the inlet Fanno parameter against the duct's friction parameter before trusting an exit Mach number is therefore the quickest way to see whether a design sits safely below the choke limit or right at it.

Quick check: if the duct's friction parameter is larger than the inlet Fanno parameter, the flow chokes and no subsonic exit Mach number exists.

Worked examples

The three worked examples below show how the Fanno flow calculator moves an inlet Mach number through a duct with a given friction parameter. In each case the friction parameter 4fL/D is compared with the inlet Fanno parameter 4fL*/D, the friction the stream can still absorb before choking. All values use gamma 1.4.

In the first case, air enters at Mach 0.5 and the duct has a friction parameter of 0.6. At Mach 0.5 the inlet Fanno parameter is 1.0691, so 0.6 is well within what the stream can absorb. The flow exits at Mach 0.61 with a pressure ratio of 0.82. Because the flow is subsonic, friction pushes it toward Mach 1: Mach number rises and static pressure falls along the duct. Choking is not reached here, and the duct still has friction capacity to spare.

The second case starts supersonic, at Mach 2 with a friction parameter of 0.2. The inlet Fanno parameter at Mach 2 is 0.3050, so 0.2 leaves only a small margin. The flow exits at Mach 1.41. Friction drives supersonic flow down toward Mach 1, so the Mach number falls and static pressure rises along the duct. The exit is still supersonic, but the remaining friction capacity is small; a slightly longer duct or rougher wall would bring the flow to choking.

The third case enters at Mach 0.8 with a friction parameter of 0.05. At Mach 0.8 the inlet Fanno parameter is only 0.0723, so 0.05 uses most of it. The flow exits at Mach 0.88, close to choking. As in the first case, the subsonic stream accelerates toward Mach 1 and static pressure drops, but here the margin is thin. If the duct's friction parameter exceeded 0.0723, the flow would choke: mass flow would be capped and the inlet conditions would have to change.

Inlet MachDuct friction parameterInlet Fanno parameter 4fL*/DExit MachPressure ratioTrend and choking
0.50.61.06910.610.82Subsonic: Mach rises, pressure falls; no choking
20.20.30501.41Not givenSupersonic: Mach falls toward 1; small margin left
0.80.050.07230.88Not givenSubsonic: Mach rises, pressure falls; close to choking
In every case, compare the duct friction parameter with the inlet Fanno parameter 4fL*/D. If the duct value is larger, the flow chokes, mass flow is capped, and the inlet conditions must change.

Fanno vs Rayleigh flow

Fanno flow and Rayleigh flow are the two classic one-effect models for flow in a constant-area duct, and they differ in what is held fixed. Fanno flow is adiabatic flow in a constant-area duct with friction: no heat crosses the walls, but wall shear acts on the stream. Rayleigh flow keeps the friction out and instead adds or removes heat. Because each model isolates a single effect, comparing them shows which behavior comes from friction and which comes from heating, and that comparison is the clearest way to see what a real duct does.

The direction of travel toward Mach 1 is the signature of Fanno flow. Friction drives subsonic flow toward Mach 1 and supersonic flow down toward Mach 1, so both branches converge on the same sonic limit. The Fanno parameter 4fL*/D measures how much friction a stream can still absorb before choking. At gamma 1.4 the values are 1.0691 at Mach 0.5, 0.0723 at Mach 0.8 and 0.3050 at Mach 2. Notice how little room a high-subsonic stream has: at Mach 0.8 only 0.0723 of friction parameter remains before the flow reaches Mach 1.

The worked examples make the approach to choking concrete. A stream entering at Mach 0.5 with a duct friction parameter of 0.6 exits at Mach 0.61, with a pressure ratio of 0.82. Entering at Mach 2 with a friction parameter of 0.2, the flow exits at Mach 1.41, slowed by friction as expected on the supersonic branch. Entering at Mach 0.8 with a friction parameter of 0.05, it exits at Mach 0.88, close to choking. In every case the exit Mach number moves toward 1, and the pressure ratio shows the static pressure changing along with it.

Rayleigh flow, by contrast, is the heat-only case: constant-area flow with heat addition or rejection and no friction. Heat addition pushes a subsonic stream toward Mach 1 and pushes a supersonic stream toward Mach 1 as well, so the thermal choking limit looks familiar, but the mechanism is energy addition rather than momentum loss at the wall. Real ducts combine both. A duct with friction and heat transfer is neither pure Fanno nor pure Rayleigh, and the two effects can reinforce or offset each other depending on the inlet Mach number and how much heat is added.

The choking rule is the practical link between the models. If the duct's friction parameter exceeds the inlet Fanno parameter, the flow chokes: the mass flow is capped and the inlet conditions must change. That is the friction-side counterpart of thermal choking in a heat-addition problem. To run the heat-only case and compare it directly with a Fanno flow result, use the Rayleigh flow calculator on this site.

Fanno flow isolates friction; Rayleigh flow isolates heat. Real constant-area ducts do both, so treat the two models as bounds and limits rather than a complete picture.

FAQs

What is Fanno flow?

Fanno flow is adiabatic flow through a constant-area duct with friction. It is modelled by the Fanno curve, a one-dimensional idealisation of real duct flow. The key behavior is that friction always drives the Mach number toward 1, whether the flow starts subsonic or supersonic.

What is the Fanno parameter 4fL*/D?

The Fanno parameter 4fL*/D represents the remaining friction capacity of a stream before it chokes. At Mach 0.5 it is 1.0691, and at Mach 0.8 it is only 0.0723, for gamma 1.4. A smaller value means less duct length is available before the flow reaches Mach 1.

What happens when a Fanno duct chokes?

When a Fanno duct chokes, the exit reaches Mach 1 and the mass flow is capped. Adding more duct length then changes the inlet conditions instead of the exit Mach number. The choking point marks the maximum friction the stream can absorb at the given mass flow.

Does friction speed up or slow down the flow?

Friction speeds up subsonic flow and slows down supersonic flow. In both cases the Mach number is driven toward 1. This is the defining behavior of Fanno flow: friction always pushes the flow toward sonic conditions, regardless of whether it starts below or above Mach 1.

Mach 0.5 enters a duct with friction parameter 0.6 - what is the exit Mach?

The exit Mach is about 0.61. Using the Fanno relation, the inlet at Mach 0.5 has a friction parameter of 1.0691. Subtracting the duct's 0.6 leaves 0.4691 of remaining parameter, and that value corresponds to Mach 0.61 at the exit.

What is the difference between Fanno and Rayleigh flow?

Fanno flow has friction without heat transfer, while Rayleigh flow has heat transfer without friction. Both are one-dimensional idealisations of real duct flow. They isolate different effects, so each is used to study how a specific process alone changes the flow along a duct.

Sources

Related calculators

Cauchy Number Calculator
Cauchy number calculator: inertia against compressibility in a flow, from density, velocity and the bulk modulus, with the Mach number.
Hazen-Williams Calculator
Friction head loss in a water pipe with the Hazen-Williams equation: length, flow, diameter and the roughness coefficient C for common pipe materials.
Banked Curve Calculator
The ideal speed for a banked curve from radius and banking angle, plus the friction-assisted maximum and minimum speeds for a given coefficient of friction.