|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>#include <gsl/gsl_integration.h>#include <gsl/gsl_interp.h>#include <gsl/gsl_spline.h>#include <gsl/gsl_errno.h>#include "ccl.h"#include "ccl_params.h"
Go to the source code of this file.
|
static |
Definition at line 62 of file ccl_massfunc.c.
References ccl_data::accelerator_d, ccl_data::alphahmf, beta, ccl_data::betahmf, ccl_cosmology_set_status_message(), CCL_ERROR_SPLINE, ccl_tinker, ccl_tinker10, ccl_cosmology::computed_hmfparams, ccl_cosmology::config, D_SPLINE_TYPE, ccl_cosmology::data, ccl_data::etahmf, ccl_data::gammahmf, ccl_configuration::mass_function_method, and ccl_data::phihmf.
Referenced by massfunc_f().
| void ccl_cosmology_compute_sigma | ( | ccl_cosmology * | cosmo, |
| int * | status | ||
| ) |
Definition at line 431 of file ccl_massfunc.c.
References ccl_data::accelerator_m, ccl_cosmology_set_status_message(), CCL_ERROR_LINSPACE, CCL_ERROR_SPLINE, ccl_linear_spacing(), ccl_massfunc_m2r(), ccl_raise_gsl_warning(), ccl_sigmaR(), ccl_splines, ccl_cosmology::computed_sigma, ccl_cosmology::data, ccl_data::dlnsigma_dlogm, ccl_spline_params::LOGM_SPLINE_DELTA, ccl_spline_params::LOGM_SPLINE_MAX, ccl_spline_params::LOGM_SPLINE_MIN, ccl_spline_params::LOGM_SPLINE_NM, ccl_data::logsigma, m, M_SPLINE_TYPE, and pow().
Referenced by ccl_dlninvsig_dlogm(), ccl_halo_bias(), and ccl_sigmaM().
|
static |
Definition at line 537 of file ccl_massfunc.c.
References ccl_data::accelerator_m, ccl_check_status(), ccl_cosmology_compute_sigma(), ccl_raise_gsl_warning(), ccl_cosmology::computed_sigma, ccl_cosmology::data, and ccl_data::dlnsigma_dlogm.
Referenced by ccl_massfunc().
|
static |
Definition at line 374 of file ccl_massfunc.c.
References ccl_cosmology_set_status_message(), CCL_ERROR_HMF_DV, CCL_ERROR_MF, ccl_shethtormen, ccl_sigmaM(), ccl_tinker10, ccl_cosmology::config, dc_NakamuraSuto(), Dv_BryanNorman(), ccl_configuration::mass_function_method, and pow().
Referenced by ccl_halo_bias().
| double ccl_halo_bias | ( | ccl_cosmology * | cosmo, |
| double | halomass, | ||
| double | a, | ||
| double | odelta, | ||
| int * | status | ||
| ) |
Definition at line 582 of file ccl_massfunc.c.
References ccl_check_status(), ccl_cosmology_compute_sigma(), ccl_cosmology_set_status_message(), CCL_ERROR_NOT_IMPLEMENTED, ccl_halo_b1(), ccl_cosmology::computed_sigma, ccl_parameters::N_nu_mass, and ccl_cosmology::params.
Referenced by main(), and two_halo_integrand().
| double ccl_massfunc | ( | ccl_cosmology * | cosmo, |
| double | halomass, | ||
| double | a, | ||
| double | odelta, | ||
| int * | status | ||
| ) |
Definition at line 562 of file ccl_massfunc.c.
References ccl_cosmology_set_status_message(), ccl_dlninvsig_dlogm(), CCL_ERROR_NOT_IMPLEMENTED, ccl_parameters::h, massfunc_f(), ccl_parameters::N_nu_mass, ccl_parameters::Omega_m, ccl_cosmology::params, and RHO_CRITICAL.
Referenced by compare_massfunc(), main(), one_halo_integrand(), and two_halo_integrand().
| double ccl_massfunc_m2r | ( | ccl_cosmology * | cosmo, |
| double | halomass, | ||
| int * | status | ||
| ) |
Definition at line 606 of file ccl_massfunc.c.
References ccl_rho_x(), ccl_species_m_label, M_PI, and pow().
Referenced by ccl_cosmology_compute_sigma().
| double ccl_sigmaM | ( | ccl_cosmology * | cosmo, |
| double | halomass, | ||
| double | a, | ||
| int * | status | ||
| ) |
Definition at line 624 of file ccl_massfunc.c.
References ccl_data::accelerator_m, ccl_check_status(), ccl_cosmology_compute_sigma(), ccl_cosmology_set_status_message(), CCL_ERROR_NOT_IMPLEMENTED, ccl_growth_factor(), ccl_raise_gsl_warning(), ccl_cosmology::computed_sigma, ccl_cosmology::data, ccl_data::logsigma, ccl_parameters::N_nu_mass, ccl_cosmology::params, and pow().
Referenced by ccl_halo_b1(), ccl_halo_concentration(), compare_massfunc(), compare_sigmam(), and massfunc_f().
| double dc_NakamuraSuto | ( | ccl_cosmology * | cosmo, |
| double | a, | ||
| int * | status | ||
| ) |
Definition at line 21 of file ccl_massfunc.c.
References ccl_omega_x(), ccl_species_m_label, M_PI, and pow().
Referenced by ccl_halo_b1(), and massfunc_f().
| double Dv_BryanNorman | ( | ccl_cosmology * | cosmo, |
| double | a, | ||
| int * | status | ||
| ) |
Definition at line 37 of file ccl_massfunc.c.
References ccl_omega_x(), ccl_species_m_label, M_PI, pow(), and x.
Referenced by ccl_halo_b1(), ccl_halo_concentration(), ccl_twohalo_matter_power(), massfunc_f(), one_halo_integrand(), and two_halo_integrand().
|
static |
Definition at line 234 of file ccl_massfunc.c.
References ccl_data::accelerator_d, ccl_data::alphahmf, ccl_data::betahmf, ccl_angulo, ccl_check_status(), ccl_cosmology_compute_hmfparams(), ccl_cosmology_set_status_message(), CCL_ERROR_HMF_DV, CCL_ERROR_HMF_INTERP, CCL_ERROR_MF, ccl_omega_x(), ccl_raise_gsl_warning(), ccl_shethtormen, ccl_sigmaM(), ccl_species_m_label, ccl_tinker, ccl_tinker10, ccl_watson, ccl_cosmology::computed_hmfparams, ccl_cosmology::config, ccl_cosmology::data, dc_NakamuraSuto(), Dv_BryanNorman(), ccl_data::etahmf, ccl_data::gammahmf, ccl_configuration::mass_function_method, ccl_data::phihmf, and pow().
Referenced by ccl_massfunc().
| double r_delta | ( | ccl_cosmology * | cosmo, |
| double | halomass, | ||
| double | a, | ||
| double | odelta, | ||
| int * | status | ||
| ) |
Definition at line 52 of file ccl_massfunc.c.
References ccl_rho_x(), M_PI, and pow().
Referenced by window_function().