Crate comp_flow

Source
Expand description

§Compressible Flow

comp-flow is a collection of functions for basic compressible flow relations.

The included functions have no input checking or error handling whatsoever. Invalid (non-physical) inputs such as mach < 1 for a shock relation or gamma < 1 may produce non-sensical outputs.

Modules§

mach_from
Collection of functions for isentropic compressible flow.
mach_to
Collection of functions for isentropic compressible flow.
normal
Normal Shock relations
oblique
Weak oblique shock functions

Functions§

mach_from_a_ac
Mach number for a given critical area ratio.
mach_from_mach_angle
Mach number for a given mach angle in radians.
mach_from_p_p0
Mach number for a given total pressure ratio.
mach_from_pm_angle
Mach number for a given Prandtl-Meyer angle in radians.
mach_from_rho_rho0
Mach number for a given stagnation density ratio.
mach_from_t_t0
Mach number for a given total temperature ratio.
mach_to_a_ac
Critical area ratio for given mach number and specific heat ratio
mach_to_mach_angle
Mach angle in radians for a given mach number.
mach_to_p_p0
Total pressure ratio for given mach number and specific heat ratio
mach_to_pm_angle
Prandtl-Meyer angle in radians for a given mach number and specific heat ratio.
mach_to_rho_rho0
Stagnation density ratio for given mach number and specific heat ratio
mach_to_t_t0
Total temperature ratio for given mach number and specific heat ratio
normal_a2_a1
Speed of sound ratio across normal shock
normal_mach2
Mach number after normal shock
normal_p02_p01
Total pressure ratio across normal shock
normal_p2_p1
Static pressure ratio across normal shock
normal_rho2_rho1
Static density ratio across normal shock
normal_t2_t1
Static temperature ratio across normal shock
oblique_a2_a1
Speed of sound ratio across weak oblique shock
oblique_beta
Wave angle for weak oblique shock
oblique_beta_max
Maximum oblique shock angle
oblique_mach2
Mach number after weak oblique shock
oblique_p02_p01
Stagnation pressure ratio across weak oblique shock
oblique_p2_p1
Static pressure ratio across weak oblique shock
oblique_rho2_rho1
Static density ratio across weak oblique shock
oblique_t2_t1
Static temperature ratio across weak oblique shock