Compressible Flow Relations

A brief collection of ideal, compressible flow relations.

mcycle.library.compressible_flow_relations.TTotalRatio(double gamma, double pTotalRatio=0, double M=0) → double

float: ratio of static temperature to total temperature (also called absolute or stagnation temperature) calculated from gamma and either static to total pressure ratio or Mach number.

Parameters:

gamma : double

Ratio of specific heats.

pTotalRatio : double, optional

Ratio of static pressure to total pressure. Defaults to O.

M : double, optional

Mach number. Defaults to 0.

mcycle.library.compressible_flow_relations.chokedAreaRatio(double gamma, double M) → double

float: ratio of flow area to choked area.

Parameters:

gamma : double

Ratio of specific heats.

M : double

Mach number. Defaults to 0.

mcycle.library.compressible_flow_relations.pTotalRatio(double gamma, double TTotalRatio=0, double M=0) → double

float: ratio of static pressure to total pressure (also called absolute or stagnation pressure) calculated from gamma and either static to total temperature ratio or Mach number.

Parameters:

gamma : double

Ratio of specific heats.

TTotalRatio : double, optional

Ratio of static temperature to total temperature. Defaults to O.

M : double, optional

Mach number. Defaults to 0.

mcycle.library.compressible_flow_relations.speedOfSound(double gamma, double p=0, double rho=0, double R=0, double T=0) → double

float: speed of sound from gamma and either static pressure & mass density or; gas constant & static temperature.

Parameters:

gamma : double

Ratio of specific heats.

p : double

Static pressure [Pa]. Defaults to 0.

rho : double

Mass density [kg/m^3]. Defaults to 0.

R : double

Gas constant [J/kg/K]. Defaults to 0.

T : double

Static temperature [K]. Defaults to 0.