tardis.model.matter.decay module¶
- class tardis.model.matter.decay.IsotopicMassFraction(*args, **kwargs)[source]¶
Bases:
DataFrame
- as_atoms()[source]¶
Merge Isotope dataframe according to atomic number
- Returns:
- pandas.DataFrame
Merged isotope abundances
- calculate_decayed_mass_fractions(time_decay)[source]¶
Decay the Model
- Parameters:
- tfloat or astropy.units.Quantity
if float it will be understood as days
- Returns:
- pandas.DataFrame
Decayed abundances
- calculate_number_of_decays(time_decay, shell_masses=None)[source]¶
Calculate the number of decays over a given time period for each shell.
- Parameters:
- time_decayastropy.units.Quantity
Time elapsed for which to compute the total decays (converted to days internally).
- shell_massesastropy.units.Quantity, optional
Masses of each shell. If provided, isotopes in each shell’s inventory will be multiplied by the corresponding shell mass.
- Returns:
- pandas.DataFrame
A DataFrame of decays indexed by (atomic_number, mass_number), with columns representing the decays in each shell.