Stellar Tracks¶
Class providing models of stellar tracks in luminosity and effective temperature as a function of initial mass, metallicity, and age.
Default implementation: stellarTracksFile
Methods¶
luminosity→double precisionReturns the bolometric luminosity of a star of given
initialMass,metallicityandage.double precision initialMass[in]double precision metallicity[in]double precision age[in]
temperatureEffective→double precisionReturns the effective temperature of a star of given
initialMass,metallicityandage.double precision initialMass[in]double precision metallicity[in]double precision age[in]
stellarTracksFile¶
A stellar tracks class in which luminosities and effective temperatures of stars are computed from a tabulated set of stellar tracks, read from file and interpolated. The file containing the tracks to use is specified via the stellarTracksFile parameter. The file specified must be an HDF5 file with the following structure:
stellarTracksFile
|
+-> metallicity1
| |
| +-> metallicity
| |
| +-> mass1
| | |
| | +-> mass
| | |
| | +-> age
| | |
| | +-> luminosity
| | |
| | +-> effectiveTemperature
| |
| x-> massN
|
x-> metallicityN
Each metallicityN group tabulates tracks for a given metallicity (the value of which is stored in the metallicity dataset within each group), and may contain an arbitrary number of massN groups. Each massN group should contain a track for a star of some mass (the value of which is given in the mass dataset). Within each track three datasets specify the age (in Gyr), luminosity (in \(L_\odot\)) and effectiveTemperature (in Kelvin) along the track.
(Default implementation)
Methods
interpolationComputeinteger(c_size_t)(2)interpolationIndicesMetallicity [out],integer(c_size_t)(2,2)interpolationIndicesMass [out],integer(c_size_t)(2,2,2)interpolationIndicesAge [out],double(2)interpolationFactorsMetallicity [out],double(2,2)interpolationFactorsMass [out],double(2,2,2)interpolationFactorsAge [out],logicalmetallicityOutOfRange [out],logicalmassOutOfRange [out],logicalageOutOfRange [out]double precision initialMass[in]double precision metallicity[in]double precision age[in]integer(c_size_t)(2) interpolationIndicesMetallicity[out]integer(c_size_t)(2,2) interpolationIndicesMass[out]integer(c_size_t)(2,2,2) interpolationIndicesAge[out]double precision(2) interpolationFactorsMetallicity[out]double precision(2,2) interpolationFactorsMass[out]double precision(2,2,2) interpolationFactorsAge[out]logical metallicityOutOfRange[out]logical massOutOfRange[out]logical ageOutOfRange[out]
interpolate→double precisioninteger(c_size_t)(2)interpolationIndicesMetallicity [in],integer(c_size_t)(2,2)interpolationIndicesMass [in],integer(c_size_t)(2,2,2)interpolationIndicesAge [in],double(2)interpolationFactorsMetallicity [in],double(2,2)interpolationFactorsMass [in],double(2,2,2)interpolationFactorsAge [in],double(:,:,:)stellarTracks [in]integer(c_size_t)(2) interpolationIndicesMetallicity[in]integer(c_size_t)(2,2) interpolationIndicesMass[in]integer(c_size_t)(2,2,2) interpolationIndicesAge[in]double precision(2) interpolationFactorsMetallicity[in]double precision(2,2) interpolationFactorsMass[in]double precision(2,2,2) interpolationFactorsAge[in]double precision(:,:,:) stellarTracks[in]
initializeInitialize stellar data.
Parameters
[fileName](string; defaultinputPath(pathTypeDataStatic)//'stellarAstrophysics/Stellar_Tracks_Padova.hdf5') — The name of the HDF5 file from which to read stellar tracks.