Skip to content

Commit

Permalink
Decay energy chain (#2448)
Browse files Browse the repository at this point in the history
* Added a function to calculate shell masses

* Added a function to calculate shell masses

* changed shell masses with the new function

* Changed mass fraction to masses in to_inventories()

* Co-authored-by: Wolfgang Kerzendorf <[email protected]>

* Added a function to calculate total decays

* Added a function to calculate energies from gamma rays and positrons.

* added a function to calculate average energies of gamma rays and positrons

* Added a fucntion to calculate each decay chain energies

* Added dictionaries to handle multiple isotopes

* Changed value to values

* added tests for gamma_ray_transport

* Added tests for calculating activity

* Added test for activity

* Added tests for two isotope

* Changed Ni_isotope_mass

* Added pytest paramterize

* Added test for calculating shell masses

* Ran test for checking activity of parent nuclide with analytical solution.

* The function test_activity matches with the radioactivedecay output upto 14 decimal places. The Avogadro's number used in radioactivedecay is not from astropy.

* Added tests for checking if iso_dict is returning the right key.

* Added test for inventories dictionary.

* Added a test to check if the calculate_average_energy function passes the right list ahead.

* Added new function for testing energy budget from each decay chain.

* Added a new function for energy per mass

* Reading in decay radiation data in atom data

* Add

* Added tests for gamma ray transport.

* Added tests for all functions for gamma_ray_transport. Added docstrings.

* Changing decay energy chain

* Added a function to get taus

* Added tests for multiple isotopes

* Fixes the test calculate shell masses with hand calculated values
  • Loading branch information
Knights-Templars authored Nov 27, 2023
1 parent a3fb19f commit 799e35b
Show file tree
Hide file tree
Showing 5 changed files with 594 additions and 355 deletions.
2 changes: 1 addition & 1 deletion tardis/energy_input/energy_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def get_nuclear_lines_database(
pandas DataFrame
The decay radiation lines
"""
decay_radiation_db = pd.read_hdf(path, "decay_data")
decay_radiation_db = pd.read_hdf(path, "decay_radiation_data")
return decay_radiation_db


Expand Down
Loading

0 comments on commit 799e35b

Please sign in to comment.