MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <neutrinos_lra.h>
Public Attributes | |
int | nk |
int | nk_allocated |
int | namax |
int | ia |
double | delta_nu_prefac |
int | delta_tot_init_done |
double ** | delta_tot |
double * | scalefact |
double * | delta_nu_init |
double * | delta_nu_last |
double * | wavenum |
const _omega_nu * | omnu |
double | Omeganonu |
double | light |
double | TimeTransfer |
Now we want to define a static object to store all previous delta_tot. This object needs a constructor, a few private data members, and a way to be read and written from disk. nk is fixed, delta_tot, scalefact and ia are updated in get_delta_nu_update
Definition at line 11 of file neutrinos_lra.h.
double* _delta_tot_table::delta_nu_init |
Pointer to array of length nk storing initial neutrino power spectrum
Definition at line 31 of file neutrinos_lra.h.
Referenced by delta_tot_first_init(), get_delta_nu(), init_neutrinos_lra(), petaio_read_neutrinos(), petaio_save_neutrinos(), and test_allocate_delta_tot_table().
double* _delta_tot_table::delta_nu_last |
Last-seen neutrino power spectrum
Definition at line 33 of file neutrinos_lra.h.
Referenced by delta_nu_from_power(), init_neutrinos_lra(), and powerspectrum_nu_save().
double _delta_tot_table::delta_nu_prefac |
Prefactor for use in get_delta_nu. Should be 3/2 Omega_m H^2 /c
Definition at line 23 of file neutrinos_lra.h.
Referenced by get_delta_nu(), and init_neutrinos_lra().
double** _delta_tot_table::delta_tot |
Pointer to nk arrays of length namax containing the total power spectrum.
Definition at line 27 of file neutrinos_lra.h.
Referenced by delta_nu_from_power(), delta_tot_first_init(), get_delta_nu(), init_neutrinos_lra(), petaio_read_neutrinos(), petaio_save_neutrinos(), test_allocate_delta_tot_table(), and update_delta_tot().
int _delta_tot_table::delta_tot_init_done |
Set to unity once the init routine has run.
Definition at line 25 of file neutrinos_lra.h.
Referenced by delta_nu_from_power().
int _delta_tot_table::ia |
Number of already "recorded" time steps, i.e. scalefact[0...ia-1] is recorded. Current time corresponds to index ia (but is only recorded if sufficiently far from previous time). Caution: ia here is different from Na in get_delta_nu (Na = ia+1).
Definition at line 21 of file neutrinos_lra.h.
Referenced by delta_nu_from_power(), delta_tot_first_init(), get_delta_nu(), init_neutrinos_lra(), petaio_read_neutrinos(), petaio_save_neutrinos(), test_allocate_delta_tot_table(), and update_delta_tot().
double _delta_tot_table::light |
Light speed in internal units. LIGHTCGS is lightspeed in cm/s
Definition at line 41 of file neutrinos_lra.h.
Referenced by get_delta_nu(), and init_neutrinos_lra().
int _delta_tot_table::namax |
Maximum number of redshifts to store. Redshifts are stored every delta a = 0.01
Definition at line 17 of file neutrinos_lra.h.
Referenced by init_neutrinos_lra(), petaio_read_neutrinos(), and test_allocate_delta_tot_table().
int _delta_tot_table::nk |
Number of actually non-zero k values stored in each power spectrum
Definition at line 13 of file neutrinos_lra.h.
Referenced by delta_nu_from_power(), delta_tot_first_init(), get_delta_nu(), get_delta_nu_combined(), init_neutrinos_lra(), petaio_read_neutrinos(), petaio_save_neutrinos(), and update_delta_tot().
int _delta_tot_table::nk_allocated |
Size of arrays allocated to store power spectra
Definition at line 15 of file neutrinos_lra.h.
Referenced by init_neutrinos_lra(), petaio_read_neutrinos(), and test_allocate_delta_tot_table().
double _delta_tot_table::Omeganonu |
Matter density excluding neutrinos
Definition at line 39 of file neutrinos_lra.h.
Referenced by delta_nu_from_power(), delta_tot_first_init(), init_neutrinos_lra(), and update_delta_tot().
const _omega_nu* _delta_tot_table::omnu |
Pointer to a structure for computing omega_nu
Definition at line 37 of file neutrinos_lra.h.
Referenced by delta_tot_first_init(), get_delta_nu(), get_delta_nu_combined(), init_neutrinos_lra(), and update_delta_tot().
double* _delta_tot_table::scalefact |
Array of length namax containing scale factors at which the power spectrum is stored
Definition at line 29 of file neutrinos_lra.h.
Referenced by delta_nu_from_power(), delta_tot_first_init(), get_delta_nu(), init_neutrinos_lra(), petaio_read_neutrinos(), petaio_save_neutrinos(), test_allocate_delta_tot_table(), and update_delta_tot().
double _delta_tot_table::TimeTransfer |
The time at which the simulation starts
Definition at line 43 of file neutrinos_lra.h.
Referenced by delta_tot_first_init(), get_delta_nu(), and init_neutrinos_lra().
double* _delta_tot_table::wavenum |
Pointer to array storing the effective wavenumbers for the above power spectra
Definition at line 35 of file neutrinos_lra.h.
Referenced by delta_nu_from_power(), delta_tot_first_init(), get_delta_nu(), init_neutrinos_lra(), petaio_read_neutrinos(), and petaio_save_neutrinos().