Jeans Instability
Jeans Instability
A gas cloud collapses under its own gravity if it is large enough that gravitational potential energy overcomes the thermal kinetic energy of the gas. This threshold is set by the Jeans length λ_J.
The Jeans Wavenumber
The Jeans wavenumber separates stable (oscillating) modes from unstable (collapsing) modes:
where m³/(kg·s²), is the gas density in kg/m³, and is the sound speed in m/s.
The Jeans Length
The Jeans length is the critical wavelength:
Perturbations with wavelength are gravitationally unstable and collapse. Those with oscillate as sound waves.
The Jeans Mass
The mass enclosed within a sphere of radius :
Typical Molecular Cloud
For a cold molecular cloud with m/s (T ≈ 10 K) and kg/m³:
- m ≈ 1.4 parsecs
- kg ≈ 21 solar masses
These are the seeds of star formation!
Your Task
Implement three functions. All constants must be defined inside each function.
jeans_wavenumber(c_s_m_s, rho_kg_m3)— returns in m⁻¹jeans_wavelength_m(c_s_m_s, rho_kg_m3)— returns in mjeans_mass_kg(c_s_m_s, rho_kg_m3)— returns in kg (compute inline)
Use m³/(kg·s²).