MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
Go to the source code of this file.
Classes | |
struct | cooling_params |
Enumerations | |
enum | RecombType { Cen92 = 0 , Verner96 = 1 , Badnell06 = 2 } |
enum | CoolingType { KWH92 = 0 , Enzo2Nyx = 1 , Sherwood =2 } |
enum | CoolProcess { RECOMB , COLLIS , FREEFREE , HEAT } |
Functions | |
void | set_cooling_params (ParameterSet *ps) |
void | set_coolpar (struct cooling_params cp) |
void | init_cooling_rates (const char *TreeCoolFile, const char *MetalCoolFile, Cosmology *CP) |
void | InitMetalCooling (const char *MetalCoolFile) |
double | TableMetalCoolingRate (double redshift, double temp, double nHcgs) |
double | get_equilib_ne (double density, double ienergy, double helium, double *logt, const struct UVBG *uvbg, double ne_init) |
double | get_ne_by_nh (double density, double ienergy, double helium, const struct UVBG *uvbg, double ne_init) |
double | get_heatingcooling_rate (double density, double ienergy, double helium, double redshift, double metallicity, const struct UVBG *uvbg, double *ne_equilib) |
double | get_individual_cooling (enum CoolProcess process, double density, double ienergy, double helium, const struct UVBG *uvbg, double *ne_equilib) |
double | get_compton_cooling (double density, double ienergy, double helium, double redshift, double nebynh) |
double | get_neutral_fraction_phys_cgs (double density, double ienergy, double helium, const struct UVBG *uvbg, double *ne_init) |
double | get_helium_ion_phys_cgs (int ion, double density, double ienergy, double helium, const struct UVBG *uvbg, double ne_init) |
enum CoolingType |
enum CoolProcess |
enum RecombType |
Enumerator | |
---|---|
Cen92 | |
Verner96 | |
Badnell06 |
Definition at line 10 of file cooling_rates.h.
double get_compton_cooling | ( | double | density, |
double | ienergy, | ||
double | helium, | ||
double | redshift, | ||
double | nebynh | ||
) |
Definition at line 1034 of file cooling_rates.c.
References cool_InverseCompton(), density(), get_temp_internal(), and PROTONMASS.
double get_equilib_ne | ( | double | density, |
double | ienergy, | ||
double | helium, | ||
double * | logt, | ||
const struct UVBG * | uvbg, | ||
double | ne_init | ||
) |
Definition at line 683 of file cooling_rates.c.
References density(), and scipy_optimize_fixed_point().
Referenced by get_heatingcooling_rate(), get_helium_ion_phys_cgs(), get_individual_cooling(), get_ne_by_nh(), get_neutral_fraction_phys_cgs(), get_temp(), and test_rate_network().
double get_heatingcooling_rate | ( | double | density, |
double | ienergy, | ||
double | helium, | ||
double | redshift, | ||
double | metallicity, | ||
const struct UVBG * | uvbg, | ||
double * | ne_equilib | ||
) |
Definition at line 1104 of file cooling_rates.c.
References cool_collisH0, cool_collisHe0, cool_collisHeP, cool_CollisionalH0(), cool_CollisionalHe0(), cool_CollisionalHeP(), cool_FreeFree(), cool_freefree1, cool_FreeFree1(), cool_he_reion_factor(), cool_InverseCompton(), cool_recombHeP, cool_RecombHeP(), cool_recombHePP, cool_RecombHePP(), cool_recombHp, cool_RecombHp(), cooling_params::cooling, CoolingParams, density(), Enzo2Nyx, UVBG::epsH0, UVBG::epsHe0, UVBG::epsHep, get_equilib_ne(), get_interpolated_recomb(), get_temp_internal(), nH0_internal(), he_ions::nHe0, nHe_internal(), he_ions::nHep, he_ions::nHepp, nHp_internal(), PROTONMASS, self_shield_corr(), UVBG::self_shield_dens, and TableMetalCoolingRate().
Referenced by get_lambdanet(), GetCoolingTime(), and test_heatingcooling_rate().
double get_helium_ion_phys_cgs | ( | int | ion, |
double | density, | ||
double | ienergy, | ||
double | helium, | ||
const struct UVBG * | uvbg, | ||
double | ne_init | ||
) |
Definition at line 1202 of file cooling_rates.c.
References density(), get_equilib_ne(), he_ions::nHe0, nHe_internal(), he_ions::nHep, he_ions::nHepp, self_shield_corr(), and UVBG::self_shield_dens.
Referenced by GetHeliumIonFraction().
double get_individual_cooling | ( | enum CoolProcess | process, |
double | density, | ||
double | ienergy, | ||
double | helium, | ||
const struct UVBG * | uvbg, | ||
double * | ne_equilib | ||
) |
Definition at line 1046 of file cooling_rates.c.
References COLLIS, cool_collisH0, cool_collisHe0, cool_collisHeP, cool_CollisionalH0(), cool_CollisionalHe0(), cool_CollisionalHeP(), cool_FreeFree(), cool_freefree1, cool_FreeFree1(), cool_recombHeP, cool_RecombHeP(), cool_recombHePP, cool_RecombHePP(), cool_recombHp, cool_RecombHp(), cooling_params::cooling, CoolingParams, density(), Enzo2Nyx, UVBG::epsH0, UVBG::epsHe0, UVBG::epsHep, FREEFREE, get_equilib_ne(), get_interpolated_recomb(), get_temp_internal(), HEAT, nH0_internal(), he_ions::nHe0, nHe_internal(), he_ions::nHep, he_ions::nHepp, nHp_internal(), PROTONMASS, RECOMB, self_shield_corr(), and UVBG::self_shield_dens.
double get_ne_by_nh | ( | double | density, |
double | ienergy, | ||
double | helium, | ||
const struct UVBG * | uvbg, | ||
double | ne_init | ||
) |
Definition at line 696 of file cooling_rates.c.
References density(), and get_equilib_ne().
double get_neutral_fraction_phys_cgs | ( | double | density, |
double | ienergy, | ||
double | helium, | ||
const struct UVBG * | uvbg, | ||
double * | ne_init | ||
) |
Definition at line 1186 of file cooling_rates.c.
References density(), get_equilib_ne(), nH0_internal(), self_shield_corr(), and UVBG::self_shield_dens.
Referenced by GetNeutralFraction(), and test_rate_network().
void init_cooling_rates | ( | const char * | TreeCoolFile, |
const char * | MetalCoolFile, | ||
Cosmology * | CP | ||
) |
Definition at line 970 of file cooling_rates.c.
References cool_collisH0, cool_collisHe0, cool_collisHeP, cool_CollisionalH0(), cool_CollisionalHe0(), cool_CollisionalHeP(), cool_FreeFree(), cool_freefree1, cool_recombHeP, cool_RecombHeP(), cool_recombHePP, cool_RecombHePP(), cool_recombHp, cool_RecombHp(), CoolingParams, CP, cooling_params::fBar, GRAVITY, GrayOpac, GrayOpac_ydata, GrayOpac_zz, HUBBLE, Cosmology::HubbleParam, InitMetalCooling(), load_treecool(), message(), mymalloc, NGRAY, NRECOMBTAB, Cosmology::OmegaBaryon, Cosmology::OmegaCDM, cooling_params::PhotoIonizationOn, rec_alphaHep, rec_alphaHepp, rec_alphaHp, rec_GammaH0, rec_GammaHe0, rec_GammaHep, recomb_alphaHepd(), recomb_alphaHepp(), recomb_alphaHp(), recomb_GammaeH0(), recomb_GammaeHe0(), recomb_GammaeHep(), RECOMBTMAX, RECOMBTMIN, cooling_params::rho_crit_baryon, temp_tab, and tt.
Referenced by init_cooling(), test_heatingcooling_rate(), test_rate_network(), test_recomb_rates(), and test_uvbg_loader().
void InitMetalCooling | ( | const char * | MetalCoolFile | ) |
Definition at line 193 of file cooling_uvfluc.c.
References endrun(), interp_init(), interp_init_dim(), MetalCool, myfree, and read_big_array().
Referenced by init_cooling_rates().
void set_cooling_params | ( | ParameterSet * | ps | ) |
Definition at line 942 of file cooling_rates.c.
References cooling_params::CMBTemperature, cooling_params::cooling, CoolingParams, cooling_params::HeliumHeatAmp, cooling_params::HeliumHeatExp, cooling_params::HeliumHeatOn, cooling_params::HeliumHeatThresh, cooling_params::HydrogenHeatAmp, cooling_params::MinGasTemp, param_get_double(), param_get_enum(), param_get_int(), cooling_params::PhotoIonizationOn, cooling_params::PhotoIonizeFactor, cooling_params::recomb, cooling_params::SelfShieldingOn, ThisTask, and cooling_params::UVRedshiftThreshold.
Referenced by read_parameter_file().
void set_coolpar | ( | struct cooling_params | cp | ) |
Definition at line 936 of file cooling_rates.c.
References CoolingParams.
Referenced by test_DoCooling(), test_heatingcooling_rate(), test_rate_network(), test_recomb_rates(), and test_uvbg_loader().
double TableMetalCoolingRate | ( | double | redshift, |
double | temp, | ||
double | nHcgs | ||
) |
Definition at line 235 of file cooling_uvfluc.c.
References interp_eval(), and MetalCool.
Referenced by get_heatingcooling_rate().