Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
ccl_neutrinos.h
Go to the documentation of this file.
1 
2 #ifndef __CCL_NEUTRINOS_H_INCLUDED__
3 #define __CCL_NEUTRINOS_H_INCLUDED__
4 
5 #include <gsl/gsl_spline.h>
6 #include <gsl/gsl_const_mksa.h>
7 
8 // maximum number of species
9 #define CCL_MAX_NU_SPECIES 3
10 // limits for the precomputed spline of phase
11 // space diagram in MNU/T
12 #define CCL_NU_MNUT_MIN 1e-4
13 #define CCL_NU_MNUT_MAX 500
14 // and number of points
15 #define CCL_NU_MNUT_N 1000
16 
17 // The combination of constants required in Omeganuh2
18 #define NU_CONST (8. * pow(M_PI,5) *pow((KBOLTZ/ HPLANCK),3)* KBOLTZ/(15. *pow( CLIGHT,3))* (8. * M_PI * GNEWT) / (3. * 100.*100.*1000.*1000. /MPC_TO_METER /MPC_TO_METER * CLIGHT * CLIGHT))
19 
21 
28 
36 gsl_spline* calculate_nu_phasespace_spline(int *status);
37 
51 double ccl_Omeganuh2 (double a, int N_nu_mass, double* mnu, double T_CMB, gsl_interp_accel* accel, int * status);
52 
64 double* ccl_nu_masses (double OmNuh2, ccl_neutrino_mass_splits mass_split, double T_CMB, int * status);
65 
67 #endif
double * ccl_nu_masses(double OmNuh2, ccl_neutrino_mass_splits mass_split, double T_CMB, int *status)
gsl_spline * calculate_nu_phasespace_spline(int *status)
Definition: ccl_neutrinos.c:33
ccl_neutrino_mass_splits
Definition: ccl_neutrinos.h:22
#define CCL_BEGIN_DECLS
Definition: ccl_defs.h:17
double ccl_Omeganuh2(double a, int N_nu_mass, double *mnu, double T_CMB, gsl_interp_accel *accel, int *status)
#define CCL_END_DECLS
Definition: ccl_defs.h:18