Skip to main content

Crate comp_flow

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§

der_mach_to
Derivatives of relations as a function of Mach number
der_normal
mach_from
Collection of functions for isentropic compressible flow. TODO: finish documentation
mach_to
Collection of functions for isentropic compressible flow.
normal
Normal Shock relations
oblique
Weak oblique shock functions

Functions§

der_mach_to_a_ac
der_mach_to_f_mcpt0
der_mach_to_mcpt0_ap
der_mach_to_mcpt0_ap0
der_mach_to_p0_p
der_mach_to_rho0_rho
der_mach_to_t0_t
Total temperature ratio for given mach number and specific heat ratio
der_mach_to_v_cpt0
der_normal_mach2
der_normal_p02_p01
mach_from_a_ac
Mach number for a given critical area ratio.
mach_from_f_mcpt0
mach_from_mach_angle
Mach number for a given mach angle in radians.
mach_from_mcpt0_ap
mach_from_mcpt0_ap0
mach_from_normal_mach2
mach_from_normal_p02_p01
mach_from_p0_p
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_rho0_rho
mach_from_rho_rho0
Mach number for a given stagnation density ratio.
mach_from_t0_t
Mach number for a given total temperature ratio.
mach_from_t_t0
Mach number for a given total temperature ratio.
mach_from_v_cpt0
mach_to_a_ac
Critical area ratio for given Mach number and specific heat ratio
mach_to_f_mcpt
Impulse function for given Mach number and specific heat ratio
mach_to_mach_angle
Mach angle in radians for a given mach number.
mach_to_mcpt0_ap
Static normalised mass flow for given Mach number and specific heat ratio
mach_to_mcpt0_ap0
Normalised mass flow for given Mach number and specific heat ratio
mach_to_p0_p
Total pressure ratio for given mach number and specific heat ratio
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_rho0_rho
Stagnation density ratio for given mach number and specific heat ratio
mach_to_rho_rho0
Stagnation density ratio for given mach number and specific heat ratio
mach_to_t0_t
Total temperature ratio for given mach number and specific heat ratio
mach_to_t_t0
Total temperature ratio for given mach number and specific heat ratio
mach_to_v_cpt0
Normalised velocity 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