|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
Functions | |
| def | read_growth_lowz_benchmark_file () |
| def | read_growth_allz_benchmark_file () |
| def | compare_growth (z, gfac_bench, Omega_v, w0, wa) |
| def | test_growth_lowz_model_0 () |
| def | test_growth_lowz_model_1 () |
| def | test_growth_lowz_model_2 () |
| def | test_growth_lowz_model_3 () |
| def | test_growth_lowz_model_4 () |
| def | test_growth_allz_model_0 () |
| def | test_growth_allz_model_1 () |
| def | test_growth_allz_model_2 () |
| def | test_growth_allz_model_3 () |
| def | test_growth_allz_model_4 () |
| def | test_mgrowth () |
Variables | |
| int | GROWTH_TOLERANCE = 1 |
| float | Omega_c = 0.25 |
| float | Omega_b = 0.05 |
| int | Neff = 0 |
| int | m_nu = 0 |
| float | h = 0.7 |
| float | A_s = 2.1e-9 |
| float | n_s = 0.96 |
| Omega_v_vals = np.array([0.7, 0.7, 0.7, 0.65, 0.75]) | |
| w0_vals = np.array([-1.0, -0.9, -0.9, -0.9, -0.9]) | |
| wa_vals = np.array([0.0, 0.0, 0.1, 0.1, 0.1]) | |
| def ccl_test_growth.compare_growth | ( | z, | |
| gfac_bench, | |||
| Omega_v, | |||
| w0, | |||
| wa | |||
| ) |
Compare growth factor calculated by pyccl with the values in the benchmark file. This test only works if radiation is explicitly set to 0.
Definition at line 53 of file ccl_test_growth.py.
Referenced by test_growth_allz_model_0(), test_growth_allz_model_1(), test_growth_allz_model_2(), test_growth_allz_model_3(), test_growth_allz_model_4(), test_growth_lowz_model_0(), test_growth_lowz_model_1(), test_growth_lowz_model_2(), test_growth_lowz_model_3(), and test_growth_lowz_model_4().
| def ccl_test_growth.read_growth_allz_benchmark_file | ( | ) |
Read the file containing growth factor benchmarks for the whole redshift range.
Definition at line 36 of file ccl_test_growth.py.
References read_growth_lowz_benchmark_file().
| def ccl_test_growth.read_growth_lowz_benchmark_file | ( | ) |
Read the file containing growth factor benchmarks for the low redshifts.
Definition at line 23 of file ccl_test_growth.py.
Referenced by read_growth_allz_benchmark_file().
| def ccl_test_growth.test_growth_allz_model_0 | ( | ) |
Definition at line 95 of file ccl_test_growth.py.
References compare_growth().
| def ccl_test_growth.test_growth_allz_model_1 | ( | ) |
Definition at line 99 of file ccl_test_growth.py.
References compare_growth().
| def ccl_test_growth.test_growth_allz_model_2 | ( | ) |
Definition at line 103 of file ccl_test_growth.py.
References compare_growth().
| def ccl_test_growth.test_growth_allz_model_3 | ( | ) |
Definition at line 107 of file ccl_test_growth.py.
References compare_growth().
| def ccl_test_growth.test_growth_allz_model_4 | ( | ) |
Definition at line 111 of file ccl_test_growth.py.
References compare_growth().
| def ccl_test_growth.test_growth_lowz_model_0 | ( | ) |
Definition at line 74 of file ccl_test_growth.py.
References compare_growth().
| def ccl_test_growth.test_growth_lowz_model_1 | ( | ) |
Definition at line 78 of file ccl_test_growth.py.
References compare_growth().
| def ccl_test_growth.test_growth_lowz_model_2 | ( | ) |
Definition at line 82 of file ccl_test_growth.py.
References compare_growth().
| def ccl_test_growth.test_growth_lowz_model_3 | ( | ) |
Definition at line 86 of file ccl_test_growth.py.
References compare_growth().
| def ccl_test_growth.test_growth_lowz_model_4 | ( | ) |
Definition at line 90 of file ccl_test_growth.py.
References compare_growth().
| def ccl_test_growth.test_mgrowth | ( | ) |
Compare the modified growth function computed by CCL against the exact result for a particular modification of the growth rate.
Definition at line 115 of file ccl_test_growth.py.
References Catch::Generators.range().
| float ccl_test_growth.A_s = 2.1e-9 |
Definition at line 15 of file ccl_test_growth.py.
| int ccl_test_growth.GROWTH_TOLERANCE = 1 |
Definition at line 6 of file ccl_test_growth.py.
| float ccl_test_growth.h = 0.7 |
Definition at line 14 of file ccl_test_growth.py.
| int ccl_test_growth.m_nu = 0 |
Definition at line 13 of file ccl_test_growth.py.
| float ccl_test_growth.n_s = 0.96 |
Definition at line 16 of file ccl_test_growth.py.
| int ccl_test_growth.Neff = 0 |
Definition at line 12 of file ccl_test_growth.py.
| float ccl_test_growth.Omega_b = 0.05 |
Definition at line 11 of file ccl_test_growth.py.
| float ccl_test_growth.Omega_c = 0.25 |
Definition at line 10 of file ccl_test_growth.py.
| ccl_test_growth.Omega_v_vals = np.array([0.7, 0.7, 0.7, 0.65, 0.75]) |
Definition at line 19 of file ccl_test_growth.py.
| ccl_test_growth.w0_vals = np.array([-1.0, -0.9, -0.9, -0.9, -0.9]) |
Definition at line 20 of file ccl_test_growth.py.
| ccl_test_growth.wa_vals = np.array([0.0, 0.0, 0.1, 0.1, 0.1]) |
Definition at line 21 of file ccl_test_growth.py.