From 3a4fbaf97471a9fafb520093a2550b76cc6c9208 Mon Sep 17 00:00:00 2001 From: Shreyas Singh Date: Mon, 27 Feb 2023 18:56:00 +0530 Subject: [PATCH 1/6] Fixed typo in Physics Walkthrough Intro --- docs/physics/intro/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/physics/intro/index.rst b/docs/physics/intro/index.rst index a97ff64801a..4fdfcc06b3f 100644 --- a/docs/physics/intro/index.rst +++ b/docs/physics/intro/index.rst @@ -11,7 +11,7 @@ The goal of TARDIS is, given input information about a supernova, to determine ( The physics of TARDIS is in four major parts, which are summarized here and in the diagram below. First, the TARDIS simulation is set up (:doc:`../setup/index`) from a TARDIS configuration (see :doc:`here <../../io/configuration/read_configuration>` for how the configuration is created). This involves the creation of the supernova model and the initial conditions of the supernova's plasma, as well as initializing the Monte Carlo runner. Next is the Monte Carlo Iteration (:doc:`../montecarlo/index`) where the heart of TARDIS takes place; packets of light are sent through the supernova and tracked as they interact with matter. Next, TARDIS uses information from the Monte Carlo iteration to update properties of the plasma to eventually find the correct plasma state (:doc:`../update_and_conv/update_and_conv`). This process of doing a Monte Carlo iteration and then updating the plasma is repeated for a specified number of times or until certain aspects of the plasma state converge (as is also discussed in :doc:`../update_and_conv/update_and_conv`). After that, data generated in the Monte Carlo simulation is used to synthesize the output spectrum of the supernova (:doc:`../spectrum/index`). -In the diagram, each physics step is shown in a box with the name of the step (bolded and underlined) along with the method that triggers the step (italicized) and the major components of the step. The reading of the configuration and the overall itterative process (comprising the Monte Carlo Iteration step and Updating Plasma and Convergence step) are also shown, again with the methods triggering these processes in italics. +In the diagram, each physics step is shown in a box with the name of the step (bolded and underlined) along with the method that triggers the step (italicized) and the major components of the step. The reading of the configuration and the overall iterative process (comprising the Monte Carlo Iteration step and Updating Plasma and Convergence step) are also shown, again with the methods triggering these processes in italics. .. graphviz:: tardis_flowchart.dot From 235bdfd36e46cd2c619cc492e1b903cd2f6161c5 Mon Sep 17 00:00:00 2001 From: Shreyas Singh Date: Mon, 27 Feb 2023 19:42:11 +0530 Subject: [PATCH 2/6] Updated .mailmap --- .mailmap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.mailmap b/.mailmap index 469c9342f1b..3b02c7cdded 100644 --- a/.mailmap +++ b/.mailmap @@ -169,6 +169,9 @@ Sampark Sharma Shilpi Prasad Shilpi Prasad Shilpi <72646134+shilpiprd@users.noreply.github.com> +Shreyas Singh +Shreyas Singh shreyas3156 + Satwik Kambham Satwik Kambham code-explorer From b453031f6c9fb2798700b2cadd595f5c5a64ec48 Mon Sep 17 00:00:00 2001 From: Shreyas Singh Date: Tue, 28 Feb 2023 17:02:30 +0530 Subject: [PATCH 3/6] Changed velocity subscript in line with the rest of the document --- docs/physics/setup/model.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/physics/setup/model.ipynb b/docs/physics/setup/model.ipynb index 6451c28488f..abf537b322d 100644 --- a/docs/physics/setup/model.ipynb +++ b/docs/physics/setup/model.ipynb @@ -123,7 +123,7 @@ "id": "1ee56110", "metadata": {}, "source": [ - "Notice that `radius = velocity*time_explosion`, and similarly for `r_inner`, `r_outer`, and `r_middle`. You can get the radius of the photosphere via `v_inner_boundary*time_explosion` and outer edge of the supernova via `v_outer_boundary*time_explosion`.\n", + "Notice that `radius = velocity*time_explosion`, and similarly for `r_inner`, `r_outer`, and `r_middle`. You can get the radius of the photosphere via `v_boundary_inner*time_explosion` and outer edge of the supernova via `v_boundary_outer*time_explosion`.\n", "\n", "
\n", " \n", @@ -616,7 +616,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.13" + "version": "3.8.16" } }, "nbformat": 4, From a7e10bc6f9818e4d10a43f9be4fe863cf914066d Mon Sep 17 00:00:00 2001 From: Shreyas Singh Date: Mon, 13 Mar 2023 18:16:07 +0530 Subject: [PATCH 4/6] Fix sentence in MonteCarlo basic principles --- docs/physics/montecarlo/basicprinciples.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/physics/montecarlo/basicprinciples.rst b/docs/physics/montecarlo/basicprinciples.rst index 148d4bf2fa0..03ea4099a74 100644 --- a/docs/physics/montecarlo/basicprinciples.rst +++ b/docs/physics/montecarlo/basicprinciples.rst @@ -26,7 +26,7 @@ emitted spectrum (see :ref:`spectrum`). Random Sampling Basics ====================== -During both the initialization of these photons and their propagation through the ejecta are modeled through +Both the initialization of these photons and their propagation through the ejecta are modeled through probabilistic processes. This involves assigning probabilities to the occurrence of certain events or properties. For example, during isotropic scattering, finding a photon scattering into any given direction is equally likely. During the Monte Carlo simulation, assignments From 98a54f8d5d3920dc7db7df83b712fe2179316278 Mon Sep 17 00:00:00 2001 From: Shreyas Singh Date: Thu, 16 Mar 2023 16:50:35 +0530 Subject: [PATCH 5/6] Fix sentence in light-matter interactions physics-intro --- docs/physics/intro/light_and_matter.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/physics/intro/light_and_matter.rst b/docs/physics/intro/light_and_matter.rst index 4d2fe7f85c0..2163dacb978 100644 --- a/docs/physics/intro/light_and_matter.rst +++ b/docs/physics/intro/light_and_matter.rst @@ -122,4 +122,4 @@ where :math:`\alpha` is called the **opacity**. Note that for our purposes, the We can interpret this in the following way: prior to traveling a distance :math:`d`, a photon will have had a :math:`e^{-\alpha d}` probability of *not* interacting with matter (and thus a :math:`1-e^{-\alpha d}` probability of having gone through an interaction). As you would expect, the larger the distance, the more likely it is that a photon interacts prior to traveling that distance, since it would have "more opportunities" to interact. Additionally, a higher :math:`\alpha` means a photon has a higher likelihood of interacting. So, more dense materials, for example, have a higher :math:`\alpha` since there is more matter for the light to interact with. Because :math:`\alpha` must take into account all three types of light-matter interactions, many of which depend on the frequency of light, it can be very difficult to calculate -- this is one of TARDIS's main tasks. -Finally, the term :math:`\alpha d` has a special name: the **optical depth** :math:`\tau`. It is a dimensionless quantity that gives information about how likely it is for a photon to have gone through an interaction. Specifically, there is a :math:`1-e^{-1}\approx 63.2\%` of a photon interacting prior to traveling an optical depth of 1. The actual distance required to travel and optical depth of 1 depends on :math:`\alpha` and thus the material and the frequency of the light. +Finally, the term :math:`\alpha d` has a special name: the **optical depth** :math:`\tau`. It is a dimensionless quantity that gives information about how likely it is for a photon to have gone through an interaction. Specifically, there is a :math:`1-e^{-1}\approx 63.2\%` of a photon interacting prior to traveling an optical depth of 1. The actual distance required to travel an optical depth of 1 depends on :math:`\alpha` and thus the material and the frequency of the light. From 56aaebfa8cdda4b3d38dbf043df6ef66a947c584 Mon Sep 17 00:00:00 2001 From: Shreyas Singh Date: Mon, 27 Mar 2023 20:08:12 +0530 Subject: [PATCH 6/6] Fix the reference to Energy Packet Initialization in Line Interaction Treatments --- docs/physics/montecarlo/lineinteraction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/physics/montecarlo/lineinteraction.rst b/docs/physics/montecarlo/lineinteraction.rst index 43f65553aaa..6e1c23ba725 100644 --- a/docs/physics/montecarlo/lineinteraction.rst +++ b/docs/physics/montecarlo/lineinteraction.rst @@ -8,7 +8,7 @@ TARDIS currently offers different ways to handle line interactions, which may be activated via the :term:`YAML` configuration file. Independently of the chosen treatment, a number of steps are always carried out when a Monte Carlo packet performs a line interaction. Since TARDIS adopts the indivisible energy packet -formalism (see :ref:`Energy Packets `), the packet will have the +formalism (see :doc:`Energy Packets `), the packet will have the same energy in the co-moving frame after (f for final) the line interaction as before (i for initial). Thus, after accounting for the frame transformations,