Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gamma decay energy documentation #2866

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
153 changes: 153 additions & 0 deletions docs/physics/tardisgamma/decayenergy.ipynb
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to use the gamma symbol with \gamma rather than type out gamma? Probably \gamma-rays

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the typed out gammas to the gamma symbol.

Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Radioactive Decay Energy\n",
"\n",
"Within the ejecta of a supernova, the $\\gamma$-rays largely come from the decay of $^{56}Ni$ into $^{56}Co$.\n",
"This releases a large amount of energy. To understand how much energy is produced from this decay we look at the amount of energy 1 g of $^{56}Ni$ produces in 10 days"
]
},
{
"cell_type": "markdown",
"metadata": {
"vscode": {
"languageId": "plaintext"
}
},
"source": [
"The equation for radioactive decay is \n",
"$$N(t) = N_\\mathrm{0} \\exp\\left(-\\lambda t \\right)$$\n",
"$N(t)$ is the number of atoms after time t, $N_\\mathrm{0}$ is the initial number of atoms, and $\\lambda$ is the half life."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Using the molar mass, we find that 1g of $^{56}Ni$ has $1.0767e22$ atoms. The half life of $^{56}Ni$ is 6.10 days. Plugging these numbers into the equation we can find the number of atoms that have decayed after 10 days."
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"from astropy import units as u\n",
"from astropy import constants as const\n",
"\n",
"#initial number of atoms\n",
"n_0 = 1.0767e22\n",
"#half life\n",
"t_half = 6.10\n",
"#time in days\n",
"time = 10\n",
"\n",
"#number of atoms keft after 10 days\n",
"n_final = n_0 * np.exp(-t_half * time)\n",
"\n",
"#number of atoms that have decayed\n",
"n_decays = n_0 - n_final"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The $\\gamma$-rays that are released during this radiocative decay can be released from a number of energy level transitions. Each transition has an associated energy and a probability out of 100 decays. From the combination of all of these tranisitions and their probabilities, the total energy released per decay is $1.75 MeV$ <strong data-cite=\"1994Nadyozhin\">[]</strong>."
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The total energy released from radioactive decay of 1g of 56Ni after 10 days is: 1.884225e+28 eV\n"
]
}
],
"source": [
"#energy per decay in eV\n",
"energy_per_decay = 1.75e6\n",
"\n",
"total_energy = n_decays * energy_per_decay\n",
"\n",
"print(\"The total energy released from radioactive decay of 1g of 56Ni after 10 days is:\", total_energy, \"eV\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The $^{56}Co$ produced from the decay of $^{56}Ni$ is also radioactive and will decay into $^{56}Fe$ and release more $\\gamma$-rays. These decays also have a number of transitions with associated energies and probabilities which gives the total energy released per decay of 3.73MeV. The total rate of energy production for a mass of $^{56}Ni$ at a given time is given by the following equation:\n",
"\n",
"$$\\epsilon = \\frac{M_\\odot}{56m_{u}}\\frac{1}{\\tau_{\\text{Co}}-\\tau_{\\text{Ni}}}[[Q_{\\text{Ni}}(\\frac{\\tau_{\\text{Co}}}{\\tau_{\\text{Ni}}}-1)-Q_{\\text{Co}}]\\exp(-t/\\tau_{\\text{Ni}})+Q_{\\text{Co}}\\exp(-t/\\tau_{\\text{Co}})]\\frac{M_{Ni0}}{M_\\odot}$$\n",
"\n",
"$\\tau_{Ni}$ and $\\tau_{Co}$ are the lifetimes of Ni and Co respectively. $Q_{\\text{Ni}}$ and $Q_{\\text{Co}}$ are the energy per decay of $^{56}Ni$ and $^{56}Co$ respectively.\n",
"\n",
"If we plug these values into the equation we get the equation:\n",
"\n",
"$$\\epsilon = (6.45e43\\exp(-t/8.8)+1.45e43\\exp(-t/111.3))\\frac{M_{Ni0}}{M_\\odot} erg/s$$"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The total energy production rate for 1 solar mass of 56Ni after 10 days is: 3.395750201245571e+43 erg/s\n"
]
}
],
"source": [
"#time in days\n",
"time = 10\n",
"#mass of Ni56 in solar masses\n",
"m_Ni56 = 1 \n",
"\n",
"energy_production_rate = (6.45e43 * np.exp(-time/8.8) + 1.45e43 * np.exp(-time/111.3)) * (m_Ni56/ 1)\n",
"print(\"The total energy production rate for 1 solar mass of 56Ni after 10 days is:\", energy_production_rate, \"erg/s\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "tardis",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
1 change: 1 addition & 0 deletions docs/physics/tardisgamma/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ TARDIS gamma :math:`\gamma`

.. toctree::
packetinitialization
decayenergy
15 changes: 15 additions & 0 deletions docs/tardis.bib
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,18 @@ @ARTICLE{Boyle2017
adsurl = {https://ui.adsabs.harvard.edu/abs/2017A&A...599A..46B},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{1994Nadyozhin,
author = {{Nadyozhin}, D.~K.},
title = "{The Properties of NI CO Fe Decay}",
journal = {\apjs},
keywords = {Cobalt Isotopes, Decay, Electron Capture, Gamma Rays, Nickel Isotopes, Nuclear Astrophysics, Nuclear Fusion, Half Life, Iron Isotopes, Neutrinos, Astronomy, ATOMIC DATA, NUCLEAR REACTIONS, NUCLEOSYNTHESIS, ABUNDANCES},
year = 1994,
month = jun,
volume = {92},
pages = {527},
doi = {10.1086/192008},
adsurl = {https://ui.adsabs.harvard.edu/abs/1994ApJS...92..527N},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

Loading