Compressible Flow Subroutine Library
Programming Reference Manual
Version 1.0 DD-00008-110
3.7.7 arfrap0 - Rayleigh relations given p02/p01
SUBROUTINE AR07AF(G,P0,IS_SUB,RESULT,IERR)
  DOUBLE PRECISION G, P0, RESULT(8)
  LOGICAL IS_SUB
  INTEGER IERR

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

Performance
Iterative

Arguments




Argument Intent

Description




g in

Specific heat constant γ .

p0 in

Stagnation pressure ratio          2
p02/p01> γγ-21   .

is_sub in

Whether M corresponding to the given p02/p01   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 p  /p
 02 01   out of range.

-4

Iterative solver failed.