Perfect gas, frictionless, 1-D, steady flow is assumed. c_p (air) = 1.005 kJ/(kg·K) is used in T_0_2 = T_0_1 + q/c_p. When q exceeds q_max the flow is thermally choked and the exit Mach is locked at M=1.
Left = state 1 (inlet) / right = state 2 (exit) / red arrows = heat in / arrow length = local velocity / color gradient indicates relative temperature
y = T/T* / x = (s − s*)/c_p / upper branch = subsonic, lower branch = supersonic / blue dot = state 1, red dot = state 2 / orange line = path 1 → 2
Rayleigh flow is the idealized model of frictionless compressible flow in a constant-area duct with heat addition (or removal). Heating always drives the flow toward M=1 — the subsonic branch accelerates and the supersonic branch decelerates.
Total temperature ratio at Mach M (referenced to the sonic state):
$$\frac{T_0}{T_0^*} = \frac{(\gamma+1)M^2 \,\bigl(2 + (\gamma-1)M^2\bigr)}{(1 + \gamma M^2)^2}$$Static temperature and pressure ratios are referenced the same way:
$$\frac{T}{T^*} = \left(\frac{(\gamma+1)M}{1+\gamma M^2}\right)^2, \qquad \frac{P}{P^*} = \frac{\gamma+1}{1+\gamma M^2}$$The downstream total temperature follows from the heat input q:
$$T_{0,2} = T_{0,1} + \frac{q}{c_p}, \qquad \frac{T_{0,2}}{T_0^*} = \frac{T_{0,2}}{T_{0,1}} \cdot \frac{T_{0,1}}{T_0^*}$$M_2 is obtained by solving T_0_2/T_0* numerically with Newton's method. When q ≥ q_max = c_p (T_0* − T_0_1) the flow is thermally choked and the exit is locked at M=1.