|
CCL
|
#include "ccl.h"#include "ccl_core.h"#include "ccl_utils.h"#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "gsl/gsl_integration.h"#include "gsl/gsl_interp.h"#include "gsl/gsl_spline.h"#include "ccl_power.h"#include "ccl_massfunc.h"#include "ccl_error.h"#include "ccl_params.h"Functions | |
| void | ccl_cosmology_compute_hmfparams (ccl_cosmology *cosmo, int *status) |
| void | ccl_cosmology_compute_sigma (ccl_cosmology *cosmo, int *status) |
| double | ccl_massfunc (ccl_cosmology *cosmo, double halomass, double a, double odelta, int *status) |
| double | ccl_halo_bias (ccl_cosmology *cosmo, double halomass, double a, double odelta, int *status) |
| double | ccl_massfunc_m2r (ccl_cosmology *cosmo, double halomass, int *status) |
| double | ccl_sigmaM (ccl_cosmology *cosmo, double halomass, double a, int *status) |
| void ccl_cosmology_compute_hmfparams | ( | ccl_cosmology * | cosmo, |
| int * | status | ||
| ) |
Updates Tinker mass function fitting formulas for specific Delta
| cosmo | Cosmological parameters |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error. |
| void ccl_cosmology_compute_sigma | ( | ccl_cosmology * | cosmo, |
| int * | status | ||
| ) |
Computes sigma(R), the power spectrum normalization, over log-spaced values of mass and radii The result is attached to the cosmology object
| cosmo | Cosmological parameters |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error. |
| double ccl_halo_bias | ( | ccl_cosmology * | cosmo, |
| double | smooth_mass, | ||
| double | a, | ||
| double | odelta, | ||
| int * | status | ||
| ) |
Compute the linear halo bias for a cosmology and mass scale
| cosmo | Cosmological parameters |
| smooth_mass | Mass to compute at, in units of Msun |
| a | Scale factor, normalized to a=1 today |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error. |
| double ccl_massfunc | ( | ccl_cosmology * | cosmo, |
| double | smooth_mass, | ||
| double | a, | ||
| double | odelta, | ||
| int * | status | ||
| ) |
Compute halo mass function at a given mass for a given cosmology as dn/ dlog10(M)
| cosmo | Cosmological parameters |
| smooth_mass | Mass to compute at, in units of Msun |
| a | Scale factor, normalized to a=1 today |
| odelta | choice of Delta |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error. |
| double ccl_massfunc_m2r | ( | ccl_cosmology * | cosmo, |
| double | smooth_mass, | ||
| int * | status | ||
| ) |
Convert smoothing halo mass in units of Msun to smoothing halo radius in units of Mpc.
| cosmo | Cosmological parameters |
| smooth_mass | Mass to compute at, in units of Msun |
| a | Scale factor, normalized to a=1 today |
| odelta | choice of Delta |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error. |
| double ccl_sigmaM | ( | ccl_cosmology * | cosmo, |
| double | smooth_mass, | ||
| double | a, | ||
| int * | status | ||
| ) |
Calculate the standard deviation of density at smoothing mass M via interpolation. Return sigma from the sigmaM interpolation. Also computes the sigma interpolation if necessary.
| cosmo | Cosmological parameters |
| smooth_mass | Mass to compute at, in units of Msun |
| a | Scale factor, normalized to a=1 today |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error. |
1.8.13