Compressible Flow Subroutine Library
Programming Reference Manual
Version 1.0 DD-00008-010
3.20.4 arsmnvup - Dynamic moving shock relations given Up
void arsmnvup(double g, double a0, double up, double result[3], int *ierr);

Compute the dynamic moving normal shock wave relations given the mass-motion velocity Up and the speed of sound a0   of the medium.

Performance
Fixed

Arguments




Argument Intent

Description




g in

Specific heat constant γ .

a0 in

Speed of sound in the medium a0> 0  .

up in

Maxx-motion velocuty U  >-(2⎷2a  √︁γ(γ2+-2γ-1))/(γ+1)
 p         0  .

result out

Array with result properties as described in  17.

ierr out

(optional) Return status code




Status codes

-1

Specific heat ratio γ≤ 1  .

-2

Given a0   out of range.

-3

Computed p2/p1   out of range.

-4

Given Up out of range.