#include <math.h>
#include <gsl/gsl_integration.h>
#include <gsl/gsl_sf_gamma.h>
#include "Cosmology.h"
Go to the source code of this file.
Classes | |
struct | E_z_par |
Functions | |
double | E_z (double x, void *params) |
double | comoving_volume_integral (double z, void *params) |
double | time_integral (double x, void *params) |
double | schechter (double L, double phi_star, double alpha, double L_star) |
double | number_schechter (double L, double phi_star, double alpha, double L_star) |
double | total_number_schechter (double phi_star, double alpha) |
double | luminosity_schechter (double L, double phi_star, double alpha, double L_star) |
double | total_luminosity_schechter (double phi_star, double alpha, double L_star) |
double | double_schechter (double L, double phi_star1, double alpha1, double L_star1, double phi_star2, double alpha2, double L_star2) |
double | number_double_schechter (double L, double phi_star1, double alpha1, double L_star1, double phi_star2, double alpha2, double L_star2) |
double | luminosity_double_schechter (double L, double phi_star1, double alpha1, double L_star1, double phi_star2, double alpha2, double L_star2) |
double | total_luminosity_double_schechter (double phi_star1, double alpha1, double L_star1, double phi_star2, double alpha2, double L_star2) |
Variables | |
const double | D_H_w_h_Mpc = 2997.925 |
const double | t_H_w_h_year = 9.78e+9 |
double comoving_volume_integral | ( | double | z, | |
void * | params | |||
) |
Definition at line 145 of file Cosmology.cpp.
References D_H_w_h_Mpc, E_z(), E_z_par::h, E_z_par::omega_k, E_z_par::omega_m, E_z_par::omega_x, and E_z_par::w_x.
Referenced by Cosmology::comoving_volume_z1_z2().
double double_schechter | ( | double | L, | |
double | phi_star1, | |||
double | alpha1, | |||
double | L_star1, | |||
double | phi_star2, | |||
double | alpha2, | |||
double | L_star2 | |||
) |
General double Schechter function phi(L) phi(L) dL = phi_star1 * (L/L_star1)^alpha1 * exp(-L/L_star1) dL / L_star1 + phi_star2 * (L/L_star2)^alpha2 * exp(-L/L_star2) dL / L_star2 The unit of phi(L) is same as that of phi_star1 and phi_star2.
Definition at line 344 of file Cosmology.cpp.
double E_z | ( | double | x, | |
void * | params | |||
) |
Definition at line 31 of file Cosmology.cpp.
References E_z_par::h, E_z_par::omega_k, E_z_par::omega_m, E_z_par::omega_x, and E_z_par::w_x.
Referenced by _wrap_E_z(), comoving_volume_integral(), Cosmology::D_C(), time_integral(), and Cosmology::unit_comoving_volume().
double luminosity_double_schechter | ( | double | L, | |
double | phi_star1, | |||
double | alpha1, | |||
double | L_star1, | |||
double | phi_star2, | |||
double | alpha2, | |||
double | L_star2 | |||
) |
the luminosity integration of double Schechter function L(>L) L(>L) = Integration of L*phi(L) from L to infinity The unit of the returned value depends on the unit of phi_star.
Definition at line 374 of file Cosmology.cpp.
double luminosity_schechter | ( | double | L, | |
double | phi_star, | |||
double | alpha, | |||
double | L_star | |||
) |
the luminosity integration of Schechter function L(>L) L(>L) = Integration of L*phi(L) from L to infinity The unit of the returned value depends on the unit of phi_star.
Definition at line 326 of file Cosmology.cpp.
Referenced by _wrap_luminosity_schechter().
double number_double_schechter | ( | double | L, | |
double | phi_star1, | |||
double | alpha1, | |||
double | L_star1, | |||
double | phi_star2, | |||
double | alpha2, | |||
double | L_star2 | |||
) |
the number integration of double Schechter function N(>L) N(>L) = Integration of phi(L) from L to infinity The unit of the returned value depends on the unit of phi_star.
Definition at line 363 of file Cosmology.cpp.
double number_schechter | ( | double | L, | |
double | phi_star, | |||
double | alpha, | |||
double | L_star | |||
) |
the number integration of Schechter function N(>L) N(>L) = Integration of phi(L) from L to infinity The unit of the returned value depends on the unit of phi_star.
Definition at line 308 of file Cosmology.cpp.
Referenced by _wrap_number_schechter().
double schechter | ( | double | L, | |
double | phi_star, | |||
double | alpha, | |||
double | L_star | |||
) |
Schechter function phi(L) phi(L) dL = phi_star * (L/L_star)^alpha * exp(-L/L_star) dL / L_star The unit of phi(L) is same as that of phi_star.
Definition at line 296 of file Cosmology.cpp.
Referenced by _wrap_schechter().
double time_integral | ( | double | x, | |
void * | params | |||
) |
Definition at line 225 of file Cosmology.cpp.
References E_z(), E_z_par::h, E_z_par::omega_k, E_z_par::omega_m, E_z_par::omega_x, and E_z_par::w_x.
Referenced by _wrap_time_integral(), Cosmology::age(), and Cosmology::lookback_time().
double total_luminosity_double_schechter | ( | double | phi_star1, | |
double | alpha1, | |||
double | L_star1, | |||
double | phi_star2, | |||
double | alpha2, | |||
double | L_star2 | |||
) |
the luminosity integration of double Schechter function L(>0) L(>0) = Integration of L*phi(L) from 0 to infinity The unit of the returned value depends on the unit of phi_star.
Definition at line 385 of file Cosmology.cpp.
double total_luminosity_schechter | ( | double | phi_star, | |
double | alpha, | |||
double | L_star | |||
) |
the luminosity integration of Schechter function L(>0) L(>0) = Integration of L*phi(L) from 0 to infinity The unit of the returned value depends on the unit of phi_star.
Definition at line 335 of file Cosmology.cpp.
Referenced by _wrap_total_luminosity_schechter().
double total_number_schechter | ( | double | phi_star, | |
double | alpha | |||
) |
the number integration of Schechter function N(>0) N(>0) = Integration of phi(L) from 0 to infinity The unit of the returned value depends on the unit of phi_star.
Definition at line 317 of file Cosmology.cpp.
Referenced by _wrap_total_number_schechter().
const double D_H_w_h_Mpc = 2997.925 |
Definition at line 6 of file Cosmology.cpp.
Referenced by Cosmology::comoving_volume_0_z(), comoving_volume_integral(), Cosmology::D_C(), Cosmology::D_M(), and Cosmology::unit_comoving_volume().
const double t_H_w_h_year = 9.78e+9 |
Definition at line 7 of file Cosmology.cpp.
Referenced by Cosmology::age(), and Cosmology::lookback_time().