|
CLASSpp Manual
Cosmology reference and developer manual
|
#include <hyrec_model.h>
Inheritance diagram for HyrecModel:Public Member Functions | |
| HyrecModel (std::string path, double T_cmb, double obh2, double ocbh2, double okh2, double Neff, double YHe, double fHe, double nH0, double z_initial, bool He_rate_correction) | |
| const char * | Name () const override |
HYREC-2 (Ali-Haimoud, Hirata & Lee; arXiv:2007.14114), driven as a derivative supplier rather than as a history builder.
This is class_public v3's arrangement: CLASS integrates x_H, x_He and T_mat with its own evolver and its own background, and calls HYREC-2 only for the two ionization derivatives. Two things follow.
First, HYREC-2 never computes an expansion rate – rec_HubbleRate is not reached – so the CPL dark-energy reconstruction it would otherwise use, and the massive neutrino that reconstruction double-counted, are simply out of the picture (issues #396 and #369). Whatever CLASS's background says, including scalar-field dark energy, is what recombination sees.
Second, the model is SWIFT, HYREC-2's own default and a fit to its full radiative-transfer calculation. FULL is unreachable this way: it needs the radiation-field history indexed on HYREC-2's uniform lna grid, which an adaptive evolver taking rejected steps cannot supply. HYREC-2's own guards still fall back to PEEBLES where the effective-rate tables run out.
| HyrecModel::HyrecModel | ( | std::string | path, |
| double | T_cmb, | ||
| double | obh2, | ||
| double | ocbh2, | ||
| double | okh2, | ||
| double | Neff, | ||
| double | YHe, | ||
| double | fHe, | ||
| double | nH0, | ||
| double | z_initial, | ||
| bool | He_rate_correction | ||
| ) |
| path | directory holding HYREC-2's data tables |
| T_cmb | CMB temperature today in K |
| obh2 | Omega_b h^2 |
| ocbh2 | Omega h^2 of NON-free-streaming matter – baryons and cold dark matter, excluding massive neutrinos. It enters SWIFT's fiducial-difference correction, and including neutrinos here would reintroduce #396's double-count in a different slot. |
| okh2 | Omega_k h^2 |
| Neff | effective number of neutrino species |
| YHe | primordial helium mass fraction |
| fHe | helium abundance by number, relative to hydrogen |
| nH0 | hydrogen number density today in m^-3 |
| z_initial | redshift at which CLASS starts the recombination integration |
| He_rate_correction | multiply the helium rate by its CosmoRec calibration |
|
overridevirtual |
Name for verbose output.
Implements RecombinationModel.