Compressible Flow Subroutine Library
Programming Reference Manual
Version 1.0 DD-00008-110
3.3.3 arshup - Compute given density factor p2/p1
DOUBLE PRECISION FUNCTION AR03AB(G,P,IERR)
  DOUBLE PRECISION G, P
  INTEGER IERR

Compute pressure factor based upon pressure factor p2/p1   .

Performance
Fixed

Arguments




Argument Intent

Description




g in

Specific heat constant γ .

p in

Pressure fraction p2/p1> 0  .

ierr out

(optional) Return status code.




Status codes

-1

Specific heat ratio γ≤ 1  .

-2

Given p2/p1   out of range.

Return Value
Density fraction ρ2/ρ1   or NAN on error.