Lesson 16 of 16
Mach Number and Compressible Flow
Mach Number and Compressible Flow
At high speeds, compressibility effects become important. The Mach number characterises how fast a flow moves relative to the local speed of sound.
Speed of Sound
In an ideal gas, the speed of sound depends only on temperature:
where:
- — ratio of specific heats for air (diatomic ideal gas)
- — specific gas constant for air
- — absolute temperature in kelvin (K)
At 20 °C (293.15 K), m/s. Sound travels faster in warmer air because higher temperature means faster molecular motion.
Mach Number
The Mach number is the ratio of flow speed to the local speed of sound :
| Regime | Mach Range |
|---|---|
| Subsonic | |
| Transonic | |
| Supersonic | |
| Hypersonic |
Mach Cone
When an object moves at supersonic speed (), it outruns the pressure waves it creates. These waves pile up into a Mach cone (shock wave). The half-angle of the cone satisfies:
At , . Higher Mach numbers produce narrower cones.
Your Task
Implement:
speed_of_sound(T)— speed of sound in m/s for air at temperature (K). Use , J/(kg·K).mach_number(v, T)— Mach number for flow speed (m/s) at temperature (K).mach_angle_deg(M)— Mach cone half-angle in degrees for ; returnNoneif .
Python runtime loading...
Loading...
Click "Run" to execute your code.