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

3.2.3 armcms - Compute given characteristic mach number, M *
double armcms(double g, double mstar, int *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.