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

3.3.2 arshud - Compute given density factor ρ2/ρ1
DOUBLE PRECISION FUNCTION AR03AA(G,D,IERR)
  DOUBLE PRECISION G, D
  INTEGER IERR

Compute pressure factor based upon density factor ρ2/ρ1   .

Performance
Fixed

Arguments

G - REAL

ENTRY: Specific heat constant γ .

D - REAL

ENTRY: Density fraction 0 <ρ /ρ < √︃-γ+1-
    2  1    γ-2   .

IERR - INTEGER

EXIT: (optional) Return status code.

Status codes

-1

Specific heat ratio γ≤ 1  .

-2

Given ρ2/ρ1   out of range.

Return Value
Pressure fraction p2/p1   or NAN on error.