Compressible Flow Subroutine Library
Programming Reference Manual
Version 1.0 DD-00008-110
3.15.3 arsptp - (Rayleigh-)Pitot relations given p0/p or p02/p1
DOUBLE PRECISION FUNCTION AR15AB(G,P0,IS_SUB,IERR)
  DOUBLE PRECISION G, P0
  LOGICAL IS_SUB
  INTEGER IERR

Compute the Rayleigh-Pitot properties given a one of the pressure ratios p0/p or p02/p1   .

Performance

Arguments




Argument Intent

Description




g in

Specific heat constant γ .

p0 in

The pressure ratio p0/p≥ 1  or p02/p1≥ ((1+γ)/2)(γ/(γ-1))   depending upon is_sub.

is_sub in

Whether p0 refers to a Pitot pressure fraction (true) or to a Rayleigh-Pitot pressure fraction (false).

result out

Array with result properties as described in  13.

ierr out

(optional) Return status code




Status codes

-1

Specific heat ratio γ≤ 1  .

-2

Given pressure ratio out of range.

-3

Iterative solver failed.

Return Values
The Mach number M or NAN on error.