|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|

Public Member Functions | |
| Impl (const Sim_Param &sim, const std::string &app_short, const std::string &app_long) | |
| uint64_t | alloc_mesh_vec (App_Var< T > &APP) |
| uint64_t | alloc_bin_spec (App_Var< T > &APP) |
| uint64_t | alloc_bin_corr (App_Var< T > &APP) |
| uint64_t | alloc_particles (App_Var< T > &APP) |
| void | fftw_prep (App_Var< T > &APP) |
| void | set_init_pos (App_Var< T > &APP) |
| void | set_init_cond (App_Var< T > &APP) |
| void | print_sim_name () const |
| void | print_end () |
| std::string | z_suffix () const |
| void | print_input_realisation (App_Var< T > &APP) |
| void | print_output (App_Var< T > &APP) |
| void | create_work_dir (const Out_Opt &out_opt) |
| void | integration (App_Var< T > &APP) |
Public Attributes | |
| const std::string | app_str |
| const std::string | app_long |
| const std::string | z_suffix_const |
| const std::string | out_dir_app |
| double | a |
| double | a_out |
| double | da |
Private Member Functions | |
| bool | printing () const |
| void | print_info (const Sim_Param &sim) const |
| void | print_position (const App_Var< T > &APP) const |
| void | print_density (App_Var< T > &APP) const |
| void | get_binned_power_spec (App_Var< T > &APP) const |
| void | print_power_spec (App_Var< T > &APP) |
| void | print_extrap_pwr (App_Var< T > &APP, const Extrap_Pk< double, 2 > &P_k) const |
| void | print_corr (App_Var< T > &APP, const Extrap_Pk< double, 2 > &P_k) const |
| void | print_vel_pwr (App_Var< T > &APP) |
| void | print_init (App_Var< T > &APP) |
| bool | integrate () const |
| void | upd_time () |
| double | z () const |
Private Attributes | |
| unsigned int | print_every |
| unsigned int | step |
| Tracking | track |
| Interp_obj | pwr_spec_input |
| double | D_init |
| double | dDda_init |
| bool | is_init_pwr_spec_0 |
| bool | is_init_vel_pwr_spec_0 |
Definition at line 132 of file app_var.cpp.
|
inline |
Definition at line 136 of file app_var.cpp.
|
inline |
Definition at line 167 of file app_var.cpp.
References App_Var< T >::corr_func_binned, Data_Vec< T, N >::dim(), Range::lower, Sim_Param::other_par, Sim_Param::out_opt, Out_Opt::points_per_10_Mpc, Data_Vec< T, N >::reserve(), App_Var< T >::sim, Data_Vec< T, N >::size(), Range::upper, and Other_par::x_corr.
|
inline |
Definition at line 157 of file app_var.cpp.
References Out_Opt::bins_per_decade, Sim_Param::box_opt, Data_Vec< T, N >::dim(), Box_Opt::mesh_num_pwr, Sim_Param::out_opt, App_Var< T >::pwr_spec_binned, App_Var< T >::pwr_spec_binned_0, Data_Vec< T, N >::reserve(), App_Var< T >::sim, Data_Vec< T, N >::size(), and App_Var< T >::vel_pwr_spec_binned_0.
|
inline |
Definition at line 145 of file app_var.cpp.
References App_Var< T >::app_field, Sim_Param::box_opt, Box_Opt::mesh_num, Box_Opt::mesh_num_pwr, App_Var< T >::power_aux, and App_Var< T >::sim.
|
inline |
Definition at line 175 of file app_var.cpp.
References Sim_Param::box_opt, Box_Opt::par_num, App_Var< T >::particles, App_Var< T >::sim, and growth_allz::T.
|
inline |
Definition at line 296 of file app_var.cpp.
References create_dir(), Out_Opt::print_corr, Out_Opt::print_dens, Out_Opt::print_par_pos, Out_Opt::print_pwr, and Out_Opt::print_vel_pwr.
|
inline |
Definition at line 181 of file app_var.cpp.
References App_Var< T >::app_field, Sim_Param::box_opt, FFTW_PLAN_C2R, FFTW_PLAN_OMP, FFTW_PLAN_OMP_INIT, FFTW_PLAN_R2C, Box_Opt::mesh_num, Box_Opt::mesh_num_pwr, Run_Opt::nt_fftw, App_Var< T >::p_B, App_Var< T >::p_B_pwr, App_Var< T >::p_F, App_Var< T >::p_F_pwr, App_Var< T >::power_aux, Sim_Param::run_opt, and App_Var< T >::sim.
|
inlineprivate |
Definition at line 368 of file app_var.cpp.
References fftw_execute_dft_r2c(), gen_pow_spec_binned(), App_Var< T >::p_F_pwr, App_Var< T >::power_aux, App_Var< T >::pwr_spec_binned, pwr_spec_k(), and App_Var< T >::sim.
|
inlineprivate |
Definition at line 431 of file app_var.cpp.
|
inline |
Definition at line 325 of file app_var.cpp.
References halomod_bm::integrate, App_Var< T >::particles, App_Var< T >::print_output(), App_Var< T >::sim, App_Var< T >::upd_pos(), and z.
|
inlineprivate |
Definition at line 397 of file app_var.cpp.
References App_Var< T >::corr_func_binned, gen_corr_func_binned_gsl_qawf(), gen_corr_func_binned_gsl_qawf_lin(), print_corr_func(), and App_Var< T >::sim.
|
inlineprivate |
Definition at line 361 of file app_var.cpp.
References App_Var< T >::dens_binned, gen_dens_binned(), App_Var< T >::power_aux, print_dens_bin(), print_rho_map(), and App_Var< T >::sim.
Definition at line 242 of file app_var.cpp.
|
inlineprivate |
Definition at line 391 of file app_var.cpp.
References gen_pow_spec_binned_from_extrap(), print_pow_spec(), App_Var< T >::pwr_spec_binned, and App_Var< T >::sim.
|
inlineprivate |
Definition at line 350 of file app_var.cpp.
References Sim_Param::print_info().
|
inlineprivate |
Definition at line 419 of file app_var.cpp.
References App_Var< T >::particles, and App_Var< T >::print_output().
|
inline |
Definition at line 254 of file app_var.cpp.
References App_Var< T >::app_field, gen_pow_spec_binned_init(), App_Var< T >::power_aux, print_pow_spec(), App_Var< T >::pwr_spec_binned_0, pwr_spec_k_init(), and App_Var< T >::sim.
|
inline |
Definition at line 263 of file app_var.cpp.
References Out_Opt::get_pk_extrap, Out_Opt::get_pwr, Out_Opt::get_rho, get_rho_from_par(), get_vel_from_par(), Sim_Param::out_opt, App_Var< T >::particles, App_Var< T >::power_aux, Out_Opt::print_corr, Out_Opt::print_dens, Out_Opt::print_extrap_pwr, Out_Opt::print_par_pos, Out_Opt::print_pwr, Out_Opt::print_vel_pwr, App_Var< T >::pwr_spec_binned, and App_Var< T >::sim.
|
inlineprivate |
Definition at line 355 of file app_var.cpp.
References App_Var< T >::particles, print_par_pos_cut_small(), and App_Var< T >::sim.
|
inlineprivate |
Definition at line 375 of file app_var.cpp.
References Sim_Param::cosmo, growth_allz::growth_factor, print_pow_spec(), print_pow_spec_diff(), App_Var< T >::pwr_spec_binned, App_Var< T >::pwr_spec_binned_0, and App_Var< T >::sim.
Definition at line 235 of file app_var.cpp.
|
inlineprivate |
Definition at line 405 of file app_var.cpp.
References Sim_Param::cosmo, fftw_execute_dft_r2c_triple(), gen_pow_spec_binned(), growth_change(), App_Var< T >::p_F_pwr, App_Var< T >::power_aux, print_vel_pow_spec(), print_vel_pow_spec_diff(), App_Var< T >::pwr_spec_binned, App_Var< T >::sim, App_Var< T >::vel_pwr_spec_binned_0, and vel_pwr_spec_k().
Definition at line 345 of file app_var.cpp.
|
inline |
Definition at line 210 of file app_var.cpp.
References App_Var< T >::app_field, fftw_execute_dft_c2r_triple(), gen_displ_k(), gen_pot_k(), gen_rho_dist_k(), Sim_Param::out_opt, App_Var< T >::p_B, App_Var< T >::p_F, App_Var< T >::power_aux, Out_Opt::print_pwr, and App_Var< T >::sim.
|
inline |
Definition at line 205 of file app_var.cpp.
References Integ_Opt::a_in, App_Var< T >::app_field, Sim_Param::integ_opt, App_Var< T >::particles, set_pert_pos(), and App_Var< T >::sim.
Definition at line 436 of file app_var.cpp.
Definition at line 444 of file app_var.cpp.
Definition at line 323 of file app_var.cpp.
Definition at line 323 of file app_var.cpp.
Definition at line 233 of file app_var.cpp.
Definition at line 233 of file app_var.cpp.
Definition at line 428 of file app_var.cpp.
Definition at line 323 of file app_var.cpp.
Definition at line 428 of file app_var.cpp.
Definition at line 429 of file app_var.cpp.
Definition at line 429 of file app_var.cpp.
Definition at line 233 of file app_var.cpp.
Definition at line 341 of file app_var.cpp.
Definition at line 343 of file app_var.cpp.
Definition at line 341 of file app_var.cpp.
Definition at line 342 of file app_var.cpp.
Definition at line 233 of file app_var.cpp.