-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Gammaray opacity documentation #2876
Open
CePowers
wants to merge
13
commits into
tardis-sn:master
Choose a base branch
from
CePowers:gamma_opacity
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.
+82
−0
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
64e6692
Created new file about sources of opacity and added info on Compton S…
CePowers 8377615
Added opacity file to index.
CePowers 0c4d486
Merge branch 'master' into gamma_opacity
CePowers 66a3f2d
Added more infor for compton scattering and added the 2 other opacities.
CePowers 8c88ea0
Fixed some small errors
CePowers ea4e31c
Fixed typo
CePowers 5dd016d
Merge branch 'master' into gamma_opacity
CePowers 42fe815
Added images of the plots of the coefficients.
CePowers d53d76a
Added images to opacity file.
CePowers b5c424d
Fixed equation
CePowers 22fd197
Merge branch 'master' into gamma_opacity
CePowers 4904b01
Updated plots and added two more
CePowers 261871e
Added new plots and fixed some typos.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think the y-axis needs to be logarithmic here |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,81 @@ | ||
****************** | ||
Sources of Opacity | ||
****************** | ||
Within the ejecta there are several sources of opacity for the :math:`\gamma`-rays that we need to take into account. | ||
|
||
Pair Creation | ||
============= | ||
This form of opacity is dominant when the energy of the :math:`\gamma`-ray is greater than or equal to :math:`2m_e c^2`. | ||
It occurs when a :math:`\gamma`-ray passes a nucleus and creates an electron-positron pair. The positron forms a bound-state with an electron called positronium which decay into two photons at 0.511 MeV or three photons. | ||
The photon packet keeps its energy but is sent into a new direction. | ||
The pair-production coefficients are: | ||
|
||
.. math:: | ||
|
||
\alpha_{pp}(1.5 < h\nu < 1.022) = \rho [ \frac{Z_{\text{Si}}^2}{m_{\text{Si}}} (1 - X_{\text{IGE}}) + \frac{Z_{\text{Fe}}^2}{m_{\text{Fe}}} X_{\text{IGE}}]1.0063(h\nu - 1.022) \times 10^{-27} | ||
|
||
\alpha_{pp}(h\nu \geq 1.5) = \rho [ \frac{Z_{\text{Si}}^2}{m_{\text{Si}}} (1 - X_{\text{IGE}}) + \frac{Z_{\text{Fe}}^2}{m_{\text{Fe}}} X_{\text{IGE}}] [0.481 + 0.301(h\nu - 1.5)] \times 10^{-27} | ||
|
||
:math:`\rho` is the mass density of the ejecta and :math:`X_{\text{IGE}}` is the mass fraction of Fe-group elements. | ||
|
||
.. figure:: images/pair_production_coefficient.png | ||
|
||
Compton Scattering | ||
================== | ||
Compton scattering is inelastic scattering that occurs when a high frequency photon collides with an electron. Unlike Thomson scattering, which is elastic, during the collision some of the energy from the photon is transferred to the electron and the scattered photon is lower energy than the incident photon. | ||
This means that the scattered photon also has a lower frequency and a longer wavelength. In the simulation we assume that the electrons are moving significantly slower than the photons. | ||
To find the energy of the scattered photon we use the equation we multiply the initial energy with the compton fraction :math:`f_C` | ||
|
||
.. math:: | ||
|
||
f_C = \frac{1}{1 + x(1 - \cos{\theta})} | ||
|
||
Where :math:`\theta` is the angle the photon is scattered at and :math:`x = \frac{h \nu}{m_e c^2}` | ||
|
||
The partial cross section from 0 to :math:`\theta` in terms of f is: | ||
|
||
.. math:: | ||
|
||
\sigma(f) = \frac{3 \sigma_T}{8x} \frac{\left( x^2 - 2x - 2 \right) \ln(f)}{x^2} + \frac{f^2 - 1}{2f^2} + \frac{f - 1}{x} [\frac{1}{x} + 2f + \frac{1}{xf}] | ||
|
||
Where f can range from 1 to 1+2x and :math:`\sigma_T` is the Thomson scattering cross section. | ||
|
||
The scattering angle is given by: | ||
|
||
.. math:: | ||
|
||
\theta_C = \cos^{-1}({1 - \frac{f-1}{x}}) | ||
|
||
|
||
The total integrated Compton scattering coeffcient is: | ||
|
||
.. math:: | ||
|
||
\alpha_C = n_e \frac{3}{4} \sigma_T [\frac{1+x}{x^3} (\frac{2x(1 + x)}{1 + 2x} - \ln(1 + 2x)) + \frac{1}{2x} \ln(1 + 2x) - \frac{1 + 3x}{(1 + 2x)^2}] | ||
|
||
Where :math:`n_e` is the number density of electrons. | ||
|
||
.. figure:: images/compton_scattering_coefficient.png | ||
|
||
The direction vector is then rotated by :math:`\theta` to get the new direction and the frequency is updated. | ||
|
||
Photoabsorption | ||
=============== | ||
This occurs when the photon is completely absorbed by a material. We assume that the :math:`\gamma`-ray deposits all of its energy when this occurs. | ||
The coefficient is: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing a period before this line. |
||
|
||
.. math:: | ||
|
||
\alpha_{pa}(\nu) = 1.16 \times 10^{-24} (h\nu)^{-3.13} \frac{\rho}{m_{\text{Si}}} (1 - X_{\text{IGE}}) + 25.7 \times 10^{-24} (h\nu)^{-3} \frac{\rho}{m_{\text{Fe}}} X_{\text{IGE}} | ||
|
||
.. figure:: images/photoabsorption_coefficient.png | ||
|
||
|
||
|
||
Each source of opacity is dominant in different energy ranges. We can see this when all three coefficients are plotted together: | ||
|
||
.. figure:: images/all_coeffs.png | ||
|
||
We can also look at the fraction of the total absorption coefficient that each source of opacity takes up in different energy levels: | ||
|
||
.. figure:: images/coeff_fractions.png |
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.
The Total line being yellow is very difficult to read on white. I would also recommend using colourblind-safe colours for all lines.
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.
It would also be reasonable to limit the axes to cover the interesting region where all 3 opacities cross.