Compressible Flow Subroutine Library
Programming Reference Manual
Version 1.0 DD-00008-110E

3.4.3 armcrpg - Critical mach number given Cp0   using Prandtl-Glauert pressure approximation
DOUBLE PRECISION FUNCTION AR04AC(G,CP0,IERR)
  DOUBLE PRECISION G, CP0
  INTEGER IERR

Compute critical mach number given Cp0   Prandtl-Glauert pressure approximation.

Performance
Iterative

Arguments

G - REAL

ENTRY: Specific heat constant γ .

CP0 - REAL

ENTRY: Critical pressure coefficent C
  p0   .

IERR - INTEGER

EXIT: (optional) Return status code.

Status codes

-1

Specific heat ratio γ≤ 1  .

-2

Iterative solver failed.

Return Value
Critical mach number Mcrit   or NAN on error.