Basic Relationships¶
Low-level API¶
minuteman.cpg.base.mach_number ¶
Compute Mach number, \(M\)
Parameters:
-
velocity(ArraylikeFloat) –velocity, \(v\)
-
speed_of_sound(ArraylikeFloat) –speed of sound, \(a\)
Returns:
-
NDArrayFloat–Mach number, \(M\)
minuteman.cpg.base.speed_of_sound_by_pressure ¶
speed_of_sound_by_pressure(
pressure: ArraylikeFloat, density: ArraylikeFloat, specific_heat_ratio: ArraylikeFloat
) -> NDArrayFloat
Compute the speed of sound \(a\) from the pressure \(p\) and density \(\rho\)
Parameters:
-
pressure(ArraylikeFloat) –pressure, \(p\)
-
density(ArraylikeFloat) –density, \(\rho\)
-
specific_heat_ratio(ArraylikeFloat) –ratio of specific heats, \(\gamma\)
Returns:
-
NDArrayFloat–Speed of sound, \(a\)
minuteman.cpg.base.speed_of_sound_by_temperature ¶
speed_of_sound_by_temperature(
gas_constant: ArraylikeFloat, temperature: ArraylikeFloat, specific_heat_ratio: ArraylikeFloat
) -> NDArrayFloat
Compute the speed of sound from the specific gas constant \(R\) and temperature \(T\)
Parameters:
-
gas_constant(ArraylikeFloat) –specific gas constant, \(R\)
-
temperature(ArraylikeFloat) –temperature \(T\)
-
specific_heat_ratio(ArraylikeFloat) –ratio of specific heats, \(\gamma\)
Returns:
-
NDArrayFloat–Speed of sound, \(a\)
Data Structures¶
minuteman.cpg.base.ArraylikeFlowSpeedRegime: TypeAlias = npt.NDArray[np.object_] | list[FlowSpeedRegime] | FlowSpeedRegime
module-attribute
¶
Arraylike of FlowSpeedRegime objects