MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
Go to the source code of this file.
Macros | |
#define | NSPECIES 9 |
#define | MAXMASS 40 |
#define | MINMASS 0.1 |
#define | SNAGBSWITCH 8 |
#define | LIFE_NMET 5 |
#define | LIFE_NMASS 30 |
#define | AGB_NMET 4 |
#define | AGB_NMASS 18 |
#define | SNII_NMET 4 |
#define | SNII_NMASS 7 |
#define | GSL_WORKSPACE 1000 |
Functions | |
double | compute_imf_norm (gsl_integration_workspace *gsl_work) |
double | compute_agb_yield (gsl_interp2d *agb_interp, const double *agb_weights, double stellarmetal, double masslow, double masshigh, gsl_integration_workspace *gsl_work) |
double | compute_snii_yield (gsl_interp2d *snii_interp, const double *snii_weights, double stellarmetal, double masslow, double masshigh, gsl_integration_workspace *gsl_work) |
double | chabrier_mass (double mass, void *params) |
double | sn1a_number (double dtmyrstart, double dtmyrend, double hub) |
void | set_metal_params (double Sn1aN0) |
void | find_mass_bin_limits (double *masslow, double *masshigh, const double dtstart, const double dtend, double stellarmetal, gsl_interp2d *lifetime_tables) |
Variables | |
static const double | lifetime_metallicity [LIFE_NMET] = { 0.0004 , 0.004 , 0.008, 0.02, 0.05 } |
static const double | lifetime_masses [LIFE_NMASS] |
static const double | lifetime [LIFE_NMASS *LIFE_NMET] |
static const double | sn1a_total_metals = 1.3743416565891 |
static const double | sn1a_yields [NSPECIES] = {0, 0, 4.83E-02, 1.16E-06 , 1.43E-01 , 4.51E-03, 8.57E-03, 1.53E-01, 7.43e-01} |
static const double | agb_masses [AGB_NMASS] = { 1.00,1.25,1.50,1.75,1.90,2.00,2.25,2.50,3.00,3.50,4.00,4.50,5.00,5.50,6.00,6.50,7.00,7.50 } |
static const double | agb_metallicities [AGB_NMET] = { 0.0001,0.0040,0.0080,0.0200 } |
static const double | agb_total_mass [AGB_NMET *AGB_NMASS] |
static const double | agb_total_metals [AGB_NMET *AGB_NMASS] |
static const double | agb_yield [NSPECIES][AGB_NMET *AGB_NMASS] |
static const double | snii_masses [SNII_NMASS] = { 13.00,15.00,18.00,20.00,25.00,30.00,40.00 } |
static const double | snii_metallicities [SNII_NMET] = { 0.0000,0.0010,0.0040,0.0200 } |
static const double | snii_total_mass [SNII_NMET *SNII_NMASS] |
static const double | snii_total_metals [SNII_NMET *SNII_NMASS] |
static const double | snii_yield [NSPECIES][SNII_NMET *SNII_NMASS] |
#define AGB_NMASS 18 |
Definition at line 69 of file metal_tables.h.
#define AGB_NMET 4 |
Definition at line 68 of file metal_tables.h.
#define GSL_WORKSPACE 1000 |
Definition at line 426 of file metal_tables.h.
#define LIFE_NMASS 30 |
Definition at line 17 of file metal_tables.h.
#define LIFE_NMET 5 |
Definition at line 16 of file metal_tables.h.
#define MAXMASS 40 |
Definition at line 9 of file metal_tables.h.
#define MINMASS 0.1 |
Definition at line 11 of file metal_tables.h.
#define NSPECIES 9 |
Definition at line 7 of file metal_tables.h.
#define SNAGBSWITCH 8 |
Definition at line 13 of file metal_tables.h.
#define SNII_NMASS 7 |
Definition at line 309 of file metal_tables.h.
#define SNII_NMET 4 |
Definition at line 308 of file metal_tables.h.
double chabrier_mass | ( | double | mass, |
void * | params | ||
) |
Definition at line 308 of file metal_return.c.
References chabrier_imf().
Referenced by compute_imf_norm(), and test_yields().
double compute_agb_yield | ( | gsl_interp2d * | agb_interp, |
const double * | agb_weights, | ||
double | stellarmetal, | ||
double | masslow, | ||
double | masshigh, | ||
gsl_integration_workspace * | gsl_work | ||
) |
Definition at line 342 of file metal_return.c.
References agb_masses, agb_metallicities, AGB_NMET, chabrier_imf_integ(), GSL_WORKSPACE, imf_integ_params::interp, imf_integ_params::masses, imf_integ_params::metallicities, imf_integ_params::metallicity, SNAGBSWITCH, and imf_integ_params::weights.
Referenced by mass_yield(), metal_yield(), and test_yields().
double compute_imf_norm | ( | gsl_integration_workspace * | gsl_work | ) |
Definition at line 314 of file metal_return.c.
References chabrier_mass(), GSL_WORKSPACE, MAXMASS, and MINMASS.
Referenced by metal_return_init(), and test_yields().
double compute_snii_yield | ( | gsl_interp2d * | snii_interp, |
const double * | snii_weights, | ||
double | stellarmetal, | ||
double | masslow, | ||
double | masshigh, | ||
gsl_integration_workspace * | gsl_work | ||
) |
Definition at line 368 of file metal_return.c.
References chabrier_imf_integ(), GSL_WORKSPACE, imf_integ_params::interp, imf_integ_params::masses, imf_integ_params::metallicities, imf_integ_params::metallicity, SNAGBSWITCH, snii_masses, snii_metallicities, SNII_NMASS, SNII_NMET, and imf_integ_params::weights.
Referenced by mass_yield(), metal_yield(), and test_yields().
void find_mass_bin_limits | ( | double * | masslow, |
double * | masshigh, | ||
const double | dtstart, | ||
const double | dtend, | ||
double | stellarmetal, | ||
gsl_interp2d * | lifetime_tables | ||
) |
Definition at line 230 of file metal_return.c.
References agb_masses, do_rootfinding(), massbin_find_params::dtfind, LIFE_NMET, lifetime_masses, lifetime_metallicity, massbin_find_params::lifetime_tables, massbin_find_params::massacc, massendlife(), MAXMASS, massbin_find_params::metalacc, and massbin_find_params::stellarmetal.
Referenced by metal_return_init(), and test_yields().
void set_metal_params | ( | double | Sn1aN0 | ) |
Definition at line 55 of file metal_return.c.
References MetalParams, and metal_return_params::Sn1aN0.
Referenced by test_yields().
double sn1a_number | ( | double | dtmyrstart, |
double | dtmyrend, | ||
double | hub | ||
) |
Definition at line 324 of file metal_return.c.
References HUBBLE, MetalParams, SEC_PER_MEGAYEAR, and metal_return_params::Sn1aN0.
Referenced by mass_yield(), metal_yield(), and test_yields().
|
static |
Definition at line 70 of file metal_tables.h.
Referenced by compute_agb_yield(), find_mass_bin_limits(), metal_return_init(), and setup_metal_table_interp().
|
static |
Definition at line 71 of file metal_tables.h.
Referenced by compute_agb_yield(), and setup_metal_table_interp().
Definition at line 72 of file metal_tables.h.
Referenced by mass_yield(), setup_metal_table_interp(), and test_yields().
Definition at line 94 of file metal_tables.h.
Referenced by metal_yield(), and setup_metal_table_interp().
Definition at line 116 of file metal_tables.h.
Referenced by metal_yield(), and setup_metal_table_interp().
|
static |
Definition at line 24 of file metal_tables.h.
Referenced by massendlife(), and setup_metal_table_interp().
|
static |
Definition at line 20 of file metal_tables.h.
Referenced by find_mass_bin_limits(), massendlife(), and setup_metal_table_interp().
|
static |
Definition at line 18 of file metal_tables.h.
Referenced by find_mass_bin_limits(), massendlife(), and setup_metal_table_interp().
|
static |
Definition at line 60 of file metal_tables.h.
Referenced by mass_yield(), metal_yield(), and test_yields().
|
static |
Definition at line 61 of file metal_tables.h.
Referenced by metal_yield().
|
static |
Definition at line 310 of file metal_tables.h.
Referenced by compute_snii_yield(), setup_metal_table_interp(), and test_yields().
|
static |
Definition at line 311 of file metal_tables.h.
Referenced by compute_snii_yield(), metal_return_init(), and setup_metal_table_interp().
|
static |
Definition at line 312 of file metal_tables.h.
Referenced by mass_yield(), setup_metal_table_interp(), and test_yields().
|
static |
Definition at line 323 of file metal_tables.h.
Referenced by metal_yield(), and setup_metal_table_interp().
|
static |
Definition at line 334 of file metal_tables.h.
Referenced by metal_yield(), and setup_metal_table_interp().