Talk to an engineer

Compressible flow calculator: stagnation conditions, choked flow and normal shocks

Find the Mach number, stagnation pressure, choked mass flow and normal shocks of a gas flow.

Isentropic flow of a perfect gas, NACA Report 1135, eqs. 43 and 44, inverted.

Free calculator and guide · 20 min read · Updated November 2026

Calculator

Calculation

Result

Air · static 2.000 bar g, static 20 °C · 1.000 kg/s through Ø 50.0 mm

M 0.414 · stagnation pressure p0 2.378 bar g · stagnation temperature T0 30.07 °C

V 142.3 m/s · a 343.3 m/s · ρ 3.580 kg/m³Velocity error 2.2 %: use Ideal Gas
Bernoulli misses 0.01582 bar

Constant density or ideal gas?

Density change
8.8 %
Bernoulli error
2.2 % in velocity, 0.01582 bar in p0 − p

Above your 1 % limit, reached at M 0.282: use the Ideal Gas model.

Limit and details

Default 1 %, the criterion in C. Wassgren’s course notes (Purdue ME 30800).

Bernoulli with the static density gives 0.3623 bar for ½ρV², which is 4.2 % short of the isentropic p0 − p (0.3781 bar).

Real air at this pressure and temperature (Lemmon et al. 2000) differs from these values by +0.0343 K in T0 and +38 Pa in p0.

The Simcenter STAR-CCM+ documentation recommends Coupled Flow for transonic or supersonic flow. Segregated Flow is not suited to shocks or high Mach numbers.

Simcenter STAR-CCM+ settings to copy

Stagnation Inlet

FieldType thisAbsoluteCopy result
Total Pressure 237809 Pa2.378 bar339134 Pa absolute 339134 Pa3.391 bar
Total Temperature 303.22 K30.07 °C same value
Supersonic Static Pressure not used (subsonic inflow)
Flow Direction Specification, Method Boundary-Normal (the default)

Type this: gauge against the Reference Pressure 101325 Pa. The grey line under a value is the same value in your unit. The tool uses γ 1.4 and R 287.117 J/(kg·K).

Same state in: turbulence values for this inletReynolds number

Boundary type and Reference Pressure
This section is a

Use it with a Pressure Outlet.

Pa

Reference Pressure: Continua > your continuum > Reference Values.

Show the calculation

    Examples

    More examples

    γ 1.4 · R 287.117 J/(kg·K)

    At your section

    Kind
    Reference

    = 3.013 bar absolute (static), ambient 1.013 bar

    Ambient

    Temperature is

    Flow given as

    = 1963 mm²

    SI or US units
    Units

    Sets every unit at once. Each field’s own unit list converts that field only.

    When is a flow compressible?

    A gas flow is compressible when its density changes so much with the speed that a constant density no longer gives the right pressures, and for a given gas that change depends only on the Mach number [1]. The Mach number is the flow speed divided by the local speed of sound, and for an ideal gas the speed of sound follows from the temperature:

    a = √(γRT), M = V/a (1)

    Here γ is the ratio of specific heats and R the specific gas constant (NACA 1135, eqs. 29b and 30). For air at 20 °C the calculator gives a = 343.3 m/s, with γ = 1.4 (NACA 1135) and R = 287.117 J/(kg·K) from Lemmon et al. (2000) [2]. The density at rest, ρ0, relates to the density ρ of the moving gas by:

    ρ0/ρ = (1 + (γ − 1)/2 M²)1/(γ − 1) (2)

    This is the reciprocal of NACA 1135, eq. 45. To see what the density change does, set the isentropic p0 − p beside the constant-density estimate ½ρV², both with the static density ρ. The shortfall is the share of the true p0 − p that constant density misses. The velocity error is how much too high the velocity comes out when you read a measured p0 − p, from a pitot tube say, with incompressible Bernoulli:

    Air (γ 1.4): how far constant density is off at a given Mach number, calculated from (2) and (4).

    Air (γ 1.4): how far constant density is off at a given Mach number, calculated from (2) and (4).
    Mach numberDensity change ρ0/ρ − 1Bernoulli shortfall in p0 − pVelocity error
    0.10.50 %0.25 %0.13 %
    0.22.0 %0.99 %0.50 %
    0.34.6 %2.2 %1.1 %
    0.513 %6.0 %3.2 %
    0.835 %15 %8.2 %
    158 %22 %13 %

    How much error you accept is your call. The default, a velocity error of 1 %, comes from C. Wassgren’s course notes for ME 30800 at Purdue University [3]. They show that the error depends only on the Mach number and γ, and conclude that air can be treated as incompressible below about M 0.3 if 1 % is acceptable. Our calculation puts the line at M 0.282. It is a teaching criterion, not a physical limit.

    eV = √((p0 − p)/(½ρV²)) − 1 (3)

    Under Limit and details you can type another limit, anything above zero and up to 50 %. The line depends on γ only, so helium reaches 1 % at M 0.283, almost where air does.

    Error of constant-density Bernoulli in air against Mach number; the 1 % velocity-error line is reached at M 0.282.Three curves against the Mach number from 0 to 1 for air (γ 1.4), on a scale of 0 to 5 %. The velocity error is how much too high a velocity comes out when a measured p₀ − p is put into the incompressible Bernoulli equation; the shortfall is the share of the true p₀ − p that ½ρV² with the static density misses; the density change is ρ₀/ρ − 1. The velocity error reaches 1 %, the criterion of C. Wassgren's Purdue course notes, at M 0.282; the shortfall is 2.2 % at M 0.3 and the density change 4.6 %.How far constant density is off, %01234500.20.40.60.81Mach number M1 % velocity error at M = 0.282Wassgren’s course-notes criterionvelocity error, a measured p0 − p put into Bernoullishortfall: the share of p0 − p that ½ρV2 missesdensity change, ρ0/ρ − 1Error of constant-density Bernoulli in air against Mach number; the 1 % velocity-error line is reached at M 0.282.How far constant density is off, %01234500.20.40.60.81Mach number M1 % velocity errorat M = 0.282,Wassgren’s criterionvelocity error, a measured p0 − p put intoBernoullishortfall: the share of p0 − p that ½ρV2missesdensity change, ρ0/ρ − 1
    How wrong constant-density Bernoulli gets in air (γ = 1.4). The velocity error comes from reading a measured p0 − p with the incompressible equation; the shortfall is the share of the true p0 − p that ½ρV2 with the static density misses. The amber line is the 1 % velocity error that C. Wassgren’s Purdue ME 30800 notes (problem comp_24) take as acceptable; the calculator puts it at M = 0.282, about Mach 0.3 as the notes say, and uses it as its default limit. Own figure.

    The default compressed-air line runs at M 0.414, with a density at rest 8.8 % above the static density and a velocity error of 2.2 %, so the calculator advises the Ideal Gas density model. For the example Slow duct flow, air at 20 m/s, constant density is fine. The verdict judges the speed at the section you typed. A pressure drop or heating along the domain also changes the density and can call for Ideal Gas where this check passes. For the solver, see the STAR-CCM+ section.

    Load the slow duct flow in the calculator ↑

    Stagnation pressure and temperature

    The stagnation pressure and temperature, also called total pressure and total temperature, are the values a gas would reach if it were brought to rest without losses and without heat transfer [1], as at the stagnation point of a pitot tube in subsonic flow. The static pressure is the one the moving gas has, the one a wall tap reads.

    Stagnation pressure formula

    For isentropic flow of a perfect gas the ratio of total to static pressure depends on the Mach number and γ alone. This is the stagnation pressure equation the calculator uses, NACA 1135, eq. 44, written for p0/p:

    p0/p = (1 + (γ − 1)/2 M²)γ/(γ − 1) (4)

    Both pressures in (4) are absolute. The stagnation pressure calculator above takes your static pressure, temperature and flow and gives p0 gauge and absolute.

    Total temperature

    The total temperature follows from the energy equation of an adiabatic flow, cpT + V²/2 = cpT0 (NACA 1135, eq. 32b), with cp = γR/(γ − 1) for a perfect gas. Written with the Mach number it is eq. 43 [1]:

    T0/T = 1 + (γ − 1)/2 M², T0 = T + V²/(2cp) (5)

    So the total temperature depends only on the static temperature and the speed, not on the pressure.

    The default case worked through

    The calculator opens on a compressed-air line: static 2.000 bar g and 20 °C at a wall tap and 1.000 kg/s through a 50.0 mm bore, with ambient and Reference Pressure at 101 325 Pa. That gives V = 142.3 m/s and M = 0.414, with a static density of 3.580 kg/m³.

    With (4) and (5) the total pressure is 2.378 bar g (3.391 bar a) and the total temperature 30.07 °C (303.22 K). Bernoulli with constant density puts p0 − p 4.2 % too low, and that is the gap the loupe shows between the two upper rungs of the pressure ladder.

    Pressure ladder of the default case: total pressure 3.391 bar a (2.378 bar g), static 3.013 bar a, M 0.414.The pressure ladder of the calculator's default case: air at 2.000 bar g and 20 °C, 1.000 kg/s through a 50.0 mm bore. A column from absolute zero to 4 bar, with the absolute scale on the left and the gauge scale on the right, whose zero is the Reference Pressure, 1.013 bar. The total pressure is 3.391 bar absolute, 2.378 bar gauge; the static pressure 3.013 bar absolute, 2.000 bar gauge. Beside it, p₀ − p is enlarged: the isentropic value 0.3781 bar against 0.3623 bar from ½ρV² with the static density, which misses 0.01582 bar (4.2 %). Below, a Mach rail with the velocity error of Bernoulli: the default, M 0.414, lies past the 1 % limit at M 0.282.Absolute, barGauge, bar01234​​−6−5−4−3−2−101234562.378 Total Pressure​​2.000 static pressure​​−1.013 absolute zero​​Reference Pressure3.3913.0131.013p0 − p enlarged × 10​​​​​​​Ideal gas 0.3781 bar​​​​Constant density, ½ρV² 0.3623 bar​​​​Bernoulli misses 0.01582 bar​​​​​​​​​​​​​​​​​​​Mach number5 %10 %The curve: Bernoulli's velocity error. The line: the 1 % limit, at M 0.282.​​​​​00.511.52sonicM 0.414Pressure ladder of the default case: total pressure 3.391 bar a (2.378 bar g), static 3.013 bar a, M 0.414.Absolute, barGauge, bar01234​​−6−5−4−3−2−101234562.378 Total Pressure​​2.000 static pressure​​−1.013 absolute zero​​Reference3.3913.0131.013Mach number5 %10 %The curve: Bernoulli's velocity error.The line: the 1 % limit, at M 0.282.​​​​00.511.52sonicM 0.414p0 − p enlarged × 10​​​​​​​Ideal gas 0.3781 bar​​​​Constant density, ½ρV² 0.3623 bar​​​​Bernoulli misses 0.01582 bar​​​​
    The pressure ladder of the default case: air at 2.000 bar g and 20 °C, 1.000 kg/s through a 50.0 mm bore. Absolute pressure on the left, gauge on the right, with its zero at the Reference Pressure (1.013 bar). The total pressure is 3.391 bar absolute and 2.378 bar gauge. The loupe enlarges p0 − p, 0.3781 bar: ½ρV2 with the static density misses 0.01582 bar of it (4.2 %). On the Mach rail, M 0.414 lies past the 1 % velocity-error limit at M 0.282. The calculator's own drawing.

    Load the default case in the calculator ↑

    Pressure and temperature can each be static or total, and the flow a velocity, a mass flow with a size, or a Mach number. The example Tank to pipe mixes them: a static 1 bar g in the pipe and the total 20 °C of the tank. With 0.5 kg/s through 40 mm the static temperature in the pipe comes out at 7.39 °C.

    With both values total, as in From total conditions (6 bar g and 20 °C, 0.5 kg/s through 25 mm), there are two answers, M 0.390 (shown) and M 1.954 (under Solution). The bore passes at most 0.8125 kg/s, so the field refuses 0.9 kg/s and shows that maximum.

    Load the tank example in the calculator ↑

    Choked flow

    Choked flow is the state in which the smallest section of a gas flow runs at Mach 1, so that a lower back pressure no longer increases the mass flow. For given total conditions the mass flow per unit area is largest at Mach 1, so a throat cannot pass more than it does at the speed of sound [1].

    Critical pressure ratio

    A converging nozzle or an orifice treated as isentropic chokes when the back pressure is at or below p*, the static pressure at Mach 1. A converging–diverging nozzle chokes earlier, at a back pressure set by its area ratio: 0.9372 of p0 for Ae/At = 2.0 (below). The ratio p*/p0 follows from (4) with M = 1:

    p*/p0 = (2/(γ + 1))γ/(γ − 1) (6)

    For γ = 1.4 that is 0.5283; other gases are in the gas presets. The ratio is between absolute pressures: air from 6 bar g chokes for any back pressure at or below 3.705 bar a, which is 2.692 bar g.

    Choked mass flow through an orifice or nozzle

    Once the throat is at Mach 1, the mass flow depends only on the total state upstream, the gas and the throat area A, times a discharge coefficient Cd. This is the choked flow equation, built from NACA 1135, eqs. 43, 44 and 30:

    ṁ = CdAp0 √(γ/(RT0)) (2/(γ + 1))(γ + 1)/(2(γ − 1)) (7)

    For air this is ṁ = 0.04041 CdAp0/√T0 in SI units (A in m², p0 in Pa, T0 in K). The Choked flow tab opens on a leak, air at 6 bar g and 20 °C through a 5 mm hole to the atmosphere with Cd = 1.00: choked, 117.0 kg/h.

    Above the critical ratio the throat pressure equals the back pressure pb and the flow is not choked. With r = pb/p0 the mass flow is then:

    ṁ = CdAp0 √(2γ/((γ − 1)RT0)) √(r2/γ − r(γ + 1)/γ) (8)

    In the example Small pressure drop the same 6 bar g supply discharges against a back pressure of 5 bar g, above p*, and the hole passes 83.99 kg/h, 0.7179 of the choked value. Under Find, you can ask the reverse: Size an orifice wants 50 kg/h from the same supply and gets a 3.27 mm bore.

    Load the leak example in the calculator ↑

    The choked flow calculator in the Choked flow tab treats the throat as an ideal, isentropic converging nozzle and scales its mass flow by your Cd, referred to the throat area you type. The examples use Cd = 1, which gives the largest leak and the smallest bore; at Cd = 0.6 Size an orifice needs 4.22 mm. The tool accepts 0 < Cd ≤ 1 but offers no typical values, as we found no primary source to cite, so use a measured value or your supplier’s.

    Liquids choke as well, in control valves, through flashing and cavitation. That case is on our page on choked flow and cavitation in control valves.

    Isentropic flow relations and tables

    The isentropic flow equations give the static-to-total ratios of pressure, temperature and density, and the area ratio, as functions of the Mach number alone, for a perfect gas that flows without losses and without heat transfer [1]. The first three are the reciprocals of (5), (4) and (2), as NACA 1135 writes them in eqs. 43 to 45:

    T/T0 = (1 + (γ − 1)/2 M²)−1, p/p0 = (1 + (γ − 1)/2 M²)−γ/(γ − 1), ρ/ρ0 = (1 + (γ − 1)/2 M²)−1/(γ − 1) (9)

    The Isentropic and shock tab (Tables on a phone) opens at M 2 in air, with p/p0 = 0.1278, T/T0 = 0.5556 and ρ/ρ0 = 0.2300. For supersonic flow it also gives the Mach angle μ = arcsin(1/M), 30.00° here, and Make a table adds q/p0 (eq. 48) and V/a* (eq. 50). The calculator reproduces 241 values of NACA 1135 Tables I and II within half a unit of the last printed digit.

    Area ratio A/A*

    A/A* is the area of a section divided by the area at which the same flow would be at Mach 1. It comes from the mass flow being the same in both sections (NACA 1135, eq. 80, inverted) [1]:

    A/A* = (1/M) [(2/(γ + 1)) (1 + (γ − 1)/2 M²)](γ + 1)/(2(γ − 1)) (10)

    Every area ratio above one has a subsonic and a supersonic Mach number: for A/A* = 3 they are M 0.197 and M 2.637, and you pick the branch in the list. A nozzle that is to reach Mach 2 at its exit needs an exit area 1.688 times its throat area.

    Isentropic flow of air, γ 1.4: p/p₀, T/T₀, ρ/ρ₀ and A/A* against Mach number 0 to 3; at M 1 p/p₀ is 0.5283.Two panels against the Mach number from 0 to 3, air as a perfect gas with γ 1.4 (NACA Report 1135, equations 43 to 45 and 80). Upper panel: the static-to-stagnation ratios of pressure, temperature and density all fall from 1; pressure falls fastest. At the sonic state, M 1, p/p₀ = 0.5283, T/T₀ = 0.8333 and ρ/ρ₀ = 0.6339. Lower panel: the area ratio A/A* has its minimum, 1, at M 1; every larger area ratio has one subsonic and one supersonic Mach number.Ratio to the stagnation value0.00.20.40.60.81.0T/T0ρ/ρ0p/p0Sonic state, M = 1p/p0 = 0.5283T/T0 = 0.8333ρ/ρ0 = 0.6339A/A* = 1 (the throat)Area ratio A/A*012345subsonicsupersonic00.511.522.53Mach number MIsentropic flow of air, γ 1.4: p/p₀, T/T₀, ρ/ρ₀ and A/A* against Mach number 0 to 3; at M 1 p/p₀ is 0.5283.Ratio to the stagnation value0.00.20.40.60.81.0T/T0ρ/ρ0p/p0Area ratio A/A*012345subsonicsupersonic00.511.522.53Mach number MSonic state, M = 1p/p0 = 0.5283T/T0 = 0.8333ρ/ρ0 = 0.6339A/A* = 1 (the throat)
    Isentropic ratios of air (γ = 1.4) against the Mach number, from the closed forms of NACA Report 1135 (equations 43 to 45 and 80). At the sonic state the static pressure is 0.5283 of the stagnation pressure, the temperature 0.8333 and the density 0.6339. The area ratio A/A* has its minimum at M = 1, so every larger area ratio has a subsonic and a supersonic solution. Own figure.

    Isentropic flow tables

    For an isentropic flow calculator rather than a duty point, use the Isentropic and shock tab: it takes any one of M, p/p0, T/T0, ρ/ρ0, A/A* or the Mach angle and gives the rest. Under Make a table you get the columns from M 0 to at most 10 as a CSV file of up to 2001 rows with 6 significant digits.

    For air with γ = 1.4 there are also two ready tables to download, isentropic flow from M 0 to 3 and normal shocks from M1 1 to 4 in steps of 0.05, each as CSV and as an A4 sheet at 300 dpi with 4 significant figures as NACA prints them.

    Load M 2 in the calculator ↑

    Normal shock relations and tables

    A normal shock is a thin jump at right angles to the flow from supersonic to subsonic speed, across which the total temperature stays the same and the total pressure falls [1]. It is not isentropic: the entropy rises, and that rise is the total-pressure loss.

    p2/p1 = 1 + (2γ/(γ + 1))(M1² − 1), ρ2/ρ1 = (γ + 1)M1²/(2 + (γ − 1)M1²), T2/T1 = (p2/p1)/(ρ2/ρ1) (11)

    M2² = (1 + (γ − 1)/2 M1²)/(γM1² − (γ − 1)/2) (12)

    p02/p01 = [(γ + 1)M1²/((γ − 1)M1² + 2)]γ/(γ − 1) [(γ + 1)/(2γM1² − (γ − 1))]1/(γ − 1) (13)

    These normal shock equations are NACA 1135, eqs. 93 to 96 and 99. At M1 = 2, where the shock row of the tab opens, the gas leaves at M2 = 0.5774 with 4.500 times the static pressure, and p02/p01 = 0.7209: 28 % of the total pressure is lost. At M1 = 3 the loss is far larger, with p02/p01 = 0.3283.

    M2 never falls below √((γ − 1)/(2γ)), whatever M1. The calculator refuses a normal shock with M1 below Mach 1, because the entropy would fall.

    A pitot tube in a supersonic stream reads the total pressure behind its own normal shock, not p01, and the Rayleigh pitot formula (NACA 1135, eq. 100) relates that reading to the static pressure ahead [1]: at M1 = 2 it is 5.640 times as high. The shock row makes the same tab a normal shock calculator: under Normal shock, given you pick M1, M2, one of its ratios or, for a pitot reading, p1/p02, and it gives the rest. Make a table gives them for M1 from 1 to at most 10 as a CSV file.

    Normal shock in air, γ 1.4: p₂/p₁, T₂/T₁, ρ₂/ρ₁, M₂ and p₀₂/p₀₁ against M₁ 1 to 5; at M₁ 2 p₂/p₁ is 4.500.Two panels against the upstream Mach number M₁ from 1 to 5, air with γ 1.4 (NACA Report 1135, equations 93 to 96 and 99). Upper panel, on a log scale: the pressure, temperature and density ratios across the shock all start at 1; the pressure ratio rises fastest, the density ratio tends to 6.000. Lower panel: the Mach number behind the shock, M₂, falls towards 0.3780, and the total-pressure ratio p₀₂/p₀₁ falls with it. At M₁ = 2.000: p₂/p₁ = 4.500, T₂/T₁ = 1.688, ρ₂/ρ₁ = 2.667, M₂ = 0.5774, p₀₂/p₀₁ = 0.7209.Rise across the shock (log scale)1251020p2/p1T2/T1ρ2/ρ1ρ2/ρ1 tends to 6.000Behind the shock00.250.50.751M2p02/p01M2 tends to 0.378012345Upstream Mach number M1At M1 = 2.000p2/p1 = 4.500, T2/T1 = 1.688, ρ2/ρ1 = 2.667, M2 = 0.5774, p02/p01 = 0.7209Normal shock in air, γ 1.4: p₂/p₁, T₂/T₁, ρ₂/ρ₁, M₂ and p₀₂/p₀₁ against M₁ 1 to 5; at M₁ 2 p₂/p₁ is 4.500.Rise across the shock (log scale)1251020p2/p1T2/T1ρ2/ρ1Behind the shock00.250.50.751M2p02/p0112345Upstream Mach number M1At M1 = 2.000p2/p1 = 4.500T2/T1 = 1.688ρ2/ρ1 = 2.667M2 = 0.5774p02/p01 = 0.7209Dotted lines, the limits:ρ2/ρ1 tends to 6.000M2 tends to 0.3780
    Normal-shock ratios of air (γ = 1.4) against the upstream Mach number, from NACA Report 1135 (equations 93 to 96 and 99). At M1 = 2.000 the static pressure rises 4.500 times, the flow leaves at M2 = 0.5774 and keeps 0.7209 of its total pressure. However strong the shock, the density rises at most 6.000 times and M2 tends to 0.3780. Own figure.

    Shocks in a converging–diverging nozzle

    A converging–diverging (de Laval) nozzle shows every regime of isentropic nozzle flow with a normal shock as the back pressure falls. The calculator draws one with Ae/At = 2.0, the exit area over the throat area, and three back-pressure ratios divide the regimes:

    • Above pb/p0 = 0.9372 the flow is subsonic everywhere; at 0.9372 the throat reaches Mach 1, and from there down the mass flow is fixed.
    • Between 0.9372 and 0.5134 a normal shock stands in the diverging part, nearer the exit the lower the back pressure.
    • Below 0.5134 the flow leaves supersonic: over-expanded down to 0.09393, the design point, and under-expanded below it. A back pressure within 0.5 % of it counts as the design point.

    The tab opens with M1 = 2 in the shock row and the shock at pb/p0 = 0.6263. Set pb/p0 to 0.75 and the shock moves to As/At = 1.400: the gas meets it at M1 = 1.763, loses 17 % of its total pressure and leaves the exit at M 0.380.

    Nozzle with Ae/At 2.0: mass flow and exit pressure against back pressure, seven regimes, limits 0.9372, 0.5134, 0.09393.A converging-diverging nozzle with an exit-to-throat area ratio of 2.0, air with γ 1.4, against the back pressure as a fraction of the total pressure. Upper panel: the mass flow over the choked mass flow is 1 for every back pressure up to 0.9372 and falls to zero above it. Lower panel, on a log scale: the exit pressure against the back pressure. Seven regimes in order of falling back pressure: 1 subsonic throughout; 2 choked with a subsonic exit at 0.9372; 3 a normal shock inside the nozzle between 0.5134 and 0.9372; 4 the shock in the exit plane at 0.5134; 5 over-expanded between 0.09393 and 0.5134, where the exit pressure is below the back pressure; 6 design at 0.09393; 7 under-expanded below 0.09393, where the exit pressure is above the back pressure. What happens outside the exit is not computed.Mass flow / choked mass flow00.51Exit and back pressure, pe/p0 (log scale)0.010.11exit pressureback pressurepe below pb00.20.40.60.81Back pressure pb/p012345671Subsonic throughout, not choked: pb/p0 above 0.93722Choked, subsonic exit: at 0.93723Normal shock inside the nozzle: 0.5134 to 0.93724Normal shock in the exit plane: at 0.51345Over-expanded: 0.09393 to 0.5134; the exit pressure is below the back pressure6Design: at 0.09393, the exit pressure equals the back pressure7Under-expanded: below 0.09393; the exit pressure is above the back pressureAmber: the gap between the exit pressure and the back pressure. The jet outside the exit is notcomputed.Nozzle with Ae/At 2.0: mass flow and exit pressure against back pressure, seven regimes, limits 0.9372, 0.5134, 0.09393.Mass flow / choked mass flow00.51Exit and back pressure, pe/p0 (log scale)0.010.11exit pressurebackpressure00.20.40.60.81Back pressure pb/p012345671Subsonic throughout, not choked: pb/p0above 0.93722Choked, subsonic exit: at 0.93723Normal shock inside the nozzle: 0.5134 to0.93724Normal shock in the exit plane: at 0.51345Over-expanded: 0.09393 to 0.5134; the exitpressure is below the back pressure6Design: at 0.09393, the exit pressure equalsthe back pressure7Under-expanded: below 0.09393; the exitpressure is above the back pressureAmber: the gap between the exit pressure andthe back pressure. The jet outside the exit is notcomputed.
    A converging–diverging nozzle with Ae/At = 2.0 (air, γ = 1.4), from its back pressure down to vacuum. Once the back pressure is below 0.9372 of the total pressure the throat is choked and the mass flow stays at its maximum. Between 0.9372 and 0.5134 a normal shock stands inside the nozzle; below 0.5134 the flow leaves supersonic at 0.09393 of the total pressure, whatever the back pressure. The log scale keeps the over- and under-expanded gaps visible; the jet outside the exit is not computed. Quasi-one-dimensional, perfect gas, no friction. Own figure.

    Load the shock at M₁ 3 in the calculator ↑

    Stagnation inlet, mass flow inlet or pressure outlet in Simcenter STAR-CCM+

    In Simcenter STAR-CCM+ a stagnation inlet takes the total pressure and total temperature of an imaginary plenum at rest upstream, plus a flow direction. A mass flow inlet takes the mass flow and a total temperature instead, and a pressure outlet the static pressure downstream. Use a stagnation inlet when you know the state upstream, a mass flow inlet when you know the mass flow, and pair either with a pressure outlet [4].

    Avoid a velocity inlet here: it fixes the velocity but not the total energy. Keep the Outlet boundary type off this set-up too, because it cannot share a continuum with a stagnation inlet or a pressure outlet [4].

    Gauge and absolute pressure

    Simcenter STAR-CCM+ works in gauge pressure. Every pressure you set on a stagnation inlet, a mass flow inlet or a pressure outlet is relative to the Reference Pressure of the continuum, 101 325 Pa unless you change it [4]. So in the default case the Total Pressure to type is 237 809 Pa, not the absolute 339 134 Pa.

    The gauge pressure you type in the calculator counts from your ambient pressure, while the value for STAR-CCM+ counts from the Reference Pressure; they match only when the two are equal, as when the calculator opens.

    For a high-speed case with Ideal Gas you can also set the Reference Pressure to zero, and the gauge values are then absolute. For low-speed runs the documentation advises an ambient value, and zero does not suit a run with the Incompressible option [4].

    The Total Pressure field function that STAR-CCM+ reports is gauge as well, so add the Reference Pressure before you compare it with the calculator’s absolute p0. With a temperature-dependent cp, STAR-CCM+ works from the enthalpy instead of the constant-γ formulas, so its values drift from this calculator’s [4].

    The settings to copy

    Under the result, Simcenter STAR-CCM+ settings to copy lists the fields of the boundary type you pick, by their names in the simulation tree, and Copy settings puts them on the clipboard as text, with pressures in pascals and temperatures in kelvin. Three of the fields need explaining.

    STAR-CCM+ reads the Supersonic Static Pressure only while the inflow at the boundary is supersonic, and a poor value can make the run diverge if that happens [4]. For a subsonic inflow the calculator therefore says the field is not used.

    For a mass flow inlet, set the Specification Option under Mass Flow Option to Mass Flow Rate, the flow for the whole boundary in kg/s. In a 2D axisymmetric model that rate is per radian, so the calculator divides it by 2π [4].

    At a pressure outlet the Static Temperature is used only if flow comes back in through the boundary. Where the flow leaves the domain supersonic, the solver takes the outlet pressure from the interior and ignores the value you set [4]. Our post on pressure outlet options covers the backflow settings.

    The inlet also needs turbulence values. Our turbulence boundary conditions calculator gives them, and the Reynolds number calculator the Reynolds number at the same state.

    Gas model and solver

    For a compressible run the gas needs the Ideal Gas model, with its Incompressible property Off. The default air of a new STAR-CCM+ simulation works out at a ratio of specific heats of about 1.4006 from its constant specific heat and molecular weight (our arithmetic, since Siemens does not state γ) [4]. The calculator uses γ = 1.4.

    For the solver, the documentation recommends Coupled Flow for highly compressible flow such as transonic or supersonic flow. The segregated solver can handle mildly compressible flow but is not suited to shocks or high Mach numbers [4]. The documentation gives no Mach number for the switch, so the calculator shows the density change and the Bernoulli error at your state instead. Our post on coupled solver settings covers the solver side.

    How the calculator works

    This compressible flow calculator treats the gas as calorically perfect, with a constant γ and R, and the flow as quasi-one-dimensional and isentropic except across a normal shock, the model NACA Report 1135 uses for its tables [1]. Inside, every pressure is absolute in Pa, and only the values for Simcenter STAR-CCM+ are turned into gauge values. Units are converted with factors built from the exact definitions in NIST SP 811 [5]. Where this page gives no source for a relation or a number, it is our own derivation or calculation from the cited ones.

    Combining (1), (2) and (5), the mass flow per unit area through a section with total conditions p0 and T0 is:

    ṁ/A = p0/√(RT0) · φ(M), φ(M) = √γ M (1 + (γ − 1)/2 M²)−(γ + 1)/(2(γ − 1)) (14)

    φ is largest at Mach 1, 0.6847 for γ = 1.4, and with that maximum (14) becomes (7) for Cd = 1. Everything else follows from the Mach number, and the Duty point tab finds it by one of four routes:

    • Static pressure and static temperature: M follows from the velocity, or from the mass flux with ρ = p/(RT).
    • Static pressure, total temperature and a mass flow: the mass flux rises steadily with M, so M has a closed form.
    • Total pressure, total temperature and a mass flow: two Mach numbers, subsonic (shown) and supersonic, or a choked section above the maximum of φ.
    • Total pressure, static temperature and a mass flow: the mass flux peaks at M = √(2/(γ + 1)), M 0.913 for air, with two roots below the peak.

    Inverses without a closed form, such as A/A* or, from M1 = 1.0005 upward, p02/p01, use a bracketed Newton iteration and return their starting Mach number to 10⁻⁹ relative in our tests.

    For air the calculator checks the constant γ twice against the equation of state of Lemmon et al. (2000) [2], which our air and water page uses for the specific heat of air: once with a cp that follows temperature at 1 bar, and, in the Duty point tab, once with real air at your pressure, at the same entropy, with the enthalpy raised by V²/2. Every preset also gets a check of the compressibility factor Z against 1 %, from NIST data for the gases other than air [6].

    Gas presets

    The presets take γ of the real gas at 300 K and 1 bar from the NIST Chemistry WebBook [6], and R from the molar gas constant [7] and the standard atomic weights [8]. Air keeps the γ = 1.4 of NACA 1135 and the R of Lemmon et al. (2000). The last column is the pressure up to which |Z − 1| stays within 1 % on the 300 K isotherm.

    Gas presets. p*/p0 is the critical pressure ratio (6); the speed of sound is at 20 °C.

    Gas presets. p*/p0 is the critical pressure ratio (6); the speed of sound is at 20 °C.
    GasγR, J/(kg·K)Molar mass, g/molSpeed of sound, m/sp*/p0Ideal gas within 1 % up to, bar
    Air1.4287.11728.9586343.30.5283Lemmon et al. (2000) check
    Nitrogen1.4012296.79728.014349.20.5281114
    Oxygen1.3964259.84331.998326.10.528916
    Carbon dioxide1.293188.92644.009267.60.54702
    Argon1.6695208.12239.95319.20.486717
    Helium1.66662077.2654.002610070.487121
    Hydrogen1.40524124.2372.01613030.527416
    Methane1.3053518.26116.043445.30.54485

    Limits

    A constant γ is the main assumption. Simcenter STAR-CCM+’s own guideline for air treats it as calorically perfect, with a constant specific heat, below about Mach 3, and the calculator notes any Mach number above 3. A hot gas can fall outside a constant γ at a low Mach number too. For air the calculator also flags any T0 − T or p0 − p more than 1 % off the value with a cp that follows temperature at 1 bar, our own threshold. In the example Hot air, 800 °C at 150 m/s (M 0.228), that cp moves the total temperature by −1.46 K, 13 % of T0 − T. The settings to copy give two Total Temperatures: 1084.35 K for the constant specific heat that STAR-CCM+’s default air keeps unless you change it, and 1082.89 K for a temperature-dependent cp [4].

    In the Duty point tab a second note flags the pressure effect when real air at your pressure moves T0 − T or p0 − p more than 1 % from the cp(T) value: at M 0.5 and 20 °C from about 7.7 bar absolute static pressure. In the Choked flow tab the Z check covers it.

    γ of air at 1 bar from Lemmon et al. 2000: 1.4019 at 20 °C, falling to 1.3198 at 1000 °C, against the constant 1.4.The ratio of specific heats of real air at 1 bar from the Lemmon et al. (2000) equation of state, from −60 °C to 1000 °C: 1.4051 at −60 °C, 1.4019 at 20 °C and 1.3198 at 1000 °C. A dashed line marks the constant 1.4 the calculator uses. A second line at 123 °C marks where, at 1 bar and Mach 0.5, constant γ puts T₀ − T or p₀ − p more than 1 % off the value with cp(T) at 1 bar, so the calculator adds a γ(T) note. The effect of pressure is a separate check against real air at your pressure and is not drawn here.Ratio of specific heats γ of air at 1 bar1.301.321.341.361.381.401.42−10001002003004005006007008009001000Temperature, °Cthe calculator: γ = 1.4from about 123 °C the calculatoradds a γ(T) note at M 0.520 °C: 1.40191000 °C: 1.3198real air, Lemmon et al.γ of air at 1 bar from Lemmon et al. 2000: 1.4019 at 20 °C, falling to 1.3198 at 1000 °C, against the constant 1.4.Ratio of specific heats γ of air at 1 bar1.301.321.341.361.381.401.4202004006008001000Temperature, °Cthe calculator: γ = 1.4from about 123 °Cthe calculator addsa γ(T) note at M 0.5real air, Lemmon et al.Real air at 1 bar (the dots): 20 °C: 1.4019,1000 °C: 1.3198
    The ratio of specific heats of air at 1 bar, from the Lemmon et al. (2000) equation of state, against the constant γ = 1.4 of the calculator: 1.4019 at 20 °C, falling to 1.3198 at 1000 °C. From about 123 °C at Mach 0.5, constant γ puts T0 − T or p0 − p more than 1 % off the value with a cp that follows temperature at 1 bar, and the calculator adds a γ(T) note; the 1 % is our own threshold. The pressure effect has a check of its own. Own figure.

    At high pressure, or near the critical point, a gas is no longer ideal and the Z check shows a note. Below its critical temperature a gas may condense, and at or above its saturation pressure the calculator says it would. In every tab the notes show under the answer.

    A gas mixture, such as an exhaust gas, goes in as Own gas with one γ and one R for the whole mixture, with 1 < γ ≤ 1.7 and no real-gas check.

    The flow is quasi-one-dimensional: one state per section, no wall friction and no heat transfer along a duct, so a long pipe needs another method. The examples are constructed duties, not measured cases.

    References and changelog

    References

    [1] Ames Research Staff, Equations, Tables, and Charts for Compressible Flow, NACA Report 1135, 1953. NASA Technical Reports Server, document 19930091059. ntrs.nasa.gov

    [2] E. W. Lemmon, R. T Jacobsen, S. G. Penoncello and D. G. Friend, Thermodynamic Properties of Air and Mixtures of Nitrogen, Argon, and Oxygen From 60 to 2000 K at Pressures to 2000 MPa, Journal of Physical and Chemical Reference Data 29(3), 331–385, 2000. doi.org

    [3] C. Wassgren, Notes on Thermodynamics, Fluid Mechanics, and Gas Dynamics, Purdue University, ME 30800, reading “Compressible flow: stagnation and sonic conditions”, 2021, problem comp_24. engineering.purdue.edu

    [4] Simcenter STAR-CCM+ documentation (2606), Siemens Digital Industries Software, User Guide and Knowledge Base.

    [5] A. Thompson and B. N. Taylor, Guide for the Use of the International System of Units (SI), NIST Special Publication 811, 2008 edition, Appendix B. nvlpubs.nist.gov

    [6] NIST Chemistry WebBook, NIST Standard Reference Database 69, Thermophysical Properties of Fluid Systems: nitrogen, oxygen, carbon dioxide, argon, helium, hydrogen and methane. webbook.nist.gov

    [7] NIST Reference on Constants, Units, and Uncertainty: the molar gas constant (CODATA). physics.nist.gov

    [8] IUPAC Commission on Isotopic Abundances and Atomic Weights, Abridged Standard Atomic Weights, 2024. www.ciaaw.org

    Changelog

    November 2026: first published, with the calculator and this guide. Each cited statement was checked against the saved text of its source, and the Simcenter STAR-CCM+ statements against the Siemens documentation (2606). Relations and numbers given without a source are our own derivations and calculations, and every example number is the calculator’s own result.

    Questions about compressible flow

    Ask a Volupe specialist

    Florian Vesting

    Senior Application Specialist, Ph.D.
    Email Florian · LinkedIn

    Questions about compressible flow, choked flow or a stagnation inlet set-up? We reply within one day.

    Ask a technical question →

    What is the difference between static and stagnation pressure?

    The static pressure is the pressure of the moving gas, the one a wall tap reads. The stagnation (total) pressure is what the gas would reach if it were brought to rest without losses. For a perfect gas their ratio depends only on the Mach number and γ: p₀/p = (1 + (γ − 1)/2·M²)^(γ/(γ − 1)). In the default compressed-air line, static 2.000 bar g at M 0.414 gives a total pressure of 2.378 bar g.

    What is the critical pressure ratio for air?

    For air with γ = 1.4 the critical pressure ratio p*/p₀ is 0.5283. A converging nozzle or an orifice treated as isentropic chokes when the absolute back pressure is at or below that share of the absolute total pressure upstream; a converging–diverging nozzle chokes earlier, at a back pressure set by its area ratio. Other gases have other ratios, from 0.4867 for argon to 0.5470 for carbon dioxide.

    When does a nozzle or orifice choke?

    A converging nozzle or an orifice chokes when the back pressure falls to p*: the throat reaches Mach 1 and the mass flow stops rising. From then on it depends only on the total pressure and temperature upstream, the gas, the throat area and the discharge coefficient, as the choked flow equation shows. A converging–diverging nozzle chokes earlier, at its first critical back pressure, 0.9372 of p₀ for Aₑ/Aₜ = 2.0. Air from 6 bar g through a 5 mm hole to the atmosphere is choked and passes 117.0 kg/h.

    Is a normal shock isentropic?

    No. The entropy rises across a normal shock, so the total pressure falls while the total temperature stays the same. At M₁ = 2 in air the shock keeps p₀₂/p₀₁ = 0.7209 of the total pressure and loses 28 %. The flow on each side of the shock is isentropic, and the jump itself follows the normal shock relations.

    Are pressures in Simcenter STAR-CCM+ gauge or absolute?

    The pressures you set on a stagnation inlet, a mass flow inlet or a pressure outlet are gauge values, relative to the Reference Pressure of the continuum, 101 325 Pa unless you change it. The calculator shows each value to type as gauge with the absolute value beside it. With Ideal Gas in a high-speed case you can set the Reference Pressure to zero, and then gauge and absolute are the same.

    Should I use a stagnation inlet or a mass flow inlet?

    Use a stagnation inlet when you know the total pressure and temperature upstream, for example from a tank or a plenum, and a mass flow inlet when you know the mass flow. Both take a Total Temperature and a Supersonic Static Pressure, and both go with a pressure outlet. In some complex turbomachinery cases the inlet flow direction is hard to establish with stagnation and pressure boundaries; for those the Simcenter STAR-CCM+ documentation suggests an initial solution with a mass flow inlet, then the switch to the stagnation inlet.

    Is a constant γ good enough, or do I need cp(T)?

    Simcenter STAR-CCM+’s guideline treats air as calorically perfect, with a constant γ, below about Mach 3, and the calculator notes any Mach number above 3. A hot gas can still be off at a low Mach number. For air the calculator therefore repeats its result with a cp that follows temperature, from Lemmon et al. (2000) at 1 bar, and shows a note when T₀ − T or p₀ − p is more than 1 % off, our own threshold. In the example Hot air, at M 0.228, T₀ − T is 13 % off. The pressure effect is not in this note: the Duty point tab has a second note for real air at your pressure, and the Z check flags a gas that is no longer ideal.

    Why are the results not valid for a real gas?

    The relations assume an ideal gas with a constant γ. At high pressure, or near the critical point, the compressibility factor Z moves away from one and the results become approximate. The calculator shows a note when |Z − 1| exceeds 1 %. For carbon dioxide at 300 K that happens above 2 bar, for nitrogen above 114 bar. Carbon dioxide can also condense: choked from 40 bar g and 20 °C, the ideal-gas throat would sit at 22.43 bar a and 255.69 K, above the saturation pressure there (21.28 bar a), so the calculator warns that the ideal-gas result does not hold.

    Talk to an engineer in your region

    Every Volupe business developer holds an engineering degree. Find your regional contact below, or send us a message.

    Denmark and Central Eastern Europe

    Lukas Johansson

    Sales Director, M.Sc.

    Norway, Finland and the Baltics

    Carl Wanngård

    Business Developer, M.Sc.

    DACH region

    David Fabis

    Business Developer, M.Sc.

    DACH region

    André Hau

    Business Developer, M.Sc.

    Sweden

    Fredrik Liljedahl

    Business Developer, M.Sc.

    Europe

    Henrik Pahlitzsch

    Business Developer, M.Sc.

    Iberia

    Mikel Sevilla

    Business Developer

    Ask us about Compressible flow calculator

    Use this form for licence quotes, demos, training and technical questions.

    What happens next

    1. A reply within one day.
    2. A scoping call with one of our engineers.
    3. A quote, demo or other next step that fits your enquiry.

    After purchase: support from Volupe simulation engineers.

    For a quote, the number of users, modules and your timeline help us answer faster.
    See how we handle your details in our privacy policy.