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

Public Member Functions | |
| ChiImpl (const Sim_Param &sim) | |
| void | solve (double a, const std::vector< Particle_v< double >> &particles, const Sim_Param &sim, const FFTW_PLAN_TYPE &p_F, const FFTW_PLAN_TYPE &p_B) |
| void | gen_pow_spec_binned (const Sim_Param &sim, Data_Vec< double, 2 > &pwr_spec_binned, const FFTW_PLAN_TYPE &p_F) |
| void | get_chi_force (const FFTW_PLAN_TYPE &p_F, const FFTW_PLAN_TYPE &p_B) |
| void | kick_step_w_chi (const Cosmo_Param &cosmo, const double a, const double da, std::vector< Particle_v< double >> &particles, const std::vector< Mesh > &force_field) |
| void | kick_step_w_chi_no_momentum (const Cosmo_Param &cosmo, const double a, const double da, std::vector< Particle_v< double >> &particles, const std::vector< Mesh > &vel_field) |
Public Attributes | |
| ChiSolver< CHI_PREC_t > | sol |
| MultiGrid< 3, CHI_PREC_t > | drho |
| std::vector< Mesh > | chi_force |
| uint64_t | memory_alloc |
Private Member Functions | |
| void | solve_multigrid () |
| void | solve_finest () |
Private Attributes | |
| const size_t | N_level_orig |
| const double | x_0 |
Definition at line 683 of file chameleon.cpp.
|
inline |
Definition at line 687 of file chameleon.cpp.
References Sim_Param::box_opt, anonymous_namespace{chameleon.cpp}::CONVERGENCE_BI_DCHI, anonymous_namespace{chameleon.cpp}::CONVERGENCE_BI_L, anonymous_namespace{chameleon.cpp}::CONVERGENCE_BI_STEPS_INIT, and Box_Opt::mesh_num.
|
inline |
Definition at line 747 of file chameleon.cpp.
References fftw_execute_dft_r2c(), gen_pow_spec_binned(), pwr_spec_k_init(), and anonymous_namespace{chameleon.cpp}::transform_MultiGridSolver_to_Mesh().
|
inline |
Definition at line 755 of file chameleon.cpp.
References fftw_execute_dft_c2r_triple(), fftw_execute_dft_r2c(), gen_displ_k_cic(), and anonymous_namespace{chameleon.cpp}::transform_MultiGridSolver_to_Mesh().
|
inline |
Definition at line 763 of file chameleon.cpp.
References assign_from(), growth_allz::growth_factor, Cosmo_Param::Omega_L(), Cosmo_Param::Omega_m, pow(), and pow2().
|
inline |
Definition at line 789 of file chameleon.cpp.
References assign_from(), growth_change(), growth_allz::growth_factor, and pow2().
|
inline |
linear guess and solver
< solve using multigrid teqniques
< solve only on the finest mesh using NGS sweeps
Definition at line 714 of file chameleon.cpp.
References Sim_Param::chi_opt, Sim_Param::cosmo, get_rho_from_par(), Chi_Opt::linear, and anonymous_namespace{chameleon.cpp}::transform_Mesh_to_MultiGrid().
|
inlineprivate |
< fine, coarse
Definition at line 820 of file chameleon.cpp.
|
inlineprivate |
< fine, coarse
Definition at line 813 of file chameleon.cpp.
| std::vector<Mesh> App_Var_Chi::ChiImpl::chi_force |
Definition at line 710 of file chameleon.cpp.
| MultiGrid<3, CHI_PREC_t> App_Var_Chi::ChiImpl::drho |
Definition at line 709 of file chameleon.cpp.
| uint64_t App_Var_Chi::ChiImpl::memory_alloc |
Definition at line 711 of file chameleon.cpp.
|
private |
Definition at line 810 of file chameleon.cpp.
| ChiSolver<CHI_PREC_t> App_Var_Chi::ChiImpl::sol |
Definition at line 708 of file chameleon.cpp.
|
private |
Definition at line 811 of file chameleon.cpp.