Stellar Astrophysics¶
Class providing individual stellar astrophysics—the properties of single stars as a function of initial mass and metallicity, including the stellar lifetime, the mass ejected (returned to the ISM) at death, and the metal mass yielded. These per-star quantities are integrated over the IMF and star formation history to compute the net recycling, yield, and energy input for a stellar population. Implementations are typically based on stellar evolution grids from e.g. Portinari et al. (1998) or similar libraries and include inverse functions mapping lifetime to initial mass.
Default implementation: stellarAstrophysicsFile
Methods¶
massInitial→double precisionReturns the initial mass of a star of given
lifetimeandmetallicity.double precision, intent(in ) :: lifetime, metallicity
massEjected→double precisionReturns the mass ejected by a star of given
massInitialandmetallicity.double precision, intent(in ) :: massInitial,metallicity
massYield→double precisionReturns the metal mass yielded by a star of given
massInitialandmetallicity.double precision, intent(in ) :: massInitial, metallicityinteger , intent(in ), optional :: atomIndex
lifetime→double precisionReturns the lifetime of a star of given
massInitialandmetallicity.double precision, intent(in ) :: massInitial, metallicity
stellarAstrophysicsFile¶
A stellar astrophysics class which reads properties of individual stars of different initial mass and metallicity from an XML file and interpolates in them. The stars can be irregularly spaced in the plane of initial mass and metallicity. The XML file should have the following structure:
<stars>
<star>
<initialMass>0.6</initialMass>
<lifetime>28.19</lifetime>
<metallicity>0.0000</metallicity>
<ejectedMass>7.65</ejectedMass>
<metalYieldMass>0.44435954</metalYieldMass>
<elementYieldMassFe>2.2017e-13</elementYieldMassFe>
<source>Table 2 of Tumlinson, Shull & Venkatesan (2003, ApJ, 584, 608)</source>
<url>http://adsabs.harvard.edu/abs/2003ApJ...584..608T</url>
</star>
<star>
.
.
.
</star>
.
.
.
</stars>
Each star element must contain the initialMass (given in \(\mathrm{M}_\odot\)) and metallicity tags. Other tags are optional. lifetime gives the lifetime of such a star (in Gyr), ejectedMass gives the total mass (in \(\mathrm{M}_\odot\)) ejected by such a star during its lifetime, metalYieldMass gives the total mass of metals yielded by the star during its lifetime while elementYieldMassX gives the mass of element X yielded by the star during its lifetime. The source and url tags are not used, but are strongly recommended to provide a reference to the origin of the stellar data.
(Default implementation)
Methods
readFile— Read the named power spectrum file.
Parameters
[forceZeroMetallicity](default.false.) — Force the use of zero metallicity (or lowest metallicity available) for all stellar populations.[fileName]— The path to the HDF5 file containing the tabulated stellar population spectra, with datasets for ages (Gyr), metallicities (log Solar), wavelengths (AA), and spectra (\(L_\odot\,\mathrm{Hz}^{-1}\)); see thescripts/sspsfolder for conversion scripts.[fileName]— The name of the file which contains fit coefficients for the time per tree fitting function.[fileName](defaultinputPath(pathTypeDataStatic)//'stellarAstrophysics/stellarPropertiesCompilationStandard.xml') — The name of the XML file from which to read stellar properties (ejected masses, yields, etc.).[fileName](defaultinputPath(pathTypeDataStatic)//'stellarAstrophysics/Stellar_Tracks_Padova.hdf5') — The name of the HDF5 file from which to read stellar tracks.[fileName]— The name of the file from which to read intergalactic medium state data.[fileName]— The name of the file from which to read intergalactic background light properties.[fileName]— The name of a file from which to read tabulated spectra of accretion disks.[fileName]— The name of the file from which to read a tabulated transfer function.