|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
: linear interpolation of data [k, P(k)] within 'useful' range fit to primordial P_i(k) below the 'useful' range fit to Padé approximant R [0/3] above the 'useful' range More...
#include <core_power.h>


Public Member Functions | |
| Extrap_Pk (const Data_Vec< T, N > &data, const Sim_Param &sim) | |
| Extrap_Pk (const Data_Vec< T, N > &data, const Sim_Param &sim, const size_t m_l, const size_t n_u) | |
| Extrap_Pk (const Data_Vec< T, N > &data, const Sim_Param &sim, const size_t m_l, const size_t n_l, const size_t m_u, const size_t n_u) | |
| double | operator() (double k) const |
| void | fit_lin (const Data_Vec< T, N > &data, const size_t m, const size_t n, double &A) |
| void | fit_power_law (const Data_Vec< T, N > &data, const size_t m, const size_t n, double &A, double &n_s) |
Public Member Functions inherited from Interp_obj | |
| Interp_obj () | |
| ~Interp_obj () | |
| double | operator() (double x) const |
| template<typename T , size_t N> | |
| void | init (const Data_Vec< T, N > &data) |
Public Attributes | |
| double | A_low |
| amplitude of linear power in lower range More... | |
| const Cosmo_Param & | cosmo |
| double | A_up |
| double | n_s |
| scale-free power spectrum in upper range More... | |
| T | k_min |
| T | k_max |
| interpolation range More... | |
Public Attributes inherited from Interp_obj | |
| double | x_min |
| double | x_max |
: linear interpolation of data [k, P(k)] within 'useful' range fit to primordial P_i(k) below the 'useful' range fit to Padé approximant R [0/3] above the 'useful' range
Steffen interpolation of data [k, P(k)] within range k_min, k_max fit to primordial P_i(k) below this range, fit A*k^ns above
Definition at line 122 of file core_power.h.
| Extrap_Pk< T, N >::Extrap_Pk | ( | const Data_Vec< T, N > & | data, |
| const Sim_Param & | sim | ||
| ) |
Definition at line 548 of file core_power.cpp.
| Extrap_Pk< T, N >::Extrap_Pk | ( | const Data_Vec< T, N > & | data, |
| const Sim_Param & | sim, | ||
| const size_t | m_l, | ||
| const size_t | n_u | ||
| ) |
Definition at line 540 of file core_power.cpp.
| Extrap_Pk< T, N >::Extrap_Pk | ( | const Data_Vec< T, N > & | data, |
| const Sim_Param & | sim, | ||
| const size_t | m_l, | ||
| const size_t | n_l, | ||
| const size_t | m_u, | ||
| const size_t | n_u | ||
| ) |
Definition at line 523 of file core_power.cpp.
References Extrap_Pk< T, N >::A_low, Extrap_Pk< T, N >::A_up, Extrap_Pk< T, N >::fit_lin(), Extrap_Pk< T, N >::fit_power_law(), Interp_obj::init(), Extrap_Pk< T, N >::k_max, Extrap_Pk< T, N >::k_min, and Extrap_Pk< T, N >::n_s.
| void Extrap_Pk< T, N >::fit_lin | ( | const Data_Vec< T, N > & | data, |
| const size_t | m, | ||
| const size_t | n, | ||
| double & | A | ||
| ) |
Definition at line 560 of file core_power.cpp.
References Extrap_Pk< T, N >::cosmo, Cosmo_Param::k2_G, lin_pow_spec(), m, pow2(), sqrt(), Cosmo_Param::truncated_pk, truncation_fce(), and w.
Referenced by Extrap_Pk< T, N >::Extrap_Pk().
| void Extrap_Pk< T, N >::fit_power_law | ( | const Data_Vec< T, N > & | data, |
| const size_t | m, | ||
| const size_t | n, | ||
| double & | A, | ||
| double & | n_s | ||
| ) |
Definition at line 606 of file core_power.cpp.
References m, Extrap_Pk< T, N >::n_s, pow2(), sqrt(), and w.
Referenced by Extrap_Pk< T, N >::Extrap_Pk().
Definition at line 635 of file core_power.cpp.
References Extrap_Pk< T, N >::A_low, Extrap_Pk< T, N >::A_up, Extrap_Pk< T, N >::cosmo, Extrap_Pk< T, N >::k_max, Extrap_Pk< T, N >::k_min, lin_pow_spec(), Extrap_Pk< T, N >::n_s, Interp_obj::operator()(), and pow().
Referenced by Extrap_Pk_Nl< T, N >::operator()().
amplitude of linear power in lower range
Definition at line 134 of file core_power.h.
Referenced by Extrap_Pk< T, N >::Extrap_Pk(), and Extrap_Pk< T, N >::operator()().
Definition at line 136 of file core_power.h.
Referenced by Extrap_Pk< T, N >::Extrap_Pk(), and Extrap_Pk< T, N >::operator()().
| const Cosmo_Param& Extrap_Pk< T, N >::cosmo |
Definition at line 135 of file core_power.h.
Referenced by Extrap_Pk< T, N >::fit_lin(), Extrap_Pk< T, N >::operator()(), and Extrap_Pk_Nl< T, N >::operator()().
| T Extrap_Pk< T, N >::k_max |
interpolation range
Definition at line 137 of file core_power.h.
Referenced by Extrap_Pk< T, N >::Extrap_Pk(), and Extrap_Pk< T, N >::operator()().
| T Extrap_Pk< T, N >::k_min |
Definition at line 137 of file core_power.h.
Referenced by Extrap_Pk< T, N >::Extrap_Pk(), and Extrap_Pk< T, N >::operator()().
scale-free power spectrum in upper range
Definition at line 136 of file core_power.h.
Referenced by Extrap_Pk< T, N >::Extrap_Pk(), Extrap_Pk< T, N >::fit_power_law(), and Extrap_Pk< T, N >::operator()().