CLASSpp Manual
Cosmology reference and developer manual
Loading...
Searching...
No Matches
HyrecModel Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ HyrecModel()

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 
)
Parameters
pathdirectory holding HYREC-2's data tables
T_cmbCMB temperature today in K
obh2Omega_b h^2
ocbh2Omega 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.
okh2Omega_k h^2
Neffeffective number of neutrino species
YHeprimordial helium mass fraction
fHehelium abundance by number, relative to hydrogen
nH0hydrogen number density today in m^-3
z_initialredshift at which CLASS starts the recombination integration
He_rate_correctionmultiply the helium rate by its CosmoRec calibration

Member Function Documentation

◆ Name()

const char * HyrecModel::Name ( ) const
overridevirtual

Name for verbose output.

Implements RecombinationModel.


The documentation for this class was generated from the following files: