MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include "cosmology.h"
Go to the source code of this file.
Classes | |
struct | UVBG |
struct | cooling_units |
Functions | |
void | init_cooling (const char *TreeCoolFile, const char *MetalCoolFile, char *reion_hist_file, struct cooling_units cu, Cosmology *CP) |
void | init_uvf_table (const char *UVFluctuationFile, const int UVFlucLen, const double BoxSize, const double UnitLength_in_cm) |
double | GetCoolingTime (double redshift, double u_old, double rho, struct UVBG *uvbg, double *ne_guess, double Z) |
double | DoCooling (double redshift, double u_old, double rho, double dt, struct UVBG *uvbg, double *ne_guess, double Z, double MinEgySpec, int isHeIIIionized) |
struct UVBG | get_global_UVBG (double redshift) |
struct UVBG | get_local_UVBG (double redshift, const struct UVBG *const GlobalUVBG, const double *const Pos, const double *const PosOffset) |
double | get_temp (double density, double ienergy, double helium, const struct UVBG *uvbg, double *ne_init) |
double | GetNeutralFraction (double u_old, double rho, const struct UVBG *uvbg, double ne) |
double | GetHeliumIonFraction (int ion, double u_old, double rho, const struct UVBG *uvbg, double ne_init) |
double DoCooling | ( | double | redshift, |
double | u_old, | ||
double | rho, | ||
double | dt, | ||
struct UVBG * | uvbg, | ||
double * | ne_guess, | ||
double | Z, | ||
double | MinEgySpec, | ||
int | isHeIIIionized | ||
) |
Definition at line 71 of file cooling.c.
References cooling_units::CoolingOn, coolunits, cooling_units::density_in_phys_cgs, endrun(), get_lambdanet(), MAXITER, message(), PROTONMASS, cooling_units::tt_in_s, and cooling_units::uu_in_cgs.
Referenced by cooling_direct(), and test_DoCooling().
struct UVBG get_global_UVBG | ( | double | redshift | ) |
Definition at line 244 of file cooling_rates.c.
References CoolingParams, cooling_params::fBar, UVBG::gJH0, GrayOpac, GrayOpac_ydata, GrayOpac_zz, and NGRAY.
Referenced by cooling_and_starformation(), get_helium_neutral_fraction_sfreff(), get_neutral_fraction_sfreff(), sfreff_on_eeqos(), test_DoCooling(), test_heatingcooling_rate(), test_rate_network(), and test_uvbg_loader().
struct UVBG get_local_UVBG | ( | double | redshift, |
const struct UVBG *const | GlobalUVBG, | ||
const double *const | Pos, | ||
const double *const | PosOffset | ||
) |
Definition at line 91 of file cooling_uvfluc.c.
References CM_PER_MPC, endrun(), interp_init(), interp_init_dim(), message(), read_big_array(), UnitLength_in_cm, and UVF.
Referenced by cooling_direct(), get_helium_neutral_fraction_sfreff(), get_neutral_fraction_sfreff(), and get_sfr_eeqos().
double get_temp | ( | double | density, |
double | ienergy, | ||
double | helium, | ||
const struct UVBG * | uvbg, | ||
double * | ne_init | ||
) |
Definition at line 1172 of file cooling_rates.c.
References density(), get_equilib_ne(), and get_temp_internal().
Referenced by test_rate_network().
double GetCoolingTime | ( | double | redshift, |
double | u_old, | ||
double | rho, | ||
struct UVBG * | uvbg, | ||
double * | ne_guess, | ||
double | Z | ||
) |
Definition at line 157 of file cooling.c.
References cooling_units::CoolingOn, coolunits, cooling_units::density_in_phys_cgs, get_heatingcooling_rate(), HYDROGEN_MASSFRAC, PROTONMASS, cooling_units::tt_in_s, and cooling_units::uu_in_cgs.
Referenced by cooling_relaxed(), get_egyeff(), init_cooling_and_star_formation(), and test_DoCooling().
double GetHeliumIonFraction | ( | int | ion, |
double | u_old, | ||
double | rho, | ||
const struct UVBG * | uvbg, | ||
double | ne_init | ||
) |
Definition at line 192 of file cooling.c.
References coolunits, cooling_units::density_in_phys_cgs, get_helium_ion_phys_cgs(), HYDROGEN_MASSFRAC, PROTONMASS, and cooling_units::uu_in_cgs.
Referenced by get_helium_neutral_fraction_sfreff().
double GetNeutralFraction | ( | double | u_old, |
double | rho, | ||
const struct UVBG * | uvbg, | ||
double | ne | ||
) |
Definition at line 181 of file cooling.c.
References coolunits, cooling_units::density_in_phys_cgs, get_neutral_fraction_phys_cgs(), HYDROGEN_MASSFRAC, PROTONMASS, and cooling_units::uu_in_cgs.
Referenced by get_neutral_fraction_sfreff().
void init_cooling | ( | const char * | TreeCoolFile, |
const char * | MetalCoolFile, | ||
char * | reion_hist_file, | ||
struct cooling_units | cu, | ||
Cosmology * | CP | ||
) |
Definition at line 36 of file cooling.c.
References cooling_units::CoolingOn, coolunits, CP, init_cooling_rates(), and init_qso_lightup().
Referenced by init_cooling_and_star_formation(), and test_DoCooling().
void init_uvf_table | ( | const char * | UVFluctuationFile, |
const int | UVFlucLen, | ||
const double | BoxSize, | ||
const double | UnitLength_in_cm | ||
) |
Definition at line 91 of file cooling_uvfluc.c.
Referenced by init_cooling_and_star_formation().