Chemistry Python/C API

C wraper of the chemistry Gear module

PyChem.chemistry.CodeUnits_to_SolarMass_Factor()

convertion factor : CodeUnits -> SolarMass

PyChem.chemistry.DYIN_Total_single_mass_ejection()

Mass fraction of ejected elements (including processed and non processed elements) due to the explotion of one dying star of mass m.

PyChem.chemistry.DYIN_mass_ejection()

Mass fraction of ejected elements, per unit mass due to the explotion of dying stars with masses between m1 and m2.

PyChem.chemistry.DYIN_mass_ejection_Z()

Mass fraction of ejected elements, per unit mass due to the explotion of dying stars with masses between m1 and m2 (metallicity dependency).

PyChem.chemistry.DYIN_rate()

Return the number of dying stars per unit mass with masses between m1 and m2.

PyChem.chemistry.DYIN_single_mass_ejection()

Mass fraction of ejected elements due to the explotion of one dying star of mass m.

PyChem.chemistry.DYIN_single_mass_ejection_Z()

Mass fraction of ejected elements due to the explotion of one dying star of mass m (metallicity dependency).

PyChem.chemistry.GetParameters()

get some gadget parameters

PyChem.chemistry.InitDefaultParameters()

Init default parameters

PyChem.chemistry.SNII_Total_single_mass_ejection()

Mass fraction of ejected elements (including processed and non processed elements) due to the explotion of one SNII of mass m.

PyChem.chemistry.SNII_mass_ejection()

Mass fraction of ejected elements, per unit mass due to the explotion of SNII with masses between m1 and m2.

PyChem.chemistry.SNII_mass_ejection_P()

Mass ejection due to SNII per unit mass and time. (Poirier version)

PyChem.chemistry.SNII_rate()

Return the number of SNII per unit mass with masses between m1 and m2.

PyChem.chemistry.SNII_rate_P()

Return the number of SNII per unit mass and time. (Poirier version)

PyChem.chemistry.SNII_single_mass_ejection()

Mass fraction of ejected elements due to the explotion of one SNII of mass m.

PyChem.chemistry.SNIa_Total_single_mass_ejection()

Mass fraction of ejected elements (including processed and non processed elements) due to the explotion of one SNIa of mass m.

PyChem.chemistry.SNIa_mass_ejection()

Mass fraction of ejected elements, per unit mass due to the explotion of SNIa with masses between m1 and m2.

PyChem.chemistry.SNIa_rate()

Return the number of SNIa per unit mass with masses between m1 and m2.

PyChem.chemistry.SNIa_rate_P()

Return the number of SNIa per unit mass and time. (Poirier version)

PyChem.chemistry.SNIa_single_mass_ejection()

Mass fraction of ejected elements due to the explotion of one SNIa of mass m.

PyChem.chemistry.SNIa_single_rate()

Return the number of SNIa per unit mass for a star of mass m.

PyChem.chemistry.SetParameters()

Set gadget parameters

PyChem.chemistry.SetVerbosityOff()

Set verbosity to off

PyChem.chemistry.SetVerbosityOn()

Set verbosity to on

PyChem.chemistry.SolarMass_to_CodeUnits_Factor()

convertion factor : SolarMass -> CodeUnits

PyChem.chemistry.Total_mass_ejection()

Mass fraction of ejected elements, per unit mass due to the explotion of SNIa and SNII with masses between m1 and m2.

PyChem.chemistry.Total_mass_ejection_Z()

Mass fraction of ejected elements, per unit mass due to the explotion of SNIa and SNII with masses between m1 and m2 (metallicity dependency).

PyChem.chemistry.Total_single_mass_ejection()

Mass fraction of ejected elements, per unit mass due to the explotion of one dying star of mass m1.

PyChem.chemistry.Total_single_mass_ejection_Z()

Mass fraction of ejected elements, per unit mass due to the explotion of one dying star of mass m1 (metallicity dependency).

PyChem.chemistry.cooling_function()

Compute cooling.

PyChem.chemistry.get_DYIN_Mmax()

Get max mass of DYIN, in code unit.

PyChem.chemistry.get_DYIN_Mmin()

Get min mass of DYIN, in code unit.

PyChem.chemistry.get_MSNIa()

Get the mass per element ejected by a SNIa.

PyChem.chemistry.get_MassFracSNII()

Get the mass fraction per element ejected by a set of SNII.

PyChem.chemistry.get_Mco()

Get mean WD mass, in code unit.

PyChem.chemistry.get_Mmax()

Get max star mass of the IMF, in code unit.

PyChem.chemistry.get_Mmin()

Get min star mass of the IMF, in code unit.

PyChem.chemistry.get_SNII_Energy()

Return the energy in unit 1e51 erg due to the explotion of SNII with mass m1.

PyChem.chemistry.get_SNII_Mmax()

Get max mass of SNII, in code unit.

PyChem.chemistry.get_SNII_Mmin()

Get min mass of SNII, in code unit.

PyChem.chemistry.get_SNIa_Mpl()

Get min mass of SNIa, in code unit.

PyChem.chemistry.get_SNIa_Mpu()

Get max mass of SNIa, in code unit.

PyChem.chemistry.get_SingleMassFracSNII()

Get the mass fraction per element ejected by a SNII.

PyChem.chemistry.get_allelts_labels()

Get the labels of elements, including ejected mass (Ej) and non processed ejected mass (Ejnp).

PyChem.chemistry.get_allnelts()

Get the number of element considered, including ejected mass (Ej) and non processed ejected mass (Ejnp)..

PyChem.chemistry.get_as()

Get power coefficients.

PyChem.chemistry.get_bs()

Get normalisation coefficients.

PyChem.chemistry.get_elts_SolarMassAbundances()

Get the solar mass abundance of elements.

PyChem.chemistry.get_elts_labels()

Get the labels of elements.

PyChem.chemistry.get_fs()

Get fs, mass fraction at ms.

PyChem.chemistry.get_imf()

Compute corresponding imf value.

PyChem.chemistry.get_imf_M()

Compute the mass fraction between m1 and m2.

PyChem.chemistry.get_imf_N()

Compute the fraction number between m1 and m2.

PyChem.chemistry.get_imf_Ntot()

Get number of stars in the imf, per unit mass.

PyChem.chemistry.get_nelts()

Get the number of element considered.

PyChem.chemistry.imf_init_seed()

Init the random seed.

PyChem.chemistry.imf_sampling()

Sample imf with n points.

PyChem.chemistry.imf_sampling_single()

Sample imf with a single point.

PyChem.chemistry.imf_sampling_single_from_random()

Sample imf with a single point from a given random number.

PyChem.chemistry.info()

Get info on tables.

PyChem.chemistry.init_chimie()

Init chimie.

PyChem.chemistry.optimal_sampling_get_m1_from_m2()

for a givent mass m2, return m1, such that the mass in the IMF between m1 and m2 is mp.

PyChem.chemistry.optimal_sampling_get_next_mass()

next star mass

PyChem.chemistry.optimal_sampling_init_norm()

init normalistation

PyChem.chemistry.optimal_sampling_stop_loop()

return 1 if the loop for optimal sampling must be stopped

PyChem.chemistry.set_table()

Set the chimie table.

PyChem.chemistry.star_lifetime()

Compute star life time.

PyChem.chemistry.star_mass_from_age()

Return the stellar mass that has a lifetime equal to t.