|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
Functions | |
| template<typename T > | |
| T | mean (const std::vector< T > &data) |
| double | mean (const Mesh &data) |
| void | get_neighbor_gridindex (std::vector< size_t > &index_list, size_t i, size_t N) |
| void | init_overdensity (Sim_Param &sim, Mesh &rho, MultiGrid< 3, CHI_PREC_t > &rho_grid) |
| void | get_grav_pot (Mesh &rho, const FFTW_PLAN_TYPE &p_F, const FFTW_PLAN_TYPE &p_B, double box_size, double phi_prefactor) |
| template<typename T > | |
| static int | sgn (T val) |
| void | print_mesh (const std::string &file_name, const Mesh &pot, const double mod=-1-CHI_MIN) |
| void anonymous_namespace{test_chameleon.cpp}::get_grav_pot | ( | Mesh & | rho, |
| const FFTW_PLAN_TYPE & | p_F, | ||
| const FFTW_PLAN_TYPE & | p_B, | ||
| double | box_size, | ||
| double | phi_prefactor | ||
| ) |
Definition at line 73 of file test_chameleon.cpp.
References fftw_execute_dft_c2r(), fftw_execute_dft_r2c(), gen_pot_k(), Mesh::N, and pow().
Referenced by TEST_CASE().
| void anonymous_namespace{test_chameleon.cpp}::get_neighbor_gridindex | ( | std::vector< size_t > & | index_list, |
| size_t | i, | ||
| size_t | N | ||
| ) |
Definition at line 20 of file test_chameleon.cpp.
Referenced by anonymous_namespace{chameleon.cpp}::ChiSolver< T >::check_surr_dens(), anonymous_namespace{chameleon.cpp}::ChiSolver< T >::correct_sol(), and TEST_CASE().
| void anonymous_namespace{test_chameleon.cpp}::init_overdensity | ( | Sim_Param & | sim, |
| Mesh & | rho, | ||
| MultiGrid< 3, CHI_PREC_t > & | rho_grid | ||
| ) |
Definition at line 33 of file test_chameleon.cpp.
References mfunc_bm::iz, Mesh_base< T >::length, mean(), Test_Opt::N_grid, pow2(), Test_Opt::R_sphere, REQUIRE, Test_Opt::rho_b, Test_Opt::rho_sphere, Sim_Param::test_opt, and anonymous_namespace{chameleon.cpp}::transform_Mesh_to_MultiGrid().
Referenced by TEST_CASE().
| T anonymous_namespace{test_chameleon.cpp}::mean | ( | const std::vector< T > & | data | ) |
Definition at line 18 of file test_chameleon.cpp.
References Mesh_base< T >::data.
Referenced by init_overdensity().
| void anonymous_namespace{test_chameleon.cpp}::print_mesh | ( | const std::string & | file_name, |
| const Mesh & | pot, | ||
| const double | mod = -1 - CHI_MIN |
||
| ) |
Definition at line 87 of file test_chameleon.cpp.
References Mesh::N, pow2(), and sqrt().
Referenced by TEST_CASE().
|
static |
Definition at line 82 of file test_chameleon.cpp.
References growth_allz::T.