Compressible Flow Subroutine Library
Programming Reference Manual
Version 1.0 DD-00008-010
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




Argument Intent

Description




g in

Specific heat constant γ

mstar in

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

ierr out

(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.