PyCosmo: An Integrated Cosmological Boltzmann Solver
Alexandre RefregierLukas GamperAAAdam AmaraLavinia Heisenberg
Alexandre Refregier
Lukas Gamper
AAAdam Amara
Lavinia Heisenberg
+4
PyCosmo is a new Python-based framework for numerically solving the Einstein-Boltzmann equations that govern linear cosmological perturbations. It uses symbolic manipulations, automatic C++ code generation, and sparsity optimization to achieve high accuracy and speed. The code employs a consistency relation of the field equations to adapt the time step, avoiding physical approximations for acceleration. Compared with existing Boltzmann solvers, PyCosmo achieves comparable execution times for comparable accuracies. Its symbolic representation provides a convenient interface for implementing extended cosmological models, making it a complementary tool for independent verification of numerical solutions.

arXiv ·
· August 17, 2017