-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
CePowers
wants to merge
7
commits into
tardis-sn:master
Choose a base branch
from
CePowers:gamma_decay_energy
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3069747
Created a file about radioacive decay energy
CePowers 0623646
Added decay energy file to the index.
CePowers e5be084
Added citation for Nadyozhin 1994 to tardis.bib
CePowers 54c42cb
Added citation to decay energy file.
CePowers 18a8748
Merge branch 'master' into gamma_decay_energy
CePowers f9d90ec
Changed the words gamma to the symbol gamma.
CePowers 6589a23
Added information on energy production rate.
CePowers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ TARDIS gamma :math:`\gamma` | |
|
||
.. toctree:: | ||
packetinitialization | ||
decayenergy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.