tardis.energy_input.energy_source module¶
- tardis.energy_input.energy_source.get_all_isotopes(abundances)[source]¶
Get the possible isotopes present over time for a given starting abundance
- Parameters:
- abundancesDataFrame
Current isotope abundances
- Returns:
- list
List of isotope names
- tardis.energy_input.energy_source.get_isotope_string(atom_number, atom_mass)[source]¶
Get the isotope string in the format e.g. Ni56
- Parameters:
- atom_numberint
Atomic number
- atom_massint
Atomic mass
- Returns:
- str
Isotope string in the format e.g. Ni56
- tardis.energy_input.energy_source.get_nuclear_lines_database(path)[source]¶
Load the nuclear decay line data set
- Parameters:
- pathstr
Path to the data set HDF file
- Returns:
- pandas DataFrame
The decay radiation lines
- tardis.energy_input.energy_source.get_tau(meta, isotope_string)[source]¶
Calculate the mean lifetime of an isotope
- Parameters:
- metaDataFrame
Isotope metadata
- isotope_stringstr
Isotope of interest
- Returns:
- float
Mean lifetime of isotope
- tardis.energy_input.energy_source.intensity_ratio(nuclear_data, source_1, source_2)[source]¶
Determined the ratio of intensities between two sources of decay radiation
- Parameters:
- nuclear_datapandas.Dataframe
Dataframe of nuclear decay properties
- source_1str
Type of decay radiation to compare
- source_2str
Type of decay radiation to compare
- Returns:
- float
Fractional intensity of source_1
- float
Fractional intensity of source_2
- float
Number of decay products per decay
- tardis.energy_input.energy_source.positronium_continuum()[source]¶
Produces a continuum of positronium decay energy using the function defined by Ore and Powell 1949 and adapted by Leung 2022 to be in terms of electron rest mass energy
- Returns:
- energy
An array of photon energies in keV
- intensity
An array of intensities between 0 and 1
- tardis.energy_input.energy_source.read_artis_lines(isotope, path_to_data)[source]¶
Reads lines of ARTIS format
- Parameters:
- isotopestring
Isotope to read e.g. Ni56
- Returns:
- pd.DataFrame
Energies and intensities of the isotope lines
- tardis.energy_input.energy_source.setup_input_energy(nuclear_data, source)[source]¶
Sets up energy distribution and CDF for a source of decay radiation.
- Parameters:
- nuclear_dataPandas dataframe
Dataframe of nuclear decay properties
- sourcestr
Type of decay radiation
- Returns:
- One-dimensional Numpy Array, dtype float
Sorted energy array
- One-dimensional Numpy Array, dtype float
CDF where each index corresponds to the energy in the sorted array