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

Go to the source code of this file.
Macros | |
| #define | _NDIM 3 |
Typedefs | |
| typedef double | DType |
Functions | |
| void | solve_with_fft (Grid< 3, double > &drho, Grid< 3, double > &sol) |
| void | assign_to_grid (MultiGrid< 3, DType > &f, std::string filename, std::string store_grid_file) |
| void | compute_v (Grid< 3, DType > phi, DType boxsize) |
| bool | exists (std::string filename) |
| int | main () |
Variables | |
| DType | rhomin_in_grad = 1.0 |
| DType | rhomax_in_grad = 1.0 |
| DType | growthfachubble = pow(0.26, 0.55) |
| #define _NDIM 3 |
Definition at line 19 of file continuity.cpp.
Referenced by compute_v().
Definition at line 24 of file continuity.cpp.
| void assign_to_grid | ( | MultiGrid< 3, DType > & | f, |
| std::string | filename, | ||
| std::string | store_grid_file | ||
| ) |
Definition at line 44 of file continuity.cpp.
References Catch::cout(), MultiGrid< NDIM, T >::get_grid(), MultiGrid< NDIM, T >::get_N(), MultiGrid< NDIM, T >::get_Ntot(), MultiGrid< NDIM, T >::get_y(), mfunc_bm::iz, max(), anonymous_namespace{chameleon.cpp}::min(), and sqrt().
Referenced by main().
Definition at line 112 of file continuity.cpp.
References _NDIM, Catch::cout(), Grid< NDIM, T >::get_N(), Grid< NDIM, T >::get_Ntot(), Grid< NDIM, T >::grid_index_3d(), Grid< NDIM, T >::index_list(), and sqrt().
Referenced by main().
| bool exists | ( | std::string | filename | ) |
Definition at line 195 of file continuity.cpp.
Referenced by main(), and std_out_dir().
| int main | ( | void | ) |
Definition at line 200 of file continuity.cpp.
References MultiGridSolver< NDIM, T >::add_external_grid(), assign_to_grid(), compute_v(), Catch::cout(), exists(), MultiGrid< NDIM, T >::get_grid(), MultiGridSolver< NDIM, T >::get_grid(), Grid< NDIM, T >::get_N(), growthfachubble, Grid< NDIM, T >::read_from_file(), MultiGrid< NDIM, T >::restrict_down_all(), rhomax_in_grad, rhomin_in_grad, Grid< NDIM, T >::rms_norm(), MultiGridSolver< NDIM, T >::set_epsilon(), ContinuitySolver< NDIM, T >::set_growthfachubble(), MultiGridSolver< NDIM, T >::set_initial_guess(), MultiGridSolver< NDIM, T >::set_ngs_sweeps(), ContinuitySolver< NDIM, T >::set_rhomax(), ContinuitySolver< NDIM, T >::set_rhomin(), MultiGridSolver< NDIM, T >::solve(), solve_with_fft(), and sqrt().
Definition at line 145 of file continuity.cpp.
References Catch::cout(), Grid< NDIM, T >::get_N(), Grid< NDIM, T >::get_Ntot(), and growthfachubble.
Referenced by main().
Definition at line 31 of file continuity.cpp.
Referenced by main(), ContinuitySolver< NDIM, T >::set_growthfachubble(), and solve_with_fft().
| DType rhomax_in_grad = 1.0 |
Definition at line 30 of file continuity.cpp.
Referenced by main().
| DType rhomin_in_grad = 1.0 |
Definition at line 29 of file continuity.cpp.
Referenced by main().