CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
cbl::cosmology Namespace Reference

The namespace of the functions and classes used for cosmological calculations More...

Classes

class  Cosmology
 The class Cosmology. More...
 
class  EisensteinHu
 The class EisensteinHu. More...
 
class  HaloProfile
 The class HaloProfile. More...
 
class  SuperSampleCovariance
 The class SuperSampleCovariance. More...
 

Enumerations

enum class  CosmologicalModel {
  _WMAP5_ , _WMAP7_ , _WMAP9_ , _Planck13_ ,
  _Planck15_ , _Planck15_TT_ , _Planck18_
}
 built-in cosmological models More...
 
enum class  CosmologicalParameter {
  _Omega_matter_LCDM_ , _Omega_matter_ , _Omega_baryon_ , _Omega_baryon_h2_ ,
  _Omega_neutrinos_ , _massless_neutrinos_ , _massive_neutrinos_ , _neutrino_mass_ ,
  _Omega_DE_ , _Omega_radiation_ , _H0_ , _hh_ ,
  _scalar_amp_ , _ln_scalar_amp_ , _scalar_pivot_ , _n_spec_ ,
  _w0_ , _wa_ , _fNL_ , _sigma8_ ,
  _tau_ , _rs_
}
 the cosmological parameters More...
 

Functions

std::vector< std::string > CosmologicalModelNames ()
 return a vector containing the CosmologicalModel names More...
 
CosmologicalModel CosmologicalModelCast (const int cosmologicalModelIndex)
 cast an enum of type CosmologicalModel from its index More...
 
CosmologicalModel CosmologicalModelCast (const std::string cosmologicalModelName)
 cast an enum of type CosmologicalModel from its name More...
 
std::vector< CosmologicalModelCosmologicalModelCast (const std::vector< int > cosmologicalModelIndeces)
 cast an enum of type CosmologicalModel from indeces More...
 
std::vector< CosmologicalModelCosmologicalModelCast (const std::vector< std::string > cosmologicalModelNames)
 cast an enum of type CosmologicalModel from thier names More...
 
std::vector< std::string > CosmologicalParameterNames ()
 return a vector containing the CosmologicalParameter names More...
 
CosmologicalParameter CosmologicalParameterCast (const int cosmologicalParameterIndex)
 cast an enum of type CosmologicalParameter from its index More...
 
CosmologicalParameter CosmologicalParameterCast (const std::string cosmologicalParameterName)
 cast an enum of type CosmologicalParameter from its name More...
 
std::vector< CosmologicalParameterCosmologicalParameterCast (const std::vector< int > cosmologicalParameterIndeces)
 cast an enum of type CosmologicalParameter from indeces More...
 
std::vector< CosmologicalParameterCosmologicalParameterCast (const std::vector< std::string > cosmologicalParameterNames)
 cast an enum of type CosmologicalParameter from thier names More...
 
std::string CosmologicalParameter_name (const CosmologicalParameter parameter)
 name of the cosmological parameter More...
 

Detailed Description

The namespace of the functions and classes used for cosmological calculations

The cosmology namespace contains all the functions and classes used for cosmological calculations

Enumeration Type Documentation

◆ CosmologicalModel

built-in cosmological models

Enumerator
_WMAP5_ 

Komatsu et al. 2009: Table 1, WMAP 5 Year Mean.

_WMAP7_ 

Komatsu et al. 2011: Table 1, WMAP Seven-year Mean.

_WMAP9_ 

Hinshaw et al. 2013: Table 3, WMAP-only Nine-year.

_Planck13_ 

Planck collaboration 2013, paper XVI: Table 3, Planck+WP.

_Planck15_ 

Planck collaboration 2015, paper XIII: Table 4, TT,TE,EE+lowP+lensing.

_Planck15_TT_ 

Planck collaboration 2015, paper XIII: Table 4, TT+lowP+lensing.

_Planck18_ 

Planck collaboration 2018, Paper VI: Table 2, TT,TE,EE+lowE+lensing.

Definition at line 62 of file Cosmology.h.

◆ CosmologicalParameter

the cosmological parameters

Enumerator
_Omega_matter_LCDM_ 

\(\Omega_M\): the density of baryons, cold dark matter and massive neutrinos (in units of the critical density) at z=0 in the LCDM case

_Omega_matter_ 

\(\Omega_M\): the density of baryons, cold dark matter and massive neutrinos (in units of the critical density) at z=0

_Omega_baryon_ 

\(\Omega_b\): the baryon density at z=0

_Omega_baryon_h2_ 

\(\Omega_b h^2\): the baryon density times \(h^2\) at z=0

_Omega_neutrinos_ 

\(\Omega_\nu\): the density of massive neutrinos at z=0

_massless_neutrinos_ 

\(N_{eff}\): the effective number (for QED + non-instantaneous decoupling)

_massive_neutrinos_ 

the number of degenerate massive neutrino species

_neutrino_mass_ 

the total neutrino mass

_Omega_DE_ 

\(\Omega_{DE}\): the dark energy density at z=0

_Omega_radiation_ 

\(\Omega_{rad}\): the radiation density at z=0

_H0_ 

\(H_0\): the Hubble constant at z=0 [km/sec/Mpc]

_hh_ 

\(h\): the Hubble constant at z=0 divided by 100

_scalar_amp_ 

\(A_s\): the initial scalar amplitude of the power spectrum

_ln_scalar_amp_ 

\(\ln(10^{10}A_s)\): the logarithm of 1e10 times the initial scalar amplitude of the power spectrum

_scalar_pivot_ 

the scalar pivot k in \(Mpc^{-1}\)

_n_spec_ 

\(n_{spec}\): the primordial spectral index

_w0_ 

\(w_0\): the parameter of the dark energy equation of state (CPL parameterisation)

_wa_ 

\(w_a\): the parameter of the dark energy equation of state (CPL parameterisation)

_fNL_ 

\(f_{NL}\): the non-Gaussian amplitude

_sigma8_ 

\(\sigma_8\): the power spectrum normalisation

_tau_ 

\(\tau\): Thomson scattering optical depth due to reionization

_rs_ 

sound horizon

Definition at line 134 of file Cosmology.h.

Function Documentation

◆ CosmologicalModelCast() [1/4]

CosmologicalModel cbl::cosmology::CosmologicalModelCast ( const int  cosmologicalModelIndex)
inline

cast an enum of type CosmologicalModel from its index

Parameters
cosmologicalModelIndexthe cosmologicalModel index
Returns
object of class CosmologicalModel

Definition at line 101 of file Cosmology.h.

◆ CosmologicalModelCast() [2/4]

CosmologicalModel cbl::cosmology::CosmologicalModelCast ( const std::string  cosmologicalModelName)
inline

cast an enum of type CosmologicalModel from its name

Parameters
cosmologicalModelNamethe cosmologicalModel name
Returns
object of class CosmologicalModel

Definition at line 110 of file Cosmology.h.

◆ CosmologicalModelCast() [3/4]

std::vector<CosmologicalModel> cbl::cosmology::CosmologicalModelCast ( const std::vector< int >  cosmologicalModelIndeces)
inline

cast an enum of type CosmologicalModel from indeces

Parameters
cosmologicalModelIndecesthe cosmologicalModel indeces
Returns
vector of objects of class CosmologicalModel

Definition at line 119 of file Cosmology.h.

◆ CosmologicalModelCast() [4/4]

std::vector<CosmologicalModel> cbl::cosmology::CosmologicalModelCast ( const std::vector< std::string >  cosmologicalModelNames)
inline

cast an enum of type CosmologicalModel from thier names

Parameters
cosmologicalModelNamesthe cosmologicalModel names
Returns
vector of objects of class CosmologicalModel

Definition at line 128 of file Cosmology.h.

◆ CosmologicalModelNames()

std::vector<std::string> cbl::cosmology::CosmologicalModelNames ( )
inline

return a vector containing the CosmologicalModel names

Returns
a vector containing the CosmologicalModel names

Definition at line 92 of file Cosmology.h.

◆ CosmologicalParameter_name()

std::string cbl::cosmology::CosmologicalParameter_name ( const CosmologicalParameter  parameter)

name of the cosmological parameter

Parameters
parameterthe cosmological parameter
Returns
a std::string containing the name of the cosmological parameter provided in input

Definition at line 45 of file Cosmology.cpp.

◆ CosmologicalParameterCast() [1/4]

CosmologicalParameter cbl::cosmology::CosmologicalParameterCast ( const int  cosmologicalParameterIndex)
inline

cast an enum of type CosmologicalParameter from its index

Parameters
cosmologicalParameterIndexthe cosmologicalParameter index
Returns
object of class CosmologicalParameter
Examples
modelling_VoidAbundances.cpp.

Definition at line 220 of file Cosmology.h.

◆ CosmologicalParameterCast() [2/4]

CosmologicalParameter cbl::cosmology::CosmologicalParameterCast ( const std::string  cosmologicalParameterName)
inline

cast an enum of type CosmologicalParameter from its name

Parameters
cosmologicalParameterNamethe cosmologicalParameter name
Returns
object of class CosmologicalParameter

Definition at line 229 of file Cosmology.h.

◆ CosmologicalParameterCast() [3/4]

std::vector<CosmologicalParameter> cbl::cosmology::CosmologicalParameterCast ( const std::vector< int >  cosmologicalParameterIndeces)
inline

cast an enum of type CosmologicalParameter from indeces

Parameters
cosmologicalParameterIndecesthe cosmologicalParameter indeces
Returns
vector of objects of class CosmologicalParameter

Definition at line 239 of file Cosmology.h.

◆ CosmologicalParameterCast() [4/4]

std::vector<CosmologicalParameter> cbl::cosmology::CosmologicalParameterCast ( const std::vector< std::string >  cosmologicalParameterNames)
inline

cast an enum of type CosmologicalParameter from thier names

Parameters
cosmologicalParameterNamesthe cosmologicalParameter names
Returns
vector of objects of class CosmologicalParameter

Definition at line 250 of file Cosmology.h.

◆ CosmologicalParameterNames()

std::vector<std::string> cbl::cosmology::CosmologicalParameterNames ( )
inline

return a vector containing the CosmologicalParameter names

Returns
a vector containing the CosmologicalParameter names

Definition at line 209 of file Cosmology.h.