⭐ Star Birth Lab: Jeans Collapse of a Molecular Cloud Core

2D interactive simulation · educational model

Set the mass, temperature and size of a cold gas cloud. If its mass exceeds the Jeans mass the cloud falls in on itself; otherwise thermal pressure wins.

The science

Jeans criterion. A cloud of gas at temperature T collapses when gravity beats thermal pressure. For uniform density ρ the Jeans mass is MJ = (5kT/(GμmH))3/2 (3/(4πρ))1/2 with mean molecular mass μ = 2.33 for molecular hydrogen and helium. Cold, dense clouds have small MJ; that is why stars form in the coldest, densest cores. The numerical factor depends on the definition (other textbooks give differences of a factor 2-3); the scaling with T3/2ρ−1/2 is the robust part.

Virial ratio. The cloud starts as a uniform sphere with random velocities of 1-D dispersion σ2 = kT/(μmH), giving 2K/|W| = 5σ2R/(GM) (with |W| = 3GM²/5R). Below about 1 the cloud contracts. Gravity is softened direct-sum N-body (300 parcels, ε = 0.04 R) integrated with leapfrog and an adaptive timestep.

Free fall. A pressureless cloud collapses in tff = √(3π/(32Gρ)), which is the time for a test mass to drop from R to the centre, (π/2)√(R³/2GM). Both are verified in the checks. Time on screen is physical (kyr / Myr) through √(R³/GM).

Why it heats up. Contraction releases gravitational energy; by the virial theorem the temperature of the collapsed core is of order T ∼ G M μmH /(5 k R). Fusion of hydrogen needs about 10 million K, i.e. a radius of a few tenths of a solar radius for one solar mass; the plot shows the virial temperature at the half-mass radius against that threshold.

Honest simplifications. No radiative cooling or opacity (the real early collapse is nearly isothermal, then turns adiabatic), no magnetic fields, turbulence, rotation or outflows, no outside pressure that real cores rely on, no separate heating of individual parcels. The simulation cannot resolve the final stellar scale (softening 0.04 R); the temperature panel is an order-of-magnitude virial estimate and the ignition radius is quoted analytically, not simulated.