MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <bigfile.h>
#include "utils/endrun.h"
#include "utils/mymalloc.h"
#include "utils/interp.h"
#include "physconst.h"
#include "cooling.h"
#include "cooling_rates.h"
#include "cooling_qso_lightup.h"
#include "cosmology.h"
Go to the source code of this file.
Macros | |
#define | MAXITER 1000 |
Functions | |
void | init_cooling (const char *TreeCoolFile, const char *MetalCoolFile, char *reion_hist_file, struct cooling_units cu, Cosmology *CP) |
static double | get_lambdanet (double rho, double u, double redshift, double Z, struct UVBG *uvbg, double *ne_guess, int isHeIIIionized) |
double | DoCooling (double redshift, double u_old, double rho, double dt, struct UVBG *uvbg, double *ne_guess, double Z, double MinEgySpec, int isHeIIIionized) |
double | GetCoolingTime (double redshift, double u_old, double rho, struct UVBG *uvbg, double *ne_guess, double Z) |
double | GetNeutralFraction (double u_old, double rho, const struct UVBG *uvbg, double ne_init) |
double | GetHeliumIonFraction (int ion, double u_old, double rho, const struct UVBG *uvbg, double ne_init) |
Variables | |
static struct cooling_units | coolunits |
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().
|
static |
Definition at line 57 of file cooling.c.
References coolunits, get_heatingcooling_rate(), get_long_mean_free_path_heating(), HYDROGEN_MASSFRAC, and cooling_units::rho_crit_baryon.
Referenced by DoCooling().
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_init | ||
) |
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().
|
static |
Definition at line 1 of file cooling.c.
Referenced by DoCooling(), get_lambdanet(), GetCoolingTime(), GetHeliumIonFraction(), GetNeutralFraction(), init_cooling(), init_cooling_and_star_formation(), test_DoCooling(), and test_heatingcooling_rate().