Class
NumCosmoHICosmo
Description [src]
abstract class NumCosmo.HICosmo : NumCosmoMath.Model
{
/* No available fields */
}
Abstract class for implementing homogeneous and isotropic cosmological models.
This object provides an interface for homogeneous and isotropic cosmological models.
Functions
nc_hicosmo_set_E2Omega_b_impl
Sets the implementation for computing the baryonic density $E^2\Omega_{b} = \rho_b(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_set_E2Omega_c_impl
Sets the implementation for computing the cold dark matter density $E^2\Omega_{c} = \rho_c(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_set_E2Omega_g_impl
Sets the implementation for computing the photons density $E^2\Omega_{\gamma} = \rho_\gamma(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_set_E2Omega_m_impl
Sets the implementation for computing the total matter density $E^2\Omega_{m} = \rho_m(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_set_E2Omega_mnu_impl
Sets the implementation for computing the massive neutrinos density $E^2\Omega_{m\nu} = \rho_{m\nu}(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_set_E2Omega_mnu_n_impl
Sets the implementation for computing the n-th massive neutrinos density $E^2\Omega_{m\nu,n} = \rho_{m\nu,n}(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_set_E2Omega_nu_impl
Sets the implementation for computing the ultra-relativistic neutrinos density $E^2\Omega_{\nu} = \rho_\nu(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_set_E2Omega_r_impl
Sets the implementation for computing the total radiation density $\Omega_{r} = \rho_r(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_set_E2Omega_t_impl
Sets the implementation for computing the total density $E2\Omega_{t0} = \rho_t(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_set_E2Press_mnu_impl
Sets the implementation for computing the massive neutrinos pressure $E^2P_{m\nu} = p_{m\nu}(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_set_E2Press_mnu_n_impl
Sets the implementation for computing the n-th massive neutrinos pressure $E^2P_{m\nu,n} = p_{m\nu,n}(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_set_E2_impl
Sets the implementation for computing the normalized Hubble function squared, $E^2(z)$.
nc_hicosmo_set_NMassNu_impl
Sets the implementation for computing the number of massive neutrino species.
nc_hicosmo_set_Omega_c0_impl
Sets the implementation for computing the cold dark matter density parameter.
nc_hicosmo_set_Omega_m0_impl
Sets the implementation for computing the total matter density parameter.
nc_hicosmo_set_Omega_mnu0_impl
Sets the implementation for computing the massive neutrino density parameter.
nc_hicosmo_set_Omega_mnu0_n_impl
Sets the implementation for computing the n-th massive neutrino density parameter.
nc_hicosmo_set_Omega_nu0_impl
Sets the implementation for computing the ultra-relativistic neutrino density parameter.
nc_hicosmo_set_Omega_r0_impl
Sets the implementation for computing the total radiation density parameter.
nc_hicosmo_set_Press_mnu0_n_impl
Sets the implementation for computing the n-th massive neutrino pressure.
nc_hicosmo_set_Yp_4He_impl
Sets the implementation for computing the primordial Helium mass fraction.
nc_hicosmo_set_as_drag_impl
Sets the implementation for computing the sound horizon at the drag epoch.
nc_hicosmo_set_bgp_cs2_impl
Sets the implementation for computing the baryon-photon plasma sound speed squared.
nc_hicosmo_set_d2E2_dz2_impl
Sets the implementation for computing the second derivative with respect to the redshift of the normalized Hubble function squared, $\frac{d^2E^2(z)}{dz^2}$.
nc_hicosmo_set_dE2_dz_impl
Sets the implementation for computing the first derivative with respect to the redshift of the normalized Hubble function squared, $\frac{dE^2(z)}{dz}$.
nc_hicosmo_set_get_bg_var_impl
Sets the implementation for retrieving background perturbation variables.
nc_hicosmo_set_xb_impl
Sets the implementation for computing the baryon-photon momentum density ratio.
nc_hicosmo_set_z_lss_impl
Sets the implementation for computing the last scattering surface redshift.
Instance methods
nc_hicosmo_E2Omega_k
Computes the curvature density parameter $E^2\Omega_k(z) = \Omega_{k0}(1+z)^2$.
nc_hicosmo_E2Omega_mnu
Massive neutrinos density $E^2\Omega_{m\nu} = \rho_{m\nu}(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_E2Omega_mnu_n
The n-th massive neutrinos density $E^2\Omega_{m\nu,n} = \rho_{m\nu,n}(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_E2Omega_nu
Ultra-relativistic neutrinos density $E^2\Omega_{\nu} = \rho_\nu(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_E2Press_mnu
Massive neutrinos density $E^2P_{m\nu} = p_{m\nu}(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_E2Press_mnu_n
The n-th massive neutrinos pressure $E^2P_{m\nu,n} = p_{m\nu,n}(z) / \rho_{\mathrm{crit}0}$.
nc_hicosmo_H
The value of the Hubble function in unity of $\mathrm{m}\,\mathrm{s}^{-1}\,\mathrm{kpc}^{-1}$, see ncm_c_kpc().
nc_hicosmo_H0
The value of the Hubble constant in unit of $\mathrm{m}\,\mathrm{s}^{-1}\,\mathrm{kpc}^{-1}$, see ncm_c_kpc().
nc_hicosmo_H_number_density
Calculates the Hydrogen-1 number density $n_\mathrm{1H} = Y_{\mathrm{1H}p} n_{b0} / m_\mathrm{1H}$
using nc_hicosmo_Yp_1H() $\times$ nc_hicosmo_baryon_density() / ncm_c_rest_energy_1H().
nc_hicosmo_He_number_density
Calculates the Helium-4 number density $n_\mathrm{4He} = Y_p n_{b0} / m_\mathrm{4He}$
using nc_hicosmo_Yp_4He() $\times$ nc_hicosmo_baryon_density() / ncm_c_rest_energy_4He().
nc_hicosmo_Omega_b0
Dimensionless baryon density today $\Omega_{b0} = \rho_{b0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
nc_hicosmo_Omega_c0
Dimensionless cold dark matter density today $\Omega_{c0} = \rho_{c0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
nc_hicosmo_Omega_c0h2
Dimensionless cold dark matter density today [nc_hicosmo_Omega_c0()] times $h^2$.
nc_hicosmo_Omega_g0
Dimensionless photon density today $\Omega_{\gamma0} = \rho_{\gamma0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
nc_hicosmo_Omega_m0
Dimensionless total dust density today $\Omega_{m0} = \rho_{m0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
nc_hicosmo_Omega_mnu0
Dimensionless massive neutrinos density today $\Omega_{m\nu0} = \rho_{m\nu0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
nc_hicosmo_Omega_mnu0_n
The n-th dimensionless massive neutrinos density today $\Omega_{m\nu0,n} = \rho_{m\nu0,n} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
nc_hicosmo_Omega_mnu0h2
Dimensionless massive neutrinos density today [nc_hicosmo_Omega_mnu0()] times $h^2$.
nc_hicosmo_Omega_nu0
Dimensionless relativistic neutrinos density today $\Omega_{\nu0} = \rho_{\nu0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
nc_hicosmo_Omega_nu0h2
Dimensionless relativistic neutrinos density today [nc_hicosmo_Omega_nu0()] times $h^2$.
nc_hicosmo_Omega_r0
Dimensionless total radiation density today $\Omega_{r0} = \rho_{r0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
nc_hicosmo_Omega_r0h2
Dimensionless total radiation density today [nc_hicosmo_Omega_r0()] times $h^2$.
nc_hicosmo_Omega_t0
Dimensionless total matter density today $\Omega_{t0} = \rho_{t0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
nc_hicosmo_Press_mnu0
Dimensionless massive neutrinos pressure today $P_{m\nu0} = p_{m\nu0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
nc_hicosmo_Press_mnu0_n
The n-th dimensionless massive neutrinos pressure today $P_{m\nu0,n} = p_{m\nu0,n} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
nc_hicosmo_RH_Mpc
Calculates the Hubble radius in unit of Mpc, i.e., $R_H = (c / (H_0 \times 1\,\mathrm{Mpc}))$.
nc_hicosmo_RH_planck
Calculates the Hubble radius in unit of Mpc, i.e., $R_H = (c / (H_0 \times l_\mathrm{planck}))$. See ncm_c_planck_length().
nc_hicosmo_XHe
The primordial Helium to Hydrogen ratio $$X_\text{He} = \frac{n_\text{He}}{n_\text{H}} = \frac{m_\text{1H}}{m_\text{4He}} \frac{Y_p}{Y_{\text{1H}p}},$$ see nc_hicosmo_Yp_1H() and nc_hicosmo_Yp_4He().
nc_hicosmo_Yp_1H
The primordial hydrogen mass fraction $$Y_{\text{1H}p} = 1 - Y_p,$$ where $Y_p$ is the helium mass fraction, see nc_hicosmo_Yp_4He().
nc_hicosmo_Yp_4He
Gets the primordial Helium mass fraction, i.e., $$Y_p = \frac{m_\mathrm{He}n_\mathrm{He}} {m_\mathrm{He}n_\mathrm{He} + m_\mathrm{H}n_\mathrm{H}},$$ where $m_\mathrm{He}$, $n_\mathrm{He}$, $m_\mathrm{H}$ and $m_\mathrm{H}$ are respectively Helium-4 mass and number density and Hydrogen-1 mass and number density.
nc_hicosmo_abs_alpha
Computes the log-scale factor ratio $\alpha = \ln(x_b/x)$ where $x_b$ is the maximum scale factor.
nc_hicosmo_baryon_density
Calculates the baryon density $\rho_{b0} = \rho_{\mathrm{crit}0} \Omega_{b0}$
using nc_hicosmo_crit_density() $\times$ nc_hicosmo_Omega_b0().
nc_hicosmo_bgp_cs2
Baryon-photon plasma speed of sound squared, $$c_s^{b\gamma2} = (\dot{\rho}b + \dot{\rho}\gamma) / (p_b + p_\gamma).$$.
nc_hicosmo_crit_density
Calculates the critical density $\rho_\mathrm{crit}$ using
ncm_c_crit_density_h2() $\times$ nc_hicosmo_h2().
nc_hicosmo_d2E2_dz2
Computes the second derivative of the normalized Hubble function squared with respect to redshift.
nc_hicosmo_dE2_dz
Computes the first derivative of the normalized Hubble function squared with respect to redshift.
nc_hicosmo_dec_min
Computes the maximum of dec (nc_hicosmo_dec()) in the redshift interval: $[0.0, z_max]$.
nc_hicosmo_h
Reduced Hubble constant, $h \equiv H_0 / (1\times\mathrm{m}\mathrm{s}^{-1}\mathrm{kpc}^{-1})$.
nc_hicosmo_peek_prim
Gets the primordial power spectrum submodel without increasing its reference count.
nc_hicosmo_q_min
Computes the maximum of $q(z)$ (nc_hicosmo_q()) in the redshift interval: $[0.0, z_max]$.
nc_hicosmo_zt
Computes the deceleration-acceleration transition redshift, $z_t$ (find numerically the first root of $q(z)$ in the interval $[0,z_\mathrm{max}]$). If $z_t$ is not found, i.e., $q(z) \neq 0$ in the entire redshift interval, the function returns NAN.
Properties
Properties inherited from NcmModel (9)
NumCosmoMath.Model:implementation
NumCosmoMath.Model:name
NumCosmoMath.Model:nick
NumCosmoMath.Model:params-types
NumCosmoMath.Model:reparam
NumCosmoMath.Model:scalar-params-len
NumCosmoMath.Model:sparam-array
NumCosmoMath.Model:submodel-array
NumCosmoMath.Model:vector-params-len
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Virtual methods
NumCosmo.HICosmoClass.E2Omega_b
Baryonic density $E^2\Omega_{b} = \rho_b(z) / \rho_{\mathrm{crit}0}$.
NumCosmo.HICosmoClass.E2Omega_c
Cold dark matter density $E^2\Omega_{c} = \rho_c(z) / \rho_{\mathrm{crit}0}$.
NumCosmo.HICosmoClass.E2Omega_g
Photons density $E^2\Omega_{\gamma} = \rho_\gamma(z) / \rho_{\mathrm{crit}0}$.
NumCosmo.HICosmoClass.E2Omega_m
Total matter density $E^2\Omega_{m} = \rho_m(z) / \rho_{\mathrm{crit}0}$.
NumCosmo.HICosmoClass.E2Omega_mnu
Massive neutrinos density $E^2\Omega_{m\nu} = \rho_{m\nu}(z) / \rho_{\mathrm{crit}0}$.
NumCosmo.HICosmoClass.E2Omega_mnu_n
The n-th massive neutrinos density $E^2\Omega_{m\nu,n} = \rho_{m\nu,n}(z) / \rho_{\mathrm{crit}0}$.
NumCosmo.HICosmoClass.E2Omega_nu
Ultra-relativistic neutrinos density $E^2\Omega_{\nu} = \rho_\nu(z) / \rho_{\mathrm{crit}0}$.
NumCosmo.HICosmoClass.E2Omega_r
Total radiation density $\Omega_{r} = \rho_r(z) / \rho_{\mathrm{crit}0}$.
NumCosmo.HICosmoClass.E2Press_mnu
Massive neutrinos density $E^2P_{m\nu} = p_{m\nu}(z) / \rho_{\mathrm{crit}0}$.
NumCosmo.HICosmoClass.E2Press_mnu_n
The n-th massive neutrinos pressure $E^2P_{m\nu,n} = p_{m\nu,n}(z) / \rho_{\mathrm{crit}0}$.
NumCosmo.HICosmoClass.H0
The value of the Hubble constant in unit of $\mathrm{m}\,\mathrm{s}^{-1}\,\mathrm{kpc}^{-1}$, see ncm_c_kpc().
NumCosmo.HICosmoClass.MassNuInfo
Gets the physical properties of the nu_i-th massive neutrino species.
NumCosmo.HICosmoClass.Omega_b0
Dimensionless baryon density today $\Omega_{b0} = \rho_{b0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
NumCosmo.HICosmoClass.Omega_c0
Dimensionless cold dark matter density today $\Omega_{c0} = \rho_{c0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
NumCosmo.HICosmoClass.Omega_g0
Dimensionless photon density today $\Omega_{\gamma0} = \rho_{\gamma0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
NumCosmo.HICosmoClass.Omega_m0
Dimensionless total dust density today $\Omega_{m0} = \rho_{m0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
NumCosmo.HICosmoClass.Omega_mnu0
Dimensionless massive neutrinos density today $\Omega_{m\nu0} = \rho_{m\nu0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
NumCosmo.HICosmoClass.Omega_mnu0_n
The n-th dimensionless massive neutrinos density today $\Omega_{m\nu0,n} = \rho_{m\nu0,n} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
NumCosmo.HICosmoClass.Omega_nu0
Dimensionless relativistic neutrinos density today $\Omega_{\nu0} = \rho_{\nu0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
NumCosmo.HICosmoClass.Omega_r0
Dimensionless total radiation density today $\Omega_{r0} = \rho_{r0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
NumCosmo.HICosmoClass.Omega_t0
Dimensionless total matter density today $\Omega_{t0} = \rho_{t0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
NumCosmo.HICosmoClass.Press_mnu0
Dimensionless massive neutrinos pressure today $P_{m\nu0} = p_{m\nu0} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
NumCosmo.HICosmoClass.Press_mnu0_n
The n-th dimensionless massive neutrinos pressure today $P_{m\nu0,n} = p_{m\nu0,n} / \rho_{\mathrm{crit}0}$, see nc_hicosmo_crit_density().
NumCosmo.HICosmoClass.Yp_4He
Gets the primordial Helium mass fraction, i.e., $$Y_p = \frac{m_\mathrm{He}n_\mathrm{He}} {m_\mathrm{He}n_\mathrm{He} + m_\mathrm{H}n_\mathrm{H}},$$ where $m_\mathrm{He}$, $n_\mathrm{He}$, $m_\mathrm{H}$ and $m_\mathrm{H}$ are respectively Helium-4 mass and number density and Hydrogen-1 mass and number density.
NumCosmo.HICosmoClass.bgp_cs2
Baryon-photon plasma speed of sound squared, $$c_s^{b\gamma2} = (\dot{\rho}b + \dot{\rho}\gamma) / (p_b + p_\gamma).$$.
NumCosmo.HICosmoClass.d2E2_dz2
Computes the second derivative of the normalized Hubble function squared with respect to redshift.
NumCosmo.HICosmoClass.dE2_dz
Computes the first derivative of the normalized Hubble function squared with respect to redshift.
NumCosmo.HICosmoClass.get_bg_var
Gets the background variables at conformal time t and stores them in bg_var.