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

3.6.9 arffads - Fanno relations given (s-s*)/cp
void arffads(double g, double ds, bool is_sub, double result[8], int *ierr);

Compute the fanno relations given the fanno line, (s-s*)/cp .

Performance
Iterative

Arguments

G - REAL

ENTRY: Specific heat constant γ .

DS - REAL

ENTRY: Change in entropy -∞ < (s -s*)/cp< ∞ .

IS_SUB - BOOLEAN

ENTRY: Whether M corresponding to the given (s-s*)/cp is assumed to be sub- or super- sonic.

RESULT - ARRAY OF REAL

EXIT: Array with result properties as described in  4.

IERR - INTEGER

EXIT: (optional) Return status code.

Status codes

-1

Specific heat ratio γ≤ 1  .

-2

Computed M out of range.

-3

Given (s -s*)/cp out of range.

-4

Iterative solver failed.