MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
Go to the source code of this file.
Classes | |
struct | _delta_tot_table |
Typedefs | |
typedef struct _delta_tot_table | _delta_tot_table |
Functions | |
void | init_neutrinos_lra (const int nk_in, const double TimeTransfer, const double TimeMax, const double Omega0, const _omega_nu *const omnu, const double UnitTime_in_s, const double UnitLength_in_cm) |
void | delta_nu_from_power (struct _powerspectrum *PowerSpectrum, Cosmology *CP, const double Time, const double TimeIC) |
void | petaio_save_neutrinos (BigFile *bf, int ThisTask) |
void | petaio_read_neutrinos (BigFile *bf, int ThisTask) |
void | petaio_read_icnutransfer (BigFile *bf, int ThisTask) |
void | powerspectrum_nu_save (struct _powerspectrum *PowerSpectrum, const char *OutputDir, const char *filename, const double Time) |
typedef struct _delta_tot_table _delta_tot_table |
Definition at line 1 of file neutrinos_lra.h.
void delta_nu_from_power | ( | struct _powerspectrum * | PowerSpectrum, |
Cosmology * | CP, | ||
const double | Time, | ||
const double | TimeIC | ||
) |
Definition at line 134 of file neutrinos_lra.c.
References CP, _delta_tot_table::delta_nu_last, _powerspectrum::delta_nu_ratio, _delta_tot_table::delta_tot, delta_tot_first_init(), _delta_tot_table::delta_tot_init_done, delta_tot_table, endrun(), FLOAT_ACC, get_delta_nu_combined(), get_omega_nu(), get_omega_nu_nopart(), _omega_nu::hybnu, _delta_tot_table::ia, _powerspectrum::kk, _transfer_init_table::logk, _powerspectrum::logknu, message(), myfree, mymalloc, mymalloc2, _delta_tot_table::nk, _powerspectrum::nonzero, _powerspectrum::nu_prefac, _delta_tot_table::Omeganonu, Cosmology::ONu, particle_nu_fraction(), _powerspectrum::Power, _delta_tot_table::scalefact, update_delta_tot(), and _delta_tot_table::wavenum.
Referenced by compute_neutrino_power().
void init_neutrinos_lra | ( | const int | nk_in, |
const double | TimeTransfer, | ||
const double | TimeMax, | ||
const double | Omega0, | ||
const _omega_nu *const | omnu, | ||
const double | UnitTime_in_s, | ||
const double | UnitLength_in_cm | ||
) |
Allocates memory for delta_tot_table.
nk_in | Number of bins stored in each power spectrum. |
TimeTransfer | Scale factor of the transfer functions. |
TimeMax | Final scale factor up to which we will need memory. |
Omega0 | Matter density at z=0. |
omnu | Pointer to structure containing pre-computed tables for evaluating neutrino matter densities. |
UnitTime_in_s | Time unit of the simulation in s. |
UnitLength_in_cm | Length unit of the simulation in cm |
Definition at line 450 of file neutrinos_lra.c.
References _delta_tot_table::delta_nu_init, _delta_tot_table::delta_nu_last, _delta_tot_table::delta_nu_prefac, _delta_tot_table::delta_tot, delta_tot_table, get_omega_nu(), HUBBLE, _delta_tot_table::ia, _delta_tot_table::light, LIGHTCGS, mymalloc, _delta_tot_table::namax, _delta_tot_table::nk, _delta_tot_table::nk_allocated, _delta_tot_table::Omeganonu, _delta_tot_table::omnu, _delta_tot_table::scalefact, _delta_tot_table::TimeTransfer, UnitLength_in_cm, and _delta_tot_table::wavenum.
Referenced by begrun(), and test_allocate_delta_tot_table().
void petaio_read_icnutransfer | ( | BigFile * | bf, |
int | ThisTask | ||
) |
Definition at line 317 of file neutrinos_lra.c.
References endrun(), _transfer_init_table::logk, message(), myfree, mymalloc, mymalloc2, _transfer_init_table::NPowerTable, petaio_read_block(), t_init, _transfer_init_table::T_nu, and ThisTask.
Referenced by petaio_read_snapshot().
void petaio_read_neutrinos | ( | BigFile * | bf, |
int | ThisTask | ||
) |
Definition at line 376 of file neutrinos_lra.c.
References _delta_tot_table::delta_nu_init, _delta_tot_table::delta_tot, delta_tot_table, endrun(), _delta_tot_table::ia, myfree, mymalloc, _delta_tot_table::namax, _delta_tot_table::nk, _delta_tot_table::nk_allocated, petaio_read_block(), _delta_tot_table::scalefact, ThisTask, and _delta_tot_table::wavenum.
Referenced by petaio_read_snapshot().
void petaio_save_neutrinos | ( | BigFile * | bf, |
int | ThisTask | ||
) |
Definition at line 265 of file neutrinos_lra.c.
References _delta_tot_table::delta_nu_init, _delta_tot_table::delta_tot, delta_tot_table, endrun(), _delta_tot_table::ia, myfree, mymalloc, _delta_tot_table::nk, petaio_save_block(), _delta_tot_table::scalefact, ThisTask, and _delta_tot_table::wavenum.
Referenced by petaio_save_snapshot().
void powerspectrum_nu_save | ( | struct _powerspectrum * | PowerSpectrum, |
const char * | OutputDir, | ||
const char * | filename, | ||
const double | Time | ||
) |
Definition at line 240 of file neutrinos_lra.c.
References _delta_tot_table::delta_nu_last, delta_tot_table, fastpm_strdup_printf(), _powerspectrum::kk, myfree, _powerspectrum::Nmodes, _powerspectrum::nonzero, _powerspectrum::nu_acc, _powerspectrum::nu_spline, and ThisTask.
Referenced by gravpm_force().