4 import matplotlib.pyplot
as plt
11 etas = np.logspace(-12,-7,num=100)
32 n_p_ratio = np.exp(-Delta/kB_Tweak)
35 neutron_freezout = n_p_ratio/(1. + n_p_ratio)
36 proton_freezout = 1. - neutron_freezout
38 ye_freezout = proton_freezout/(neutron_freezout+proton_freezout)
42 first_time = (13.36 * 1./(kB_Tweak * 11.604519))**2.
44 time = np.logspace(np.log10(first_time),10,num=200)
47 temperature = 13.336 * 1./(time**0.5)
53 m_u = 1.660540e-27 * 1e3
56 hbarc = 197.3269718 * 1.e-13
58 dens = 2.404 * eta/(pi**2.) * ((kB*temperature)/(hbarc))**3. * m_u
61 ye = [ye_freezout
for i
in range(len(time))]
64 out = np.array([time,temperature,dens,ye]).T
65 np.savetxt(
'bbn_'+str(e),out,header=
'time [s], T9 [GK], density [g/cm^3], Ye \n')