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

3.2.3 armcms - Compute given characteristic mach number, M *
DOUBLE PRECISION FUNCTION AR02AB(G,MSTAR,IERR)
  DOUBLE PRECISION G, MSTAR
  INTEGER IERR

Compute given the characteristic mach number, M * . Note that if     √︁ ----------
M *=  (γ+ 1)(γ-1)  the function will return M = ∞ = INFINITY .

Performance
Fixed

Parameters

G - REAL

ENTRY: Specific heat constant γ .

MSTAR - REAL

ENTRY: Characteristic mach number 0< M* ≤√︁(-γ+1)(γ-1)  .

IERR - INTEGER

EXIT: (optional) Return status code.

Status Codes

-1

Specific heat ratio γ≤ 1  .

-3

Given M * out of specified range.

Return Value
Normal mach number M or NAN on error.