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

3.7.7 arfrap0 - Rayleigh relations given p02/p01
void arfrap0(double g, double p0, bool is_sub, double result[8], int *ierr);

Compute the rayleigh relations given the stagnation pressure ratio, p02/p01   .

Performance
Iterative

Arguments

G - REAL

ENTRY: Specific heat constant γ .

P0 - REAL

ENTRY: Stagnation pressure ratio          γ2-1
p02/p01> γ2--   .

IS_SUB - BOOLEAN

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

RESULT - ARRAY OF REAL

EXIT: Array with result properties as described in  5.

IERR - INTEGER

EXIT: (optional) Return status code.

Status codes

-1

Specific heat ratio γ≤ 1  .

-2

Computed M out of range.

-3

Given p02/p01   out of range.

-4

Iterative solver failed.