The universe is a theater of fluid violence—stellar winds carving nebulae, gas spiraling into black holes, dust condensing into worlds. Capturing these cosmic choreographies requires computational tools that can handle the extreme physics where matter, magnetism, and spacetime itself dance together. Enter Phantom, a battle-tested smoothed particle hydrodynamics code that transforms the chaos of astrophysical fluids into comprehensible simulations.

Built for production runs rather than algorithm testing, Phantom delivers a comprehensive physics engine that speaks the language of the cosmos fluently. It seamlessly handles compressible magnetohydrodynamics with advanced shock capturing, self-gravity through fast multipole methods, and even general relativistic effects in Kerr and Schwarzschild spacetimes. The code excels at multi-species dust-gas interactions, radiation transport via Monte Carlo methods, and can spawn everything from binary star systems to planetary discs with its flexible setup capabilities. Its symplectic integrators and adaptive particle refinement ensure both accuracy and computational efficiency.

From modeling protoplanetary disk evolution to simulating stellar explosions and black hole accretion, Phantom has become the go-to tool for researchers tackling the universe’s most dynamic phenomena. Its direct coupling with radiative transfer codes bridges the gap between theoretical predictions and observational data, making it invaluable for interpreting signals from ALMA, JWST, and gravitational wave detectors.


Stars: 136
💻 Language: Fortran
🔗 Repository: danieljprice/phantom