|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
: class storing simulation parameters More...
#include <params.hpp>

Public Member Functions | |
| Sim_Param () | |
| Sim_Param (int ac, const char *const av[]) | |
| Sim_Param (std::string file_name) | |
| void | print_info (std::string out, std::string app) const |
| void | print_info () const |
| double | x_0 () const |
| double | x_0_pwr () const |
| bool | simulate () |
| void | reset () |
| bool | is_ready () |
Public Attributes | |
| Box_Opt | box_opt |
| Integ_Opt | integ_opt |
| Out_Opt | out_opt |
| Comp_App | comp_app |
| Cosmo_Param | cosmo |
| App_Opt | app_opt |
| Run_Opt | run_opt |
| Other_par | other_par |
| Chi_Opt | chi_opt |
| Test_Opt | test_opt |
: class storing simulation parameters
Definition at line 193 of file params.hpp.
|
inline |
Definition at line 197 of file params.hpp.
| Sim_Param::Sim_Param | ( | int | ac, |
| const char *const | av[] | ||
| ) |
Definition at line 434 of file params.cpp.
References Cosmo_Param::cosmo, and handle_cmd_line().
| Sim_Param::Sim_Param | ( | std::string | file_name | ) |
Definition at line 449 of file params.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::at(), Cosmo_Param::cosmo, from_json(), and nlohmann::detail::exception::what().
| bool Sim_Param::is_ready | ( | ) |
| void Sim_Param::print_info | ( | std::string | out, |
| std::string | app | ||
| ) | const |
Definition at line 497 of file params.cpp.
References anonymous_namespace{params.cpp}::baryons_power_spectrum_method, ccl_configuration::baryons_power_spectrum_method, ccl_cosmology::config, Cosmo_Param::cosmo, anonymous_namespace{params.cpp}::find_value(), anonymous_namespace{params.cpp}::mass_function_method, ccl_configuration::mass_function_method, anonymous_namespace{params.cpp}::matter_power_spectrum_method, ccl_configuration::matter_power_spectrum_method, sqrt(), anonymous_namespace{params.cpp}::transfer_function_method, and ccl_configuration::transfer_function_method.
Referenced by main(), App_Var< T >::Impl< T >::print_info(), and TEST_CASE().
| void Sim_Param::print_info | ( | ) | const |
Definition at line 545 of file params.cpp.
| void Sim_Param::reset | ( | ) |
|
inline |
|
inline |
Definition at line 216 of file params.hpp.
References Box_Opt::box_size, and Box_Opt::mesh_num.
Referenced by print_par_pos_cut_small(), and anonymous_namespace{app_var.cpp}::Tracking::print_track_par().
|
inline |
Definition at line 217 of file params.hpp.
References Box_Opt::box_size, and Box_Opt::mesh_num_pwr.
Referenced by print_projected_rho(), and print_rho_map().
| App_Opt Sim_Param::app_opt |
Definition at line 207 of file params.hpp.
Referenced by App_Var_AA::AAImpl::aa_convolution(), anonymous_namespace{mod_frozen_potential.cpp}::force_short(), App_Var_FP_mod::FP_ppImpl::FP_ppImpl(), App_Var_FP_mod::pot_corr(), and App_Var_AA::pot_corr().
| Box_Opt Sim_Param::box_opt |
Definition at line 202 of file params.hpp.
Referenced by App_Var< T >::Impl< T >::alloc_bin_spec(), App_Var< T >::Impl< T >::alloc_mesh_vec(), App_Var< T >::Impl< T >::alloc_particles(), App_Var_Chi::ChiImpl::ChiImpl(), App_Var< T >::Impl< T >::fftw_prep(), anonymous_namespace{mod_frozen_potential.cpp}::force_short(), App_Var_FP_mod::FP_ppImpl::FP_ppImpl(), gen_dens_binned(), gen_pow_spec_binned(), gen_pow_spec_binned_init(), gen_rho_w_pow_k(), get_rho_from_par(), get_vel_from_par(), handle_cmd_line(), print_par_pos_cut_small(), print_projected_rho(), print_rho_map(), set_pert_pos(), set_unpert_pos(), set_unpert_pos_w_vel(), std_out_dir(), TEST_CASE(), App_Var_FF::upd_pos(), App_Var_FP::upd_pos(), App_Var_Chi::upd_pos(), App_Var_FP_mod::upd_pos(), App_Var_AA::upd_pos(), App_Var_PM::upd_pos(), and App_Var_Chi_FF::upd_pos().
| Chi_Opt Sim_Param::chi_opt |
Definition at line 210 of file params.hpp.
Referenced by handle_cmd_line(), App_Var_Chi::ChiImpl::solve(), and TEST_CASE().
| Comp_App Sim_Param::comp_app |
Definition at line 205 of file params.hpp.
Referenced by handle_cmd_line(), and main().
| Cosmo_Param Sim_Param::cosmo |
Definition at line 206 of file params.hpp.
Referenced by gen_corr_func_binned_gsl_qawf(), gen_corr_func_binned_gsl_qawf_lin(), gen_corr_func_binned_gsl_qawf_nl(), gen_rho_w_pow_k(), gen_sigma_binned_gsl_qawf(), gen_sigma_func_binned_gsl_qawf_lin(), gen_sigma_func_binned_gsl_qawf_nl(), handle_cmd_line(), anonymous_namespace{main.cpp}::init_and_run_app(), anonymous_namespace{mod_frozen_potential.cpp}::kick_step_w_pp(), App_Var< T >::Impl< T >::print_power_spec(), App_Var< T >::Impl< T >::print_vel_pwr(), set_pert_pos(), App_Var_Chi::ChiImpl::solve(), TEST_CASE(), App_Var_FF::upd_pos(), App_Var_FP::upd_pos(), App_Var_Chi::upd_pos(), App_Var_AA::upd_pos(), App_Var_PM::upd_pos(), and App_Var_Chi_FF::upd_pos().
| Integ_Opt Sim_Param::integ_opt |
Definition at line 203 of file params.hpp.
Referenced by handle_cmd_line(), and App_Var< T >::Impl< T >::set_init_pos().
| Other_par Sim_Param::other_par |
Definition at line 209 of file params.hpp.
Referenced by App_Var< T >::Impl< T >::alloc_bin_corr(), anonymous_namespace{core_power.cpp}::gen_corr_func_binned_gsl(), gen_pow_spec_binned_from_extrap(), and anonymous_namespace{core_power.cpp}::gen_sigma_func_binned_gsl().
| Out_Opt Sim_Param::out_opt |
Definition at line 204 of file params.hpp.
Referenced by App_Var< T >::Impl< T >::alloc_bin_corr(), App_Var< T >::Impl< T >::alloc_bin_spec(), App_Var< T >::App_Var(), anonymous_namespace{core_power.cpp}::gen_corr_func_binned_gsl(), gen_pow_spec_binned(), gen_pow_spec_binned_from_extrap(), gen_pow_spec_binned_init(), anonymous_namespace{core_power.cpp}::gen_sigma_func_binned_gsl(), handle_cmd_line(), App_Var_Chi::print_output(), App_Var< T >::Impl< T >::print_output(), App_Var< T >::Impl< T >::set_init_cond(), std_out_dir(), and TEST_CASE().
| Run_Opt Sim_Param::run_opt |
Definition at line 208 of file params.hpp.
Referenced by App_Var< T >::Impl< T >::fftw_prep(), gen_gauss_white_noise(), gen_rho_w_pow_k(), handle_cmd_line(), and TEST_CASE().
| Test_Opt Sim_Param::test_opt |
Definition at line 211 of file params.hpp.
Referenced by handle_cmd_line(), anonymous_namespace{test_chameleon.cpp}::init_overdensity(), and TEST_CASE().