Compressible Flow Subroutine Library
Programming Reference Manual
Version 1.0 DD-00008-010
3.7.8 arfrat0 - Rayleigh relations given T02/T01
void arfrat0(double g, double t0, bool is_sub, double result[8], int *ierr);

Compute the rayleigh relations given the stagnation temperature ratio, T02/T01   .

Performance
Iterative

Arguments




Argument Intent

Description




g in

Specific heat constant γ .

t0 in

Stagnation temperature ratio T02/T01 ≥0  .

is_sub in

Whether M corresponding to the given T02/T01   is assumed to be sub- or super-sonic.

result out

Array with result properties as described in  5.

ierr out

(optional) Return status code




Status codes

-1

Specific heat ratio γ≤ 1  .

-2

Computed M out of range.

-3

Given T02/T01   out of range.

-4

Iterative solver failed.