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

Incorporating old physics section of the documentation #1470

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Mission Statement

physics/montecarlo/index
physics/plasma/index
physics/old_physics/index


.. toctree::
Expand Down
4 changes: 4 additions & 0 deletions docs/physics/montecarlo/propagation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ Here, the subscripts highlight the packet properties before (:math:`i` for
initial) and after (:math:`f` for final) the scattering. Also, the common
parameter of special relativity, :math:`\beta = v / c`, is used.

The ratio :math:`\frac{1 - \beta \mu_i}{1 - \beta \mu_f}` can be visualized with the following graph for a speed of :math:`1.1 \times 10^4` km/s:

.. plot:: physics/pyplot/plot_mu_in_out_packet.py

Line interactions proceed in a similar fashion. Since we assume that the
re-emission process occurs isotropically as well, the same directional sampling
as described above is used. Energy conservation again dictates how the packet
Expand Down
14 changes: 0 additions & 14 deletions docs/physics/old_physics/index.rst

This file was deleted.

152 changes: 0 additions & 152 deletions docs/physics/old_physics/montecarlo_old.rst

This file was deleted.

95 changes: 0 additions & 95 deletions docs/physics/old_physics/old_plasma.rst

This file was deleted.

50 changes: 48 additions & 2 deletions docs/physics/plasma/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,57 @@ During each iteration of the main code, TARDIS updates the plasma using the `upd

Plasma Calculations
-------------------

.. note::
In this documentation we use the indices :math:`i, j, k` to mean atomic number, ion number and level number respectively.

`BasePlasma` serves as the base class for all plasmas and can just calculate the atom number densities for a given input of abundance fraction.

.. math::
N_{atom} = \rho_\textrm{total} \times \textrm{Abundance fraction} / m_\textrm{atom}

In the next step the line and level tables are purged of entries that are not represented in the abundance fractions are saved in `BasePlasma.levels` and `BasePlasma.lines`. Finally, the function `BasePlasma.update_t_rad` is called at the end of initialization to update the plasma conditions to a new :math:`T_\textrm{radiation field}` (with the give t_rad). This function is the same in the other plasma classes and does the main part of the calculation. In the case of `BasePlasma` this is only setting `BasePlasma.beta_rad` to :math:`\frac{1}{k_\textrm{B}T_\textrm{rad}}`.

The next more complex class is `LTEPlasma` which will calculate the ionization balance and level populations in Local Thermal Equilibrium conditions (LTE). The :class:`NebularPlasma`-class inherits from `LTEPlasma` and uses a more complex description of the BasePlasma.

.. toctree::
:maxdepth: 2

lte_plasma
nebular_plasma
macroatom

TARDIS also allows for NLTE treatments of specified species, as well as special NLTE treatments for Helium.

.. toctree::
:maxdepth: 2

nlte
helium_nlte
helium_nlte



.. _tau_sobolev:

Sobolev optical depth
---------------------

After the above calculations, TARDIS calculates the Sobolev optical depth :math:`\tau_\textrm{Sobolev}` with the following formula:


.. math::
C_\textrm{Sobolev} = \frac{\pi e^2}{m_e c}

\tau_\textrm{Sobolev} = C_\textrm{Sobolev}\, \lambda\, f_{\textrm{lower}\rightarrow\textrm{upper}}\,
t_\textrm{explosion}\, N_\textrm{lower}
(1 - \frac{g_\textrm{lower}}{g_\textrm{upper}}\frac{N_\textrm{upper}}{N_\textrm{lower}})


Macro Atom Line Interaction Treatment
-------------------------------------

The following page describes the macro atom treatment of line interactions:

.. toctree::
:maxdepth: 2

macroatom