Boltzmann Equation Solver for Thermalization
arXiv:2603.28848 · doi:10.1016/j.cpc.2026.110295
Abstract
We present BEST (Boltzmann Equation Solver for Thermalization), a Python framework for solving the momentum-resolved Boltzmann equation for arbitrary scattering processes. The collision integral is evaluated directly in dimensions using the VEGAS adaptive Monte Carlo algorithm with vectorized batch evaluation. Momentum conservation is enforced exactly by expressing one particle's momentum through the constraint, while energy conservation is imposed via a narrow Gaussian representation of the delta function. We identify a subtlety in the construction of the collision integral for processes with unequal initial and final multiplicities () involving identical particles: the full collision rate requires separate evaluation with the observed momentum pinned to each side of the reaction, weighted by the respective particle multiplicities. Failure to account for this leads to systematic violation of energy conservation. The code supports massive particles with time-dependent masses, Bose-Einstein and Fermi-Dirac quantum statistics, multiple coupled species, cosmological expansion with comoving momenta, and both Euler and Heun time integration. Parallelization is achieved by distributing independent momentum grid points across MPI ranks, yielding near-linear scaling to hundreds of cores. We validate the Monte Carlo results against a semi-analytical collision integral with exact energy conservation, following the phase-space reduction of Ala-Mattinen et al. As a demonstration, we study thermalization of a massive scalar field through a number-changing process and show that energy conservation is restored only when all identical-particle contributions are correctly summed. The code is publicly available at https://github.com/best-hep/best.
12 pages, 4 figures, v2: matches version published in Comput. Phys. Commun., code available at https://github.com/best-hep/best
References in corpus (16)
- Freeze-In Production of FIMP Dark Matter
- The SIMP Miracle
- Nonequilibrium Corrections to the Spectra of Massless Neutrinos in the Early Universe
- Adaptive Multidimensional Integration: VEGAS Enhanced
- Semi-annihilation of Dark Matter
- The Higgs Portal to Cosmology
- DRAKE: Dark matter Relic Abundance beyond Kinetic Equilibrium
- Resonance enhancement of dark matter interactions: the case for early kinetic decoupling and velocity dependent resonance width
- Real Scalar Dark Matter: Relativistic Treatment
- Revisiting Dark Matter Freeze-in and Freeze-out through Phase-Space Distribution
- Transport Theory beyond Binary Collisions
- Momentum distributions of cosmic relics: Improved analysis
- Primordial neutrinos and new physics: novel approach to solving neutrino Boltzmann equation
- How new physics affects primordial neutrinos decoupling: Direct Simulation Monte Carlo approach
- Freezing-in Cannibal Dark Sectors
- Precision calculation of with Neutrino Direct Simulation Monte Carlo