This Demonstration models compressible flow through a reversible nozzle/diffuser. The inlet pressure P1, the exit velocity u2, and the exit temperature T2 are calculated from mass and energy balances during air flow. Because it is reversible, the entropy change is zero. The air exits as a free jet at atmospheric pressure (P2 = 101.3 kPa).
Set the outlet diameter d2 and inlet velocity u1 with the sliders. When d2 < d1, the device acts as a nozzle, with the inlet pressure higher than the exit pressure (P1 > P2) in order to provide the energy needed to accelerate the air through the nozzle. When d2 > d1, the device operates as a diffuser, and the exit pressure is higher than the inlet pressure (P1 < P2).
Select "plots" to plot the outlet velocity or outlet temperature as a function of outlet diameter for compressible air flow (blue) and incompressible air flow (green). Air is assumed to behave as an ideal gas and all flow is subsonic.
The mass balance around a nozzle/diffuser for compressible flow, where i = 1 for the inlet and i = 2 for the outlet, is given by:
u1 A1 ρ1 = u2 A2 ρ2,where Ai = (π/4) di2 is the area, ui is the velocity (m/s), ρi = Pi / (R Ti) is the density calculated from the ideal gas law, di is diameter (m), Pi is pressure (kPa), R is the ideal gas constant, and Ti is temperature (K).
The mass balance simplifies to:
u1 d12 (P1/T1) = u2 d22 (P2/T2),for incompressible flow ρ1 = ρ2, and thus u1 A1 = u2 A2.
The energy balance for an adiabatic nozzle/diffuser is:
m1 (H1 + u12/2) − m2 (H2 + u22/2) = 0,where Hi is enthalpy (J/kg), and conservation of mass means that m1 = m2, so the energy balance simplifies to:
H2 − H1 = Cp (T2 − T1) = ½ (u12 − u22),where Cp = 7/2 R is the ideal gas heat capacity of air (J/[kg·K]).
For compressible flow, the inlet pressure P1 is calculated from an entropy balance on an adiabatic reversible system:
Cp ln(T2/T1) − R ln(P2/P1) = 0,which simplifies to
T2/T1 = (P2/P1)R/Cp.Symbols
This simulation was created in the Department of Chemical and Biological Engineering at University of Colorado Boulder for LearnChemE.com by John L. Falconer using Claude AI. It is a JavaScript/HTML5 implementation of a Mathematica simulation by Rachael L. Baumann. It was prepared with financial support from the National Science Foundation (DUE 2336987 and 2336988). Address any questions or comments to LearnChemE@gmail.com.