Rayleigh Flow Calculator

Duct flow

Exit Mach number M20.61
Inlet T0/T0* ratio0.6914
Pressure ratio p2/p10.89
Temperature ratio T2/T11.17
How this was calculated
  1. Rayleigh flow is frictionless flow in a constant-area duct with heat transfer: heating drives the Mach number toward 1 from either side, and the T0/T0* curve sets how much heat the flow can accept before it thermally chokes.
  2. At Mach 0.5 the stagnation temperature ratio T0/T0* is 0.6914; multiplying by the heat ratio 1.2 gives a target of 0.8296.
  3. Solving the Rayleigh relation on the same subsonic branch gives an exit Mach number of 0.61.
  4. Across the heated section the pressure ratio is 0.89 and the temperature ratio is 1.17.

This Rayleigh flow calculator handles frictionless flow in a constant-area duct with heat transfer. You enter your inlet Mach number and the amount of heating or cooling, and it returns the exit Mach number and pressure ratio. Heating drives the Mach number toward 1 from either side, the condition known as thermal choking, while cooling drives it away. For example, heating a Mach 0.5 stream so its stagnation temperature rises 20% (ratio 1.2) gives an exit Mach of 0.61 and a pressure ratio of 0.89. Cooling a Mach 2 stream by 10% (ratio 0.9) raises the exit Mach to 2.47, and heating a Mach 0.3 stream by 10% gives an exit Mach of 0.32.

The method rests on the Rayleigh relation, the standard treatment of heat addition in constant-area flow. With gamma 1.4 it gives T0/T0* = 0.69136 at Mach 0.5, 0.79302 at Mach 2 and exactly 1 at Mach 1. For a given inlet Mach there are two mathematical branches, subsonic and supersonic; the calculator stays on the inlet's branch, as a real duct does. This page shows the formula, step-by-step workings, worked examples and sources so you can check every number yourself.

Worked examples

Heating a Mach 0.5 stream by 20%

(0.5 · 1.2 · 1.4)

Exit Mach number M20.61
Inlet T0/T0* ratio0.6914
Pressure ratio p2/p10.89
Temperature ratio T2/T11.17

Cooling a Mach 2 stream by 10%

(2 · 0.9 · 1.4)

Exit Mach number M22.47
Inlet T0/T0* ratio0.7934
Pressure ratio p2/p10.69
Temperature ratio T2/T10.73

Heating a Mach 0.3 stream by 10%

(0.3 · 1.1 · 1.4)

Exit Mach number M20.32
Inlet T0/T0* ratio0.3469
Pressure ratio p2/p10.99
Temperature ratio T2/T11.10

What is Rayleigh flow?

Rayleigh flow is the model for frictionless flow in a constant-area duct with heat transfer. Strip away wall friction and change the geometry to a straight pipe of fixed cross-section, and the only thing left that can alter the flow is heat added to or removed from the gas. That simplified picture is what engineers use to predict how heating and cooling move a stream through the sound-speed boundary, and it is the reason the Rayleigh flow model shows up wherever combustion or heat exchange happens in a duct.

The central behavior is thermal choking. Adding heat to a subsonic stream pushes the Mach number up toward 1; adding heat to a supersonic stream pushes the Mach number down toward 1. Either way, heating drives the flow toward Mach 1, and cooling drives it away from Mach 1 — a subsonic stream slows down and a supersonic stream speeds up. Mach 1 is the limit: once a stream reaches it through heat addition, no further heating can raise the stagnation temperature without changing the inlet conditions, which is why the condition is called choking.

The Rayleigh relation quantifies this through the stagnation-temperature ratio T0/T0*. At a specific-heat ratio of 1.4, that ratio is 0.69136 at Mach 0.5, 0.79302 at Mach 2, and exactly 1 at Mach 1. The numbers carry a practical message: a stream near Mach 1 has very little room left to absorb heat before it chokes, while a low-Mach stream can take a large heat load. The same relation run in reverse tells you how much cooling a supersonic stream can tolerate before its behavior changes.

Worked examples make the direction of the changes concrete. Heating a Mach 0.5 stream so its stagnation temperature rises 20 percent (a ratio of 1.2) gives an exit Mach of 0.61 and a pressure ratio of 0.89. Heating a Mach 0.3 stream by 10 percent gives an exit Mach of 0.32. On the supersonic side, cooling a Mach 2 stream by 10 percent (ratio 0.9) raises the exit Mach to 2.47. Notice that the subsonic cases creep upward while the supersonic case accelerates sharply — the branches respond very differently to the same kind of heat transfer.

For a given inlet Mach number the mathematics offers two branches, subsonic and supersonic, and both can satisfy the same stagnation-temperature ratio. A real duct does not jump between them, so the Rayleigh flow calculator stays on the branch set by the inlet, matching what the hardware would actually do. This is why combustors are the home application of the model: a constant-area burner section adds heat to a moving stream, and the designer needs to know how close the flow is to thermal choking before the fuel schedule is fixed.

Heating always pushes Mach number toward 1; cooling always pushes it away. At Mach 1 the stagnation-temperature ratio is exactly 1, so there is no margin left for further heating.

The T0/T0* relation

The T0/T0* relation is the backbone of every Rayleigh flow calculation. It expresses the ratio of the local stagnation temperature T0 to the stagnation temperature T0* that the same stream would reach if it were heated or cooled all the way to Mach 1. Because T0* is a fixed reference for the given inlet conditions, the ratio acts as a single number that pins down where the flow sits on the Rayleigh curve. At gamma 1.4 the relation gives T0/T0* = 0.69136 at Mach 0.5, 0.79302 at Mach 2, and exactly 1 at Mach 1. The curve therefore rises toward the sonic point from both sides: a subsonic stream and a supersonic stream can share the same stagnation-temperature ratio, which is why the branch matters.

The calculator uses this relation directly. It reads T0/T0* at the inlet Mach number, multiplies that value by the heat ratio you supply — the new stagnation temperature divided by the old one — and then solves on the same branch for the Mach number that produces the resulting T0/T0*. Heating a Mach 0.5 stream so its stagnation temperature rises 20 percent, a ratio of 1.2, gives an exit Mach of 0.61 and a pressure ratio of 0.89. Heating a Mach 0.3 stream by 10 percent gives an exit Mach of 0.32. On the supersonic side, cooling a Mach 2 stream by 10 percent, a ratio of 0.9, raises the exit Mach to 2.47. In each case the arithmetic is the same: one ratio in, one ratio out, one Mach number read back off the curve.

The branch rule is not a mathematical nicety; it is how a real duct behaves. For a given inlet Mach there are two mathematical branches, subsonic and supersonic, and the calculator stays on the inlet's branch. A stream entering at Mach 0.5 is solved on the subsonic side, and a stream entering at Mach 2 is solved on the supersonic side, even when the stagnation-temperature ratio alone would also match a point on the other branch. This matches the physics of Rayleigh flow — frictionless flow in a constant-area duct with heat transfer — where heating drives the Mach number toward 1 from either side (thermal choking) and cooling drives it away.

Two practical consequences follow from the T0/T0* relation. First, the curve has a ceiling: no amount of heating can push the flow past Mach 1, so a heat ratio large enough to demand a T0/T0* above 1 has no solution on the inlet branch, which is the thermal choking limit. Second, the same heat ratio moves a subsonic stream and a supersonic stream in opposite Mach directions, so the sign of the Mach change is set by the branch, not by the ratio alone. Reading T0/T0* at the inlet, scaling it by the heat ratio, and solving on the same branch captures both effects with one consistent method.

Reference values at gamma 1.4: T0/T0* = 0.69136 at Mach 0.5, 0.79302 at Mach 2, and exactly 1 at Mach 1.

Worked examples

The three cases below show how a Rayleigh flow calculation behaves in practice. Each row starts from an inlet Mach number, applies a stagnation-temperature change, and reports the exit Mach number together with the pressure and temperature ratios. Read them as a set: the subsonic cases move toward Mach 1 when heated, the supersonic case moves away from Mach 1 when cooled, and the third case shows how little a small heat addition changes a slow stream.

The first case is the classic thermal-choking approach. A Mach 0.5 stream is heated until its stagnation temperature rises 20%, a ratio of 1.2. The exit Mach number is 0.61 and the pressure ratio is 0.89, so the flow has accelerated and the static pressure has fallen. The physical story is straightforward: heat added in a constant-area duct raises the stagnation temperature, the flow speeds up toward the sonic limit, and the pressure drops as the velocity rises. The Rayleigh relation puts T0/T0* at 0.69136 for Mach 0.5, which is why a 20% stagnation-temperature rise moves the exit only to 0.61 rather than all the way to 1.

The second case runs the other way. A Mach 2 stream is cooled by 10%, a stagnation-temperature ratio of 0.9, and the exit Mach number rises to 2.47. Cooling drives the Mach number away from 1, so a supersonic stream gets faster and its pressure ratio climbs well above 1. At Mach 2 the Rayleigh relation gives T0/T0* = 0.79302, so the stream starts closer to its sonic reference than the subsonic case does, and a modest extraction of heat produces a large change in Mach number. This is the mirror image of heating a subsonic flow: the same relation, read from the supersonic branch.

The third case is a gentle heat addition. A Mach 0.3 stream is heated by 10% and the exit Mach number is 0.32, a small step toward Mach 1. The pressure ratio is 0.32 in the table, reflecting the strong pressure fall that accompanies acceleration from a low initial Mach number. The lesson is that the response scales with how close the inlet already is to sonic conditions: at Mach 0.3 there is a lot of room before choking, so a 10% heat addition barely moves the Mach number.

One caution applies to all three rows. For a given inlet Mach number there are two mathematical branches, subsonic and supersonic, and the calculator stays on the inlet's branch, as a real duct does. That is why the Mach 2 cooling case does not jump to a subsonic answer, and why the Mach 0.5 and 0.3 heating cases do not jump to supersonic ones.

CaseInlet MachChangeExit MachPressure ratioTemperature ratio
10.5Heated, ratio 1.20.610.891.2
22Cooled, ratio 0.92.47—0.9
30.3Heated, ratio 1.10.320.321.1
Heating pushes the Mach number toward 1 from either side; cooling pushes it away. The branch is set by the inlet, not chosen afterward.

Rayleigh vs Fanno flow

Rayleigh flow and Fanno flow are the two classic simplified models of compressible duct flow, and they differ in exactly one assumption. Rayleigh flow is frictionless flow in a constant-area duct with heat transfer. Fanno flow keeps the constant area but reverses the trade: friction is present and heat transfer is zero. In Rayleigh flow, heating drives the Mach number toward 1 from either side, a condition known as thermal choking, while cooling drives the Mach number away from 1. A Fanno duct behaves differently because wall friction alone pushes the flow toward Mach 1 as well, but through a loss of stagnation pressure rather than a change in stagnation temperature. Keeping the two straight matters because the physics, the charts and the limiting behavior are not interchangeable.

The Rayleigh relation makes the heat-addition limit concrete. With gamma equal to 1.4, the stagnation temperature ratio T0/T0* is 0.69136 at Mach 0.5, 0.79302 at Mach 2, and exactly 1 at Mach 1. That last value is the choke point: it is the most heat a given inlet state can absorb before the flow can no longer adjust. The numbers also show the asymmetry between the branches. Heating a Mach 0.5 stream so its stagnation temperature rises 20 percent, a ratio of 1.2, gives an exit Mach of 0.61 and a pressure ratio of 0.89. Heating a Mach 0.3 stream by 10 percent gives an exit Mach of 0.32. Cooling works in the opposite direction: cooling a Mach 2 stream by 10 percent, a ratio of 0.9, raises the exit Mach to 2.47. For a given inlet Mach there are two mathematical branches, subsonic and supersonic, and the calculator stays on the inlet's branch, as a real duct does.

Real hardware rarely matches either idealization. A combustor is the clearest example: fuel is burned in a roughly constant-area liner, which is heat addition and therefore Rayleigh-like, but the gas also rubs against the walls and passes through cooling features, which is friction and therefore Fanno-like. Designers treat the two effects together rather than pretending the duct is perfectly insulated or perfectly smooth. The Rayleigh model tells you how much stagnation temperature rise the flow can take before it thermally chokes; the Fanno model tells you how much stagnation pressure the friction will cost along the same length. Both margins have to be checked, because a duct that is safe on heat alone can still lose too much pressure to friction, and a duct with generous friction margin can still choke thermally.

A practical way to use the two models is to run them side by side on the same inlet condition. Use this Rayleigh flow calculator to see how a given heat addition or removal moves the Mach number along its branch and where the thermal choke sits, then run the same inlet Mach and duct length through the Fanno flow calculator on this site to see the friction-driven march toward Mach 1 and the associated stagnation pressure loss. Neither result is the full answer for a combustor, but together they bracket the problem and show which effect dominates at your operating point.

Rayleigh flow: constant area, heat transfer, no friction. Fanno flow: constant area, friction, no heat transfer. Real combustors combine Rayleigh heating with Fanno friction losses, so check both.

FAQs

What is Rayleigh flow?

Rayleigh flow is frictionless flow in a constant-area duct with heat transfer. The key behavior is directional: adding heat drives the Mach number toward 1, while cooling drives it away from 1. This makes Rayleigh flow a standard model for analyzing how heat addition changes the speed of a high-speed gas stream.

What is thermal choking?

Thermal choking is the limit where the added heat brings the exit to Mach 1. Beyond that point, more heat cannot pass at the same mass flow, so the inlet conditions change instead. In practice, the duct cannot accept additional heat without the upstream state shifting to a different operating point.

What is T0/T0* at Mach 0.5?

At Mach 0.5 with gamma 1.4, T0/T0* is 0.69136. This means a Mach 0.5 stream can accept about 45% more stagnation temperature before choking. The ratio compares the current stagnation temperature to the value at which the flow would reach Mach 1, so the remaining margin is limited.

Does heating always slow a supersonic stream?

Yes. Heating a supersonic Rayleigh stream lowers its Mach number toward 1, while cooling raises it. For example, a Mach 2 stream cooled by 10% exits at Mach 2.47. So the direction of the Mach change depends on whether heat is added or removed, not on the flow being supersonic alone.

Why does the calculator keep the same branch?

A real duct cannot jump between the subsonic and supersonic Rayleigh branches without a shock or a throat. The calculator therefore keeps the exit state on the inlet's branch. This reflects the physical constraint that the flow cannot switch branches through heat transfer alone in a constant-area duct.

Where is Rayleigh flow used?

Rayleigh flow is used in combustor and afterburner analysis, where heat is added to a high-speed stream in a roughly constant-area duct. In those applications, the constant-area heat-transfer model helps predict how the Mach number shifts as fuel burns and stagnation temperature rises.

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.
COP Calculator (Heat Pump & Refrigerator)
The Carnot coefficient of performance for a heat pump or refrigerator from its hot- and cold-side temperatures — the theoretical ceiling every real machine is measured against.
Heat Conduction Calculator
Fourier's law of conduction: the watts flowing through a slab of material from its conductivity, area, thickness and the temperature drop across it — walls, plates and insulation.