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

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

G - REAL

ENTRY: Specific heat constant γ .

P - REAL

ENTRY: Pressure fraction p /p > 0
  2 1  .

IERR - INTEGER

EXIT: (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.