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

3.4.4 armcrla - Critical mach number given Cp0   using Laitone pressure approximation
double armcrla(double g, double cp0, int *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.