CCL
|
#include "gsl/gsl_spline.h"
#include "gsl/gsl_interp2d.h"
#include "gsl/gsl_spline2d.h"
#include "ccl_config.h"
#include "ccl_constants.h"
#include <stdbool.h>
Go to the source code of this file.
Data Structures | |
struct | ccl_parameters |
struct | ccl_data |
struct | ccl_cosmology |
Macros | |
#define | EXPAND_STR(s) STRING(s) |
#define | STRING(s) #s |
Typedefs | |
typedef struct ccl_parameters | ccl_parameters |
typedef struct ccl_data | ccl_data |
typedef struct ccl_cosmology | ccl_cosmology |
Functions | |
void | ccl_cosmology_read_config (void) |
ccl_cosmology * | ccl_cosmology_create (ccl_parameters params, ccl_configuration config) |
ccl_cosmology * | ccl_cosmology_create_with_params (double Omega_c, double Omega_b, double Omega_k, double N_nu_rel, double N_nu_mass, double mnu, double w0, double wa, double h, double norm_pk, double n_s, int nz_mgrowth, double *zarr_mgrowth, double *dfarr_mgrowth, ccl_configuration config, int *status) |
ccl_cosmology * | ccl_cosmology_create_with_lcdm_params (double Omega_c, double Omega_b, double Omega_k, double h, double norm_pk, double n_s, ccl_configuration config, int *status) |
ccl_parameters | ccl_parameters_create (double Omega_c, double Omega_b, double Omega_k, double N_nu_rel, double N_nu_mass, double mnu, double w0, double wa, double h, double norm_pk, double n_s, int nz_mgrowth, double *zarr_mgrowth, double *dfarr_mgrowth, int *status) |
ccl_parameters | ccl_parameters_create_flat_lcdm (double Omega_c, double Omega_b, double h, double norm_pk, double n_s, int *status) |
ccl_parameters | ccl_parameters_create_flat_wcdm (double Omega_c, double Omega_b, double w0, double h, double norm_pk, double n_s, int *status) |
ccl_parameters | ccl_parameters_create_flat_wacdm (double Omega_c, double Omega_b, double w0, double wa, double h, double norm_pk, double n_s, int *status) |
ccl_parameters | ccl_parameters_create_lcdm (double Omega_c, double Omega_b, double Omega_k, double h, double norm_pk, double n_s, int *status) |
ccl_parameters | ccl_parameters_create_flat_lcdm_nu (double Omega_c, double Omega_b, double h, double norm_pk, double n_s, double N_nu_rel, double N_nu_mass, double mnu, int *status) |
ccl_parameters | ccl_parameters_create_flat_wcdm_nu (double Omega_c, double Omega_b, double w0, double h, double norm_pk, double n_s, double N_nu_rel, double N_nu_mass, double mnu, int *status) |
ccl_parameters | ccl_parameters_create_flat_wacdm_nu (double Omega_c, double Omega_b, double w0, double wa, double h, double norm_pk, double n_s, double N_nu_rel, double N_nu_mass, double mnu, int *status) |
ccl_parameters | ccl_parameters_create_lcdm_nu (double Omega_c, double Omega_b, double Omega_k, double h, double norm_pk, double n_s, double N_nu_rel, double N_nu_mass, double mnu, int *status) |
void | ccl_cosmology_free (ccl_cosmology *cosmo) |
void | ccl_cosmology_compute_distances (ccl_cosmology *cosmo, int *status) |
void | ccl_cosmology_compute_growth (ccl_cosmology *cosmo, int *status) |
void | ccl_cosmology_compute_power (ccl_cosmology *cosmo, int *status) |
#define EXPAND_STR | ( | s | ) | STRING(s) |
#define STRING | ( | s | ) | #s |
typedef struct ccl_cosmology ccl_cosmology |
Sturct containing references to instances of the above structs, and boolean flags of precomputed values.
Struct containing references to gsl splines for distance and acceleration calculations
typedef struct ccl_parameters ccl_parameters |
Struct containing the parameters defining a cosmology
void ccl_cosmology_compute_distances | ( | ccl_cosmology * | cosmo, |
int * | status | ||
) |
Compute comoving distances and spline to be stored in the cosmology structure.
cosmo | Cosmological parameters |
status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
void ccl_cosmology_compute_growth | ( | ccl_cosmology * | cosmo, |
int * | status | ||
) |
Compute the growth function and a spline to be stored in the cosmology structure.
cosmo | Cosmological parameters |
status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
void ccl_cosmology_compute_power | ( | ccl_cosmology * | cosmo, |
int * | status | ||
) |
Compute the power spectrum and create a 2d spline P(k,z) to be stored in the cosmology structure.
cosmo | Cosmological parameters |
status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
ccl_cosmology* ccl_cosmology_create | ( | ccl_parameters | params, |
ccl_configuration | config | ||
) |
ccl_cosmology* ccl_cosmology_create_with_lcdm_params | ( | double | Omega_c, |
double | Omega_b, | ||
double | Omega_k, | ||
double | h, | ||
double | norm_pk, | ||
double | n_s, | ||
ccl_configuration | config, | ||
int * | status | ||
) |
ccl_cosmology* ccl_cosmology_create_with_params | ( | double | Omega_c, |
double | Omega_b, | ||
double | Omega_k, | ||
double | N_nu_rel, | ||
double | N_nu_mass, | ||
double | mnu, | ||
double | w0, | ||
double | wa, | ||
double | h, | ||
double | norm_pk, | ||
double | n_s, | ||
int | nz_mgrowth, | ||
double * | zarr_mgrowth, | ||
double * | dfarr_mgrowth, | ||
ccl_configuration | config, | ||
int * | status | ||
) |
void ccl_cosmology_free | ( | ccl_cosmology * | cosmo | ) |
Free a cosmology struct
cosmo | Cosmological parameters |
void ccl_cosmology_read_config | ( | void | ) |
ccl_parameters ccl_parameters_create | ( | double | Omega_c, |
double | Omega_b, | ||
double | Omega_k, | ||
double | N_nu_rel, | ||
double | N_nu_mass, | ||
double | mnu, | ||
double | w0, | ||
double | wa, | ||
double | h, | ||
double | norm_pk, | ||
double | n_s, | ||
int | nz_mgrowth, | ||
double * | zarr_mgrowth, | ||
double * | dfarr_mgrowth, | ||
int * | status | ||
) |
Create a cosmology
Omega_c | Omega_c |
Omega_b | Omega_b |
Omega_k | Omega_k |
N_nu_rel | Number of relativisitic species |
N_nu_mass | N_nu_mass |
mnu | neutrino mass |
w0 | Dark energy EoS parameter |
wa | Dark energy EoS parameter |
h | Hubble constant in units of 100 km/s/Mpc |
norm_pk | the normalization of the power spectrum, either A_s or sigma_8 |
n_s | the power-law index of the power spectrum |
nz_mgrowth | the number of redshifts where the modified growth is provided |
zarr_mgrowth | the array of redshifts where the modified growth is provided |
dfarr_mgrowth | the modified growth function vector provided |
status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
ccl_parameters ccl_parameters_create_flat_lcdm | ( | double | Omega_c, |
double | Omega_b, | ||
double | h, | ||
double | norm_pk, | ||
double | n_s, | ||
int * | status | ||
) |
Create a flat LCDM cosmology
Omega_c | Omega_c |
Omega_b | Omega_b |
h | Hubble constant in units of 100 km/s/Mpc |
norm_pk | the normalization of the power spectrum, either A_s or sigma_8 |
n_s | the power-law index of the power spectrum |
status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
ccl_parameters ccl_parameters_create_flat_lcdm_nu | ( | double | Omega_c, |
double | Omega_b, | ||
double | h, | ||
double | norm_pk, | ||
double | n_s, | ||
double | N_nu_rel, | ||
double | N_nu_mass, | ||
double | mnu, | ||
int * | status | ||
) |
ccl_parameters ccl_parameters_create_flat_wacdm | ( | double | Omega_c, |
double | Omega_b, | ||
double | w0, | ||
double | wa, | ||
double | h, | ||
double | norm_pk, | ||
double | n_s, | ||
int * | status | ||
) |
Create a flat waCDM cosmology
Omega_c | Omega_c |
Omega_b | Omega_b |
w0 | Dark energy EoS parameter |
wa | Dark energy EoS parameter |
h | Hubble constant in units of 100 km/s/Mpc |
norm_pk | the normalization of the power spectrum, either A_s or sigma_8 |
n_s | the power-law index of the power spectrum |
status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
ccl_parameters ccl_parameters_create_flat_wacdm_nu | ( | double | Omega_c, |
double | Omega_b, | ||
double | w0, | ||
double | wa, | ||
double | h, | ||
double | norm_pk, | ||
double | n_s, | ||
double | N_nu_rel, | ||
double | N_nu_mass, | ||
double | mnu, | ||
int * | status | ||
) |
ccl_parameters ccl_parameters_create_flat_wcdm | ( | double | Omega_c, |
double | Omega_b, | ||
double | w0, | ||
double | h, | ||
double | norm_pk, | ||
double | n_s, | ||
int * | status | ||
) |
Create a flat wCDM cosmology
Omega_c | Omega_c |
Omega_b | Omega_b |
w0 | Dark energy EoS parameter |
h | Hubble constant in units of 100 km/s/Mpc |
norm_pk | the normalization of the power spectrum, either A_s or sigma_8 |
n_s | the power-law index of the power spectrum |
status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
ccl_parameters ccl_parameters_create_flat_wcdm_nu | ( | double | Omega_c, |
double | Omega_b, | ||
double | w0, | ||
double | h, | ||
double | norm_pk, | ||
double | n_s, | ||
double | N_nu_rel, | ||
double | N_nu_mass, | ||
double | mnu, | ||
int * | status | ||
) |
ccl_parameters ccl_parameters_create_lcdm | ( | double | Omega_c, |
double | Omega_b, | ||
double | Omega_k, | ||
double | h, | ||
double | norm_pk, | ||
double | n_s, | ||
int * | status | ||
) |
Create an LCDM cosmology with curvature
Omega_c | Omega_c |
Omega_b | Omega_b |
Omega_k | Omega_k |
w0 | Dark energy EoS parameter |
wa | Dark energy EoS parameter |
h | Hubble constant in units of 100 km/s/Mpc |
norm_pk | the normalization of the power spectrum, either A_s or sigma_8 |
n_s | the power-law index of the power spectrum |
status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
ccl_parameters ccl_parameters_create_lcdm_nu | ( | double | Omega_c, |
double | Omega_b, | ||
double | Omega_k, | ||
double | h, | ||
double | norm_pk, | ||
double | n_s, | ||
double | N_nu_rel, | ||
double | N_nu_mass, | ||
double | mnu, | ||
int * | status | ||
) |