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

luminositydouble precision

Returns the bolometric luminosity of a star of given initialMass, metallicity and age.

  • double precision initialMass [in]

  • double precision metallicity [in]

  • double precision age [in]

temperatureEffectivedouble precision

Returns the effective temperature of a star of given initialMass, metallicity and age.

  • 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

interpolationCompute

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(2) interpolationFactorsMetallicity [out], double(2,2) interpolationFactorsMass [out], double(2,2,2) interpolationFactorsAge [out], logical metallicityOutOfRange [out], logical massOutOfRange [out], logical ageOutOfRange [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]

interpolatedouble precision

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(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]

initialize

Initialize stellar data.

Parameters

  • [fileName] (string; default inputPath(pathTypeDataStatic)//'stellarAstrophysics/Stellar_Tracks_Padova.hdf5') — The name of the HDF5 file from which to read stellar tracks.