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

3.4.2 armcrc - Critical mach number given Cp
DOUBLE PRECISION FUNCTION AR04AB(G,CP,IERR)
  DOUBLE PRECISION G, CP
  INTEGER IERR

Compute given the critical mach number given Cp .

Performance
Iterative

Arguments

G - REAL

ENTRY: Specific heat constant γ .

CP - REAL

ENTRY: Critical pressure coefficent C
  p .

IERR - INTEGER

EXIT: (optional) Return status code.

Status codes

-1

Specific heat ratio γ≤ 1  .

-2

Given Cp out of range.

-3

Iterative solver failed.

Return Value
Critical mach number Mcrit   or NAN on error.