MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <gsl/gsl_integration.h>
#include <gsl/gsl_interp.h>
#include <gsl/gsl_rng.h>
#include <assert.h>
#include "thermal.h"
#include <libgadget/physconst.h>
#include <libgadget/utils.h>
Go to the source code of this file.
Macros | |
#define | BOLEVK 8.61734e-5 |
Functions | |
double | NU_V0 (const double Time, const double kBTNubyMNu, const double UnitVelocity_in_cm_per_s) |
double | WDM_V0 (const double Time, const double WDM_therm_mass, const double Omega_CDM, const double HubbleParam, const double UnitVelocity_in_cm_per_s) |
static double | fermi_dirac_kernel (double x, void *params) |
double | init_thermalvel (struct thermalvel *thermals, const double v_amp, double max_fd, const double min_fd) |
unsigned int * | init_rng (int Seed, int Nmesh) |
void | add_thermal_speeds (struct thermalvel *thermals, gsl_rng *g_rng, float Vel[]) |
void add_thermal_speeds | ( | struct thermalvel * | thermals, |
gsl_rng * | g_rng, | ||
float | Vel[] | ||
) |
Definition at line 109 of file thermal.c.
References thermalvel::fd_intp, thermalvel::fd_intp_acc, thermalvel::fermi_dirac_cumprob, thermalvel::fermi_dirac_vel, and thermalvel::m_vamp.
Referenced by main(), and test_thermal_vel().
|
static |
Definition at line 40 of file thermal.c.
Referenced by init_thermalvel().
unsigned int* init_rng | ( | int | Seed, |
int | Nmesh | ||
) |
double init_thermalvel | ( | struct thermalvel * | thermals, |
const double | v_amp, | ||
double | max_fd, | ||
const double | min_fd | ||
) |
Definition at line 47 of file thermal.c.
References endrun(), thermalvel::fd_intp, thermalvel::fd_intp_acc, thermalvel::fermi_dirac_cumprob, fermi_dirac_kernel(), thermalvel::fermi_dirac_vel, LENGTH_FERMI_DIRAC_TABLE, thermalvel::m_vamp, and MAX_FERMI_DIRAC.
Referenced by main(), and test_thermal_vel().
double NU_V0 | ( | const double | Time, |
const double | kBTNubyMNu, | ||
const double | UnitVelocity_in_cm_per_s | ||
) |
Definition at line 24 of file thermal.c.
References LIGHTCGS.
Referenced by main(), and test_mean_velocity().
double WDM_V0 | ( | const double | Time, |
const double | WDM_therm_mass, | ||
const double | Omega_CDM, | ||
const double | HubbleParam, | ||
const double | UnitVelocity_in_cm_per_s | ||
) |
Definition at line 30 of file thermal.c.
Referenced by main().