Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
ccl_constants.h File Reference
#include <gsl/gsl_const_mksa.h>
Include dependency graph for ccl_constants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define A_SPLINE_TYPE   gsl_interp_akima
 
#define K_SPLINE_TYPE   gsl_interp_akima
 
#define L_SPLINE_TYPE   gsl_interp_akima
 
#define M_SPLINE_TYPE   gsl_interp_akima
 
#define D_SPLINE_TYPE   gsl_interp_akima
 
#define PNL_SPLINE_TYPE   gsl_interp2d_bicubic
 
#define PLIN_SPLINE_TYPE   gsl_interp2d_bicubic
 
#define CORR_SPLINE_TYPE   gsl_interp_akima
 
#define M_PI   3.14159265358979323846
 
#define K_PIVOT   0.05
 
#define CLIGHT_HMPC   2997.92458
 
#define GNEWT   6.67408e-11
 
#define SOLAR_MASS   1.9884754153381438e+30
 
#define MPC_TO_METER   3.08567758149e22
 
#define PC_TO_METER   3.08567758149e16
 
#define RHO_CRITICAL   ((3*100*100)/(8*M_PI*GNEWT)) * (1000*1000*MPC_TO_METER/SOLAR_MASS)
 
#define KBOLTZ   1.38064852e-23
 
#define STBOLTZ   5.670367e-8
 
#define HPLANCK   6.626070040e-34
 
#define CLIGHT   299792458.0
 
#define EV_IN_J   1.6021766208e-19
 
#define TCMB   2.725
 
#define TNCDM   0.71611
 
#define DELTAM12_sq   7.62E-5
 
#define DELTAM13_sq_pos   2.55E-3
 
#define DELTAM13_sq_neg   -2.43E-3
 
#define GSL_EPSREL   1E-4
 
#define GSL_N_ITERATION   1000
 
#define GSL_INTEGRATION_GAUSS_KRONROD_POINTS   GSL_INTEG_GAUSS41
 
#define GSL_EPSABS_NU   1E-7
 
#define GSL_EPSREL_NU   1E-7
 
#define GSL_N_ITERATION_NU   1000
 
#define GSL_EPSREL_SIGMAR   1E-5
 
#define GSL_EPSREL_DIST   1E-6
 
#define GSL_EPSREL_GROWTH   1E-6
 
#define GSL_EPSREL_DNDZ   1E-6
 
#define EPS_SCALEFAC_GROWTH   1E-6
 

Macro Definition Documentation

#define A_SPLINE_TYPE   gsl_interp_akima
#define CLIGHT   299792458.0

The speed of light in m/s

Definition at line 84 of file ccl_constants.h.

Referenced by ccl_parameters_fill_initial().

#define CLIGHT_HMPC   2997.92458

Lightspeed / H0 in units of Mpc/h (from CODATA 2014)

Definition at line 33 of file ccl_constants.h.

Referenced by ccl_parameters_fill_initial(), chi_integrand(), cl_tracer(), f_dens(), f_IA_NLA(), f_rsd(), integrand_mag(), integrand_wl(), and test_general().

#define CORR_SPLINE_TYPE   gsl_interp_akima

Definition at line 14 of file ccl_constants.h.

#define D_SPLINE_TYPE   gsl_interp_akima

Definition at line 11 of file ccl_constants.h.

Referenced by ccl_cosmology_compute_hmfparams().

#define DELTAM12_sq   7.62E-5

neutrino mass splitting differences See Lesgourgues and Pastor, 2012 for these values. Adv. High Energy Phys. 2012 (2012) 608515, arXiv:1212.6154, page 13

Definition at line 109 of file ccl_constants.h.

Referenced by __ctest_create_mnu_create_mnu_inv_run(), ccl_nu_masses(), and ccl_parameters_create().

#define DELTAM13_sq_neg   -2.43E-3
#define DELTAM13_sq_pos   2.55E-3

Definition at line 110 of file ccl_constants.h.

Referenced by ccl_nu_masses(), and ccl_parameters_create().

#define EPS_SCALEFAC_GROWTH   1E-6

Absolute precision in growth calculations

Definition at line 170 of file ccl_constants.h.

Referenced by growth_factor_and_growth_rate().

#define EV_IN_J   1.6021766208e-19

Electron volt to Joules convestion

Definition at line 90 of file ccl_constants.h.

Referenced by ccl_Omeganuh2().

#define GNEWT   6.67408e-11

Newton's gravitational constant in units of m^3/Kg/s^2

Definition at line 40 of file ccl_constants.h.

#define GSL_EPSABS_NU   1E-7

Absolute precision in neutrino root finding

Definition at line 135 of file ccl_constants.h.

#define GSL_EPSREL   1E-4

Default relative precision if not otherwise specified

Definition at line 118 of file ccl_constants.h.

#define GSL_EPSREL_DIST   1E-6

Relative precision in distance calculations

Definition at line 155 of file ccl_constants.h.

#define GSL_EPSREL_DNDZ   1E-6

Relative precision in dNdz calculations

Definition at line 165 of file ccl_constants.h.

#define GSL_EPSREL_GROWTH   1E-6

Relative precision in growth calculations

Definition at line 160 of file ccl_constants.h.

#define GSL_EPSREL_NU   1E-7

Relative precision in neutrino root finding

Definition at line 140 of file ccl_constants.h.

#define GSL_EPSREL_SIGMAR   1E-5

Relative precision in sigma_R calculations

Definition at line 150 of file ccl_constants.h.

#define GSL_INTEGRATION_GAUSS_KRONROD_POINTS   GSL_INTEG_GAUSS41

Default number of Gauss-Kronrod points in QAG integration if not otherwise specified

Definition at line 130 of file ccl_constants.h.

#define GSL_N_ITERATION   1000

Default number of iterations for integration and root-finding if not otherwise specified

Definition at line 124 of file ccl_constants.h.

#define GSL_N_ITERATION_NU   1000

Number of iterations for neutrino root finding

Definition at line 145 of file ccl_constants.h.

#define HPLANCK   6.626070040e-34

Planck's constant in units kg m^2 / s

Definition at line 78 of file ccl_constants.h.

#define K_PIVOT   0.05

k pivot. These are in units of Mpc (no factor of h)

Definition at line 28 of file ccl_constants.h.

#define K_SPLINE_TYPE   gsl_interp_akima

Definition at line 8 of file ccl_constants.h.

#define KBOLTZ   1.38064852e-23

Boltzmann constant in units of J/K

Definition at line 67 of file ccl_constants.h.

Referenced by ccl_Omeganuh2().

#define L_SPLINE_TYPE   gsl_interp_akima

Definition at line 9 of file ccl_constants.h.

Referenced by compare_corr().

#define M_SPLINE_TYPE   gsl_interp_akima

Definition at line 10 of file ccl_constants.h.

Referenced by ccl_cosmology_compute_sigma().

#define MPC_TO_METER   3.08567758149e22

Mpc to meters (from PDG 2013)

Definition at line 51 of file ccl_constants.h.

Referenced by ccl_parameters_fill_initial().

#define PC_TO_METER   3.08567758149e16

pc to meters (from PDG 2013)

Definition at line 56 of file ccl_constants.h.

#define PLIN_SPLINE_TYPE   gsl_interp2d_bicubic
#define PNL_SPLINE_TYPE   gsl_interp2d_bicubic
#define RHO_CRITICAL   ((3*100*100)/(8*M_PI*GNEWT)) * (1000*1000*MPC_TO_METER/SOLAR_MASS)

Rho critical in units of M_sun/h / (Mpc/h)^3

Definition at line 61 of file ccl_constants.h.

Referenced by ccl_massfunc(), ccl_parameters_fill_initial(), ccl_rho_x(), compare_massfunc(), and main().

#define SOLAR_MASS   1.9884754153381438e+30

Solar mass in units of kg (from GSL)

Definition at line 47 of file ccl_constants.h.

Referenced by ccl_parameters_fill_initial().

#define STBOLTZ   5.670367e-8

Stefan-Boltzmann constant in units of kg/s^3 / K^4

Definition at line 73 of file ccl_constants.h.

Referenced by ccl_parameters_fill_initial().

#define TCMB   2.725

Temperature of the CMB in K

Definition at line 95 of file ccl_constants.h.

Referenced by ccl_parameters_fill_initial(), and test_general().

#define TNCDM   0.71611

T_ncdm, as taken from CLASS, explanatory.ini

Definition at line 101 of file ccl_constants.h.

Referenced by ccl_Omeganuh2(), and ccl_parameters_fill_initial().