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

3.4.3 armcrpg - Critical mach number given Cp0   using Prandtl-Glauert pressure approximation
double armcrpg(double g, double cp0, int *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.