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

3.4.4 armcrla - Critical mach number given Cp0   using Laitone pressure approximation
DOUBLE PRECISION FUNCTION AR04AD(G,CP0,IERR)
  DOUBLE PRECISION G, CP0
  INTEGER IERR

Compute critical mach number given Cp0   Laitone 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.