Ionized (H⁺) Neutral (H I) Ionizing star

Strömgren Disk: 2D Ionization Front Growth

A hot young star switching on floods its surroundings with ultraviolet photons that strip electrons from every hydrogen atom in reach, carving a bubble of ionized gas out of the cloud around it. This simulation looks at a genuinely 2D reduction of that process: a "Strömgren disk", where the star sits embedded in a thin slab of hydrogen gas of fixed thickness, so the ionized region grows as a cylinder confined by that slab rather than a freely expanding sphere. That confinement changes the governing photon-conservation equation — and with it, how fast and how far the front grows. Rather than plugging into a closed-form solution, the front radius here is produced by numerically integrating that ODE every frame with a fourth-order Runge–Kutta step, so you can watch the numerical front converge on the analytic equilibrium radius live, with a residual readout confirming the two agree. Tune the star's ionizing photon output, the ambient gas density and the slab thickness to see how each reshapes both the equilibrium radius and the timescale to reach it.