|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
handle cosmological functions like power spectrum, growth, etc. More...


Go to the source code of this file.
Classes | |
| class | Data_Vec< T, N > |
| declaration in params.hpp More... | |
| class | Interp_obj |
| : linear interpolation (Steffen) of data [x, y] More... | |
| class | Extrap_Pk< T, N > |
| : linear interpolation of data [k, P(k)] within 'useful' range fit to primordial P_i(k) below the 'useful' range fit to Padé approximant R [0/3] above the 'useful' range More... | |
| class | Extrap_Pk_Nl< T, N > |
| : creates Extrapolate object (linear power spectrum) from data and store non-linear parameters call 'operator()(k)' based on k_split (upper range of the linear) More... | |
Functions | |
| void | norm_pwr (Cosmo_Param &cosmo) |
| declaration in class_data_vec.hpp More... | |
| double | norm_growth_factor (const Cosmo_Param &cosmo) |
when computing growth factor outside CCL range we need to normalize the growth factor; More... | |
| double | growth_factor (double a, const Cosmo_Param &cosmo) |
| double | growth_rate (double a, const Cosmo_Param &cosmo) |
| double | growth_change (double a, const Cosmo_Param &cosmo) |
| double | Omega_lambda (double a, const Cosmo_Param &cosmo) |
| double | lin_pow_spec (double a, double k, const Cosmo_Param &cosmo) |
| double | non_lin_pow_spec (double a, double k, const Cosmo_Param &cosmo) |
| template<class P > | |
| void | gen_corr_func_binned_gsl_qawf (const Sim_Param &sim, const P &P_k, Data_Vec< double, 2 > &corr_func_binned) |
| compute correlation function and store results More... | |
| void | gen_corr_func_binned_gsl_qawf_lin (const Sim_Param &sim, double a, Data_Vec< double, 2 > &corr_func_binned) |
| compute linear correlation function and store results More... | |
| void | gen_corr_func_binned_gsl_qawf_nl (const Sim_Param &sim, double a, Data_Vec< double, 2 > &corr_func_binned) |
| compute non-linear correlation function and store results More... | |
| template<class P > | |
| void | gen_sigma_binned_gsl_qawf (const Sim_Param &sim, const P &P_k, Data_Vec< double, 2 > &sigma_binned) |
| compute amplitude of density fluctuation and store results More... | |
| void | gen_sigma_func_binned_gsl_qawf_lin (const Sim_Param &sim, double a, Data_Vec< double, 2 > &sigma_binned) |
| compute linear amplitude of density fluctuation and store results More... | |
| void | gen_sigma_func_binned_gsl_qawf_nl (const Sim_Param &sim, double a, Data_Vec< double, 2 > &sigma_binned) |
| compute non-linear amplitude of density fluctuation and store results More... | |
handle cosmological functions like power spectrum, growth, etc.
Definition in file core_power.h.
| void gen_corr_func_binned_gsl_qawf | ( | const Sim_Param & | sim, |
| const P & | P_k, | ||
| Data_Vec< double, 2 > & | corr_func_binned | ||
| ) |
compute correlation function and store results
| P | callable object with 'operator()(double)' |
| sim | simulation parameters |
| P_k | power spectrum (callable) |
| corr_func_binned | object to store binned correlation function |
Definition at line 665 of file core_power.cpp.
References Sim_Param::cosmo, anonymous_namespace{core_power.cpp}::gen_corr_func_binned_gsl(), get_gsl_error(), anonymous_namespace{core_power.cpp}::GSL_LIMIT, and anonymous_namespace{core_power.cpp}::GSL_N.
Referenced by gen_corr_func_binned_gsl_qawf_lin(), gen_corr_func_binned_gsl_qawf_nl(), gen_sigma_func_binned_gsl_qawf_nl(), and App_Var< T >::Impl< T >::print_corr().
| void gen_corr_func_binned_gsl_qawf_lin | ( | const Sim_Param & | sim, |
| double | a, | ||
| Data_Vec< double, 2 > & | corr_func_binned | ||
| ) |
compute linear correlation function and store results
| sim | simulation parameters |
| a | scale factor |
| corr_func_binned | object to store binned correlation function |
Definition at line 673 of file core_power.cpp.
References Sim_Param::cosmo, gen_corr_func_binned_gsl_qawf(), and lin_pow_spec().
Referenced by App_Var< T >::Impl< T >::print_corr().
| void gen_corr_func_binned_gsl_qawf_nl | ( | const Sim_Param & | sim, |
| double | a, | ||
| Data_Vec< double, 2 > & | corr_func_binned | ||
| ) |
compute non-linear correlation function and store results
| sim | simulation parameters |
| a | scale factor |
| corr_func_binned | object to store binned correlation function |
Definition at line 679 of file core_power.cpp.
References Sim_Param::cosmo, gen_corr_func_binned_gsl_qawf(), and non_lin_pow_spec().
| void gen_sigma_binned_gsl_qawf | ( | const Sim_Param & | sim, |
| const P & | P_k, | ||
| Data_Vec< double, 2 > & | sigma_binned | ||
| ) |
compute amplitude of density fluctuation and store results
| P | callable object with 'operator()(double)' |
| sim | simulation parameters |
| P_k | power spectrum (callable) |
| sigma_binned | object to store binned correlation function |
Definition at line 686 of file core_power.cpp.
References Sim_Param::cosmo, anonymous_namespace{core_power.cpp}::gen_sigma_func_binned_gsl(), get_gsl_error(), anonymous_namespace{core_power.cpp}::GSL_LIMIT, and anonymous_namespace{core_power.cpp}::GSL_N.
Referenced by gen_sigma_func_binned_gsl_qawf_lin(), and gen_sigma_func_binned_gsl_qawf_nl().
| void gen_sigma_func_binned_gsl_qawf_lin | ( | const Sim_Param & | sim, |
| double | a, | ||
| Data_Vec< double, 2 > & | sigma_binned | ||
| ) |
compute linear amplitude of density fluctuation and store results
| sim | simulation parameters |
| a | scale factor |
| sigma_binned | object to store binned correlation function |
Definition at line 694 of file core_power.cpp.
References Sim_Param::cosmo, gen_sigma_binned_gsl_qawf(), and lin_pow_spec().
| void gen_sigma_func_binned_gsl_qawf_nl | ( | const Sim_Param & | sim, |
| double | a, | ||
| Data_Vec< double, 2 > & | sigma_binned | ||
| ) |
compute non-linear amplitude of density fluctuation and store results
| sim | simulation parameters |
| a | scale factor |
| sigma_binned | object to store binned correlation function |
Definition at line 700 of file core_power.cpp.
References Sim_Param::cosmo, gen_corr_func_binned_gsl_qawf(), gen_sigma_binned_gsl_qawf(), Interp_obj::init(), and non_lin_pow_spec().
| double growth_change | ( | double | a, |
| const Cosmo_Param & | cosmo | ||
| ) |
| a | |
| cosmo | cosmological parameters |
Definition at line 447 of file core_power.cpp.
References cl_cmbl_bm::cosmo, growth_factor(), and growth_rate().
Referenced by kick_step_no_momentum(), App_Var_Chi::ChiImpl::kick_step_w_chi_no_momentum(), App_Var< T >::Impl< T >::print_vel_pwr(), set_pert_pos(), and TEST_CASE().
| double growth_factor | ( | double | a, |
| const Cosmo_Param & | cosmo | ||
| ) |
| a | |
| cosmo | cosmological parameters |
Definition at line 414 of file core_power.cpp.
References ccl_growth_factor(), Cosmo_Param::cosmo, Cosmo_Param::D_norm, anonymous_namespace{core_power.cpp}::growth_factor_integrand(), and anonymous_namespace{core_power.cpp}::hubble_param().
Referenced by growth_change(), anonymous_namespace{core_power.cpp}::growth_factor(), lin_pow_spec(), and anonymous_namespace{core_power.cpp}::ln_growth_factor().
| double growth_rate | ( | double | a, |
| const Cosmo_Param & | cosmo | ||
| ) |
| a | |
| cosmo | cosmological parameters |
Definition at line 429 of file core_power.cpp.
References ccl_growth_rate(), cl_cmbl_bm::cosmo, Cosmo_Param::cosmo, and anonymous_namespace{core_power.cpp}::ln_growth_factor().
Referenced by growth_change(), and TEST_CASE().
| double lin_pow_spec | ( | double | a, |
| double | k, | ||
| const Cosmo_Param & | cosmo | ||
| ) |
| a | |
| k | |
| cosmo | cosmological parameters |
Definition at line 474 of file core_power.cpp.
References ccl_linear_matter_power(), Cosmo_Param::cosmo, growth_factor(), Cosmo_Param::h, pow(), and ccl_cosmology::status_message.
Referenced by Extrap_Pk< T, N >::fit_lin(), gen_corr_func_binned_gsl_qawf_lin(), gen_rho_w_pow_k(), gen_sigma_func_binned_gsl_qawf_lin(), get_gsl_error(), non_lin_pow_spec(), Extrap_Pk< T, N >::operator()(), and Extrap_Pk_Nl< T, N >::operator()().
| double non_lin_pow_spec | ( | double | a, |
| double | k, | ||
| const Cosmo_Param & | cosmo | ||
| ) |
| a | |
| k | |
| cosmo | cosmological parameters |
Definition at line 486 of file core_power.cpp.
References ccl_nonlin_matter_power(), Cosmo_Param::cosmo, Cosmo_Param::h, lin_pow_spec(), pow(), and ccl_cosmology::status_message.
Referenced by gen_corr_func_binned_gsl_qawf_nl(), gen_sigma_func_binned_gsl_qawf_nl(), and Extrap_Pk_Nl< T, N >::operator()().
| double norm_growth_factor | ( | const Cosmo_Param & | cosmo | ) |
when computing growth factor outside CCL range we need to normalize the growth factor;
| cosmo | cosmological parameters |
Definition at line 408 of file core_power.cpp.
References anonymous_namespace{core_power.cpp}::growth_factor_integrand().
Referenced by Cosmo_Param::init().
| void norm_pwr | ( | Cosmo_Param & | cosmo | ) |
declaration in class_data_vec.hpp
Initialize CCL power spectrum
| cosmo | cosmological parameters |
declaration in class_data_vec.hpp
PUBLIC FUNCTIONS DEFINITIONS *
Definition at line 400 of file core_power.cpp.
References ccl_sigma8(), Cosmo_Param::cosmo, and ccl_cosmology::status_message.
Referenced by Cosmo_Param::init().
| double Omega_lambda | ( | double | a, |
| const Cosmo_Param & | cosmo | ||
| ) |
| a | |
| cosmo | cosmological parameters |
Definition at line 462 of file core_power.cpp.
References ccl_omega_x(), ccl_species_l_label, Cosmo_Param::cosmo, Cosmo_Param::Omega_L(), Cosmo_Param::Omega_m, and pow().