4 import matplotlib.pyplot
as plt
30 n_p_ratio = np.exp(-Delta/kB_Tweak)
33 neutron_freezout = n_p_ratio/(1. + n_p_ratio)
34 proton_freezout = 1. - neutron_freezout
36 ye_freezout = proton_freezout/(neutron_freezout+proton_freezout)
40 first_time = (13.336 * 1./(kB_Tweak * 11.604519))**2.
42 time = np.logspace(np.log10(first_time),5,num=200)
45 temperature = 13.336 * 1./(time**0.5)
51 m_u = 1.660540e-27 * 1e3
54 hbarc = 197.3269718 * 1.e-13
56 dens = 2.404 * eta/(pi**2.) * ((kB*temperature)/(hbarc))**3. * m_u
59 ye = [ye_freezout
for i
in range(len(time))]
62 out = np.array([time,temperature,dens,ye]).T
63 np.savetxt(
'bbn.dat',out,header=
'time[s], T9[GK], density[g/cm^3], Ye \n')