|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
: creates a mesh of N*N*(N+2) cells More...
#include <class_mesh.hpp>


Public Member Functions | |
| Mesh (size_t n) | |
| FFTW_COMPLEX_TYPE * | complex () |
| get fftw_complex pointer to data More... | |
| const FFTW_COMPLEX_TYPE * | complex () const |
| get const fftw_complex pointer to data More... | |
| void | reset_part (bool part) |
| void | reset_re () |
| void | reset_im () |
| template<typename U > | |
| double & | operator() (Vec_3D< U > pos) |
| template<typename U > | |
| const double & | operator() (Vec_3D< U > pos) const |
Public Member Functions inherited from Mesh_base< double > | |
| Mesh_base (size_t n1, size_t n2, size_t n3) | |
| double * | real () |
| const double * | real () const |
| void | assign (doubleval) |
| double & | operator[] (size_t i) |
| const double & | operator[] (size_t i) const |
| double & | operator() (size_t i, size_t j, size_t k) |
| const double & | operator() (size_t i, size_t j, size_t k) const |
| double & | operator() (size_t i, size_t j) |
| const double & | operator() (size_t i, size_t j) const |
| double & | operator() (Vec_3D< U > pos) |
| const double & | operator() (Vec_3D< U > pos) const |
| Mesh_base & | operator+= (const double &rhs) |
| Mesh_base & | operator-= (const double &rhs) |
| Mesh_base & | operator*= (const double &rhs) |
| Mesh_base & | operator/= (const double &rhs) |
Public Attributes | |
| size_t | N |
Public Attributes inherited from Mesh_base< double > | |
| size_t | N1 |
| size_t | N2 |
| size_t | N3 |
| size_t | length |
| std::vector< double > | data |
: creates a mesh of N*N*(N+2) cells
Definition at line 95 of file class_mesh.hpp.
|
inline |
Definition at line 99 of file class_mesh.hpp.
|
inline |
get fftw_complex pointer to data
Definition at line 111 of file class_mesh.hpp.
References Mesh_base< T >::data, and FFTW_COMPLEX_TYPE.
Referenced by fftw_execute_dft_c2r(), fftw_execute_dft_r2c(), anonymous_namespace{chameleon.cpp}::ChiSolver< T >::set_linear_recursively(), and TEST_CASE().
|
inline |
get const fftw_complex pointer to data
Definition at line 118 of file class_mesh.hpp.
References Mesh_base< T >::data, and FFTW_COMPLEX_TYPE.
Definition at line 134 of file class_mesh.hpp.
References Mesh_base< T >::data, get_per(), Mesh_base< T >::N2, and Mesh_base< T >::N3.
Definition at line 140 of file class_mesh.hpp.
References Mesh_base< T >::data, get_per(), Mesh_base< T >::N2, and Mesh_base< T >::N3.
|
inline |
Definition at line 129 of file class_mesh.hpp.
|
inline |
Definition at line 120 of file class_mesh.hpp.
References Mesh_base< T >::data, and Mesh_base< T >::length.
|
inline |
Definition at line 128 of file class_mesh.hpp.
| size_t Mesh::N |
Definition at line 102 of file class_mesh.hpp.
Referenced by assign_from(), assign_to(), anonymous_namespace{adhesion.cpp}::convolution_y1(), anonymous_namespace{adhesion.cpp}::convolution_y2(), anonymous_namespace{adhesion.cpp}::convolution_y3(), fftw_execute_dft_r2c(), gen_dens_binned(), anonymous_namespace{adhesion.cpp}::gen_expot(), gen_gauss_white_noise(), gen_pot_k(), gen_rho_w_pow_k(), anonymous_namespace{chameleon.cpp}::ChiSolver< T >::get_chi_k(), anonymous_namespace{test_chameleon.cpp}::get_grav_pot(), get_rho_from_par(), anonymous_namespace{test_chameleon.cpp}::print_mesh(), pwr_spec_k(), pwr_spec_k_init(), anonymous_namespace{chameleon.cpp}::ChiSolver< T >::set_linear_sol_at_level(), TEST_CASE(), anonymous_namespace{chameleon.cpp}::transform_Grid_to_Mesh(), and anonymous_namespace{chameleon.cpp}::transform_Mesh_to_Grid().