|
CLASSpp Manual
Cosmology reference and developer manual
|
Go to the source code of this file.
Data Structures | |
| struct | thermo |
| struct | recombination |
| struct | reionization |
Macros | |
| #define | f1(x) (-0.75 * x * (x * x / 3. - 1.) + 0.5) |
| #define | f2(x) (x * x * (0.5 - x / 3.) * 6.) |
Some basic constants needed by RECFAST: | |
| #define | _m_e_ 9.10938215e-31 |
| #define | _m_p_ 1.672621637e-27 |
| #define | _m_H_ 1.673575e-27 |
| #define | _not4_ 3.9715 |
| #define | _sigma_ 6.6524616e-29 |
Some specific constants needed by RECFAST: | |
Some specific constants needed by recfast_derivs: | |
Some limits imposed on cosmological parameter values: | |
| #define | _YHE_BIG_ 0.5 |
| #define | _YHE_SMALL_ 0.01 |
Enumerations | |
| enum | recombination_algorithm |
| enum | reionization_parametrization { reio_none , reio_camb , reio_bins_tanh , reio_half_tanh , reio_many_tanh , reio_inter } |
| enum | reionization_z_or_tau { reio_z , reio_tau } |
Input data and shared types for thermodynamics.
| struct thermo |
Input parameters for the thermodynamics calculation.
Computed thermodynamic tables belong to ThermodynamicsModule; this structure holds the shared configuration read by InputModule.
| Data Fields | ||
|---|---|---|
| double | YHe = _BBN_ |
|
| enum recombination_algorithm | recombination = recfast |
recombination code |
| enum reionization_parametrization | reio_parametrization = reio_camb |
reionization scheme |
| enum reionization_z_or_tau | reio_z_or_tau |
is the input parameter the reionization redshift or optical depth? |
| double | tau_reio = 0.0925 |
if above set to tau, input value of reionization optical depth |
| double | z_reio = 11.357 |
if above set to z, input value of reionization redshift |
| bool | compute_cb2_derivatives |
do we want to include in computation derivatives of baryon sound speed? |
| bool | compute_damping_scale |
do we want to compute the simplest analytic approximation to the photon damping (or diffusion) scale? |
| double | reionization_width = 0.5 |
parameters for reio_camb width of H reionization |
| double | reionization_exponent = 1.5 |
shape of H reionization |
| double | helium_fullreio_redshift = 3.5 |
redshift for of helium reionization |
| double | helium_fullreio_width = 0.5 |
width of helium reionization |
| int | binned_reio_num = 0 |
parameters for reio_bins_tanh with how many bins do we want to describe reionization? |
| vector< double > | binned_reio_z |
central z value for each bin |
| vector< double > | binned_reio_xe |
imposed |
| double | binned_reio_step_sharpness |
sharpness of tanh() step interpolating between binned values |
| int | many_tanh_num = 0 |
parameters for reio_many_tanh with how many jumps do we want to describe reionization? |
| vector< double > | many_tanh_z |
central z value for each tanh jump |
| vector< double > | many_tanh_xe |
imposed |
| double | many_tanh_width = 0.5 |
sharpness of tanh() steps |
| int | reio_inter_num = 0 |
parameters for reio_inter with how many jumps do we want to describe reionization? |
| vector< double > | reio_inter_z |
discrete z values |
| vector< double > | reio_inter_xe |
discrete |
| double | annihilation |
parameters for energy injection parameter describing CDM annihilation (f <sigma*v> / m_cdm, see e.g. 0905.0003) |
| bool | has_on_the_spot |
flag to specify if we want to use the on-the-spot approximation |
| double | decay = 0. |
parameter describing CDM decay (f/tau, see e.g. 1109.6322) |
| double | annihilation_variation = 0. |
if this parameter is non-zero, the function F(z)=(f <sigma*v> / m_cdm)(z) will be a parabola in log-log scale between zmin and zmax, with a curvature given by annihlation_variation (must be negative), and with a maximum in zmax; it will be constant outside this range |
| double | annihilation_z = 1000. |
if annihilation_variation is non-zero, this is the value of z at which the parameter annihilation is defined, i.e. F(annihilation_z)=annihilation |
| double | annihilation_zmax = 2500. |
if annihilation_variation is non-zero, redshift above which annihilation rate is maximal |
| double | annihilation_zmin = 30. |
if annihilation_variation is non-zero, redshift below which annihilation rate is constant |
| double | annihilation_f_halo |
takes the contribution of DM annihilation in halos into account |
| double | annihilation_z_halo = 30. |
characteristic redshift for DM annihilation in halos |
| short | thermodynamics_verbose |
flag regulating the amount of information sent to standard output (none if set to zero) |
| struct recombination |
Temporary structure where all the recombination history is defined and stored.
This structure is used internally by the thermodynamics module, but never passed to other modules.
| struct reionization |
Temporary structure where all the reionization history is defined and stored.
This structure is used internally by the thermodynamics module, but never passed to other modules.
| #define f1 | ( | x | ) | (-0.75 * x * (x * x / 3. - 1.) + 0.5) |
Two useful smooth step functions, for smoothing transitions in recfast. goes from 0 to 1 when x goes from -1 to 1
| #define f2 | ( | x | ) | (x * x * (0.5 - x / 3.) * 6.) |
goes from 0 to 1 when x goes from 0 to 1
| #define _m_e_ 9.10938215e-31 |
electron mass in Kg
| #define _m_p_ 1.672621637e-27 |
proton mass in Kg
| #define _m_H_ 1.673575e-27 |
Hydrogen mass in Kg
| #define _not4_ 3.9715 |
Helium to Hydrogen mass ratio
| #define _sigma_ 6.6524616e-29 |
Thomson cross-section in m^2
| #define _YHE_BIG_ 0.5 |
maximal 
| #define _YHE_SMALL_ 0.01 |
minimal 
List of possible recombination algorithms.
List of possible reionization schemes.