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

Gammaray opacity documentation #2876

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Binary file added docs/physics/tardisgamma/images/all_coeffs.png
Copy link
Contributor

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.

Copy link
Contributor

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.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Copy link
Contributor

Choose a reason for hiding this comment

The 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.
1 change: 1 addition & 0 deletions docs/physics/tardisgamma/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Type Ia supernovae produce a large amount of energy from :math:`\gamma`-rays pro

.. toctree::
packetinitialization
opacities
81 changes: 81 additions & 0 deletions docs/physics/tardisgamma/opacities.rst
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:
Copy link
Contributor

Choose a reason for hiding this comment

The 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
Loading