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

3.14.3 arsefp - Expansion fan properties given p2/p1   and either M1   or M2
void arsefp(double g, double p, double m, bool is_m2, double result[5], int *ierr);

Compute the expansion fan properties given p2/p1   and either M1   or M2   .

Performance
Fixed

Arguments

G - REAL

ENTRY: Specific heat constant γ .

P - REAL

ENTRY: Pressure ratio p2/p1   .

M - REAL

ENTRY: Either M  ≥1
 1  or M  >0
 2  depending on whether is_m2 is false or true, respectivly.

IS_M2 - BOOLEAN

ENTRY: Whether the given m refers to M1   or M2   .

RESULT - ARRAY OF REAL

EXIT: Array with result properties as described in  12.

IERR - INTEGER

EXIT: (optional) Return status code.

Status codes

-1

Specific heat ratio γ≤ 1  .

-2

Given M1   or M2   out of range.

-3

Given pressure ratio p2/p1   out of range.