Recombination#
- class discoeb.components.recombination.Recombination(**overrides)[source]#
Bases:
ComponentThe thermal history every solve integrates once per cosmology: the interface a recombination code fills.
It holds the conformal time
tauand the optical depthkappaas driver states and provides what the perturbations and DISCO-CMB read:tau, theopacitykappa' = x_e n_H sigma_T aand the baryon sound speedcs2. A subclass is one recombination code, such asRECFAST, and provides three quantities from states of its own:xe_rec, the free electrons per hydrogen nucleus from recombination alone,Tmat, the matter temperature in K,dTm_dz, its rate in redshift, whichcs2reads.
The class adds CAMB’s tanh reionization (
z_re) toxe_rec. The solve integrates in the scale factor, soais the time itself andtaua state whose rate is one (per unit of itself: the solve divides every rate bya',Equations). It starts from the radiation era’s closed form, and its value today is the conformal age.kappaintegrates the opacity froma = 6e-4on, and DISCO-CMB forms the visibilitykappa'(tau) exp(-(kappa(tau_0) - kappa(tau)))from it. Nothing marks these states as the background: their rates read no wave number, andEquations.stagesfinds that.
- class discoeb.components.recfast.RECFAST(**overrides)[source]#
Bases:
RecombinationRECFAST’s
(x_H, x_He, T_m)as the statethermo, whose rates inzconvert withdz/dtau = -aH / a.It provides the three quantities
Recombinationasks of a recombination code:xe_rec = x_H + fHe x_He,Tmatand its ratedTm_dz, with no spline derivative.
- class discoeb.components.recombination.ReionizationDepth(**overrides)[source]#
Bases:
ComponentThe optical depth of reionization as a state:
kappa_reio, whose value today istau_reio.A model adds it to read
tau_reiooff a solve or to differentiate in the reionization redshift,LCDM.add(ReionizationDepth, name=...).kappa_reiointegrates the opacity of the electrons reionization frees, a background state besideRecombination’s. A launch weights it (REIO_ERROR_WEIGHT) so that the steps resolve the reionization step’s derivative inz_re. Without the state the derivative is inaccurate.