This code was written as part of a summer project that the author did with Prof. Nirmal Raj at Center for High Energy Physics, Indian Institute of Science.
A basic BBN reaction network up to the
The code produces the correct plots for the weak scale values between 50 GeV < v < 600 GeV. The lower bound is because the freeze out temperature begins to equalize with the bottleneck temperature (which results in the same initial conditions as the weak scale is decreased further, leading to the same plots), whereas the upper bound arises because of the temperature range in which the Reaclib reaction rates are valid.
The code also computes a bonus plot:
Run the following commands in your terminal:
git clone https://github.com/NottingTheNot/BBN-Abundance-Calculation
pip install -r requirements.txt
jupyter notebook plotting.ipynb
BBN-simple: How to Bake a Universe-Sized Cake
The Weak Scale from BBN
Most the code was written by the author. However, some of the code pertaining to the stiff ODE solver; wrapping part of the code with tqdm expressions to represent a progress bar; overcoming overflow errors in certain expressions; and making the plots look prettier were done with the help of AI.