{ "cells": [ { "cell_type": "markdown", "id": "f346fb77", "metadata": {}, "source": [ "# Volume-Based Estimators\n", "\n", "When TARDIS runs, we enter into a loop with two main components: a Monte Carlo iteration occurs, and then the plasma state is updated based on the \"estimators\" described in this page. These estimators use the Monte Carlo packets to estimate how the light-matter interactions in the supernova affect the conditions in the ejecta. This concept was originally developed by [] and successively refined by [], [] and [].\n", "\n", "## Theory\n", "\n", "### J and nu_bar\n", "\n", "Ordinarily, TARDIS is not concerned about the physical amount of time a packet spends traveling through the ejecta. Instead, we consider the \"time of simulation\" $\\Delta t$ which is chosen to be the amount of time in which the photosphere emits the ensemble of packets (see [Energy Packet Initialization](../montecarlo/initialization.ipynb)). When looking at the estimators, a slightly different interpretation of the packets is necessary. Here, we view the packets as not carrying a discrete amount of energy $\\varepsilon$ that is emitted in a time interval $\\Delta t$, but as being a flow of energy that carries an energy $\\varepsilon$ over a time $\\Delta t$ -- that is, each packet is carrying a luminosity (energy per unit time) of $L = \\frac{\\varepsilon}{\\Delta t}$. Now, we can say that if a packet spends a time $\\delta t$ in the supernova's ejecta, it contributes an energy of $L\\delta t= \\frac{\\varepsilon}{\\Delta t}\\delta t$ into the radiation energy of the ejecta.\n", "\n", "To account for the effects of the Monte Carlo packets on the ejecta, TARDIS uses the packets to first determine the average radiation energy density $E$ throughout each shell, where the energy density is the total radiation energy in the shell divided by the volume of the shell $V=\\frac{4}{3}\\pi (r_\\mathrm{outer}^3-r_\\mathrm{inner}^3)$. Therefore, we add up the amount of energy each packet contributes to the radiation energy in that shell, and divide by the total volume of the shell:\n", "$$E=\\frac{1}{V}\\sum_i L_i\\delta t_i=\\frac{1}{V}\\sum_i \\frac{\\varepsilon_i}{\\Delta t}\\delta t_i = \\frac{1}{V\\Delta t}\\sum_i \\varepsilon_i\\delta t_i$$\n", "where we sum over every Monte Carlo packet in the shell. Note that we are interested in the energy density in the co-moving frame (i.e. the energy density \"according to the plasma,\" see [reference frames](../montecarlo/propagation.rst#reference-frames)). Now, we note that the amount of time the Monte Carlo packet spends in a shell is $\\delta t = \\frac{l_i}{c}$ where $l$ is the distance that the packet travels through the shell. Thus, our estimator is\n", "$$E=\\frac{1}{V\\Delta t}\\sum_i \\varepsilon_i\\frac{l_i}{c} = \\frac{1}{cV\\Delta t}\\sum_i \\varepsilon_i l_i.$$\n", "\n", "Using this energy density, we can then calculate the mean radiation intensity $J$ in that shell using the relation $J=\\frac{c}{4\\pi} E$, which gives us\n", "$$J=\\frac{1}{4\\pi V\\Delta t}\\sum_i \\varepsilon_i l_i.$$\n", "Since along any path the co-moving energy of the packet is continuously doppler shifted, we approximate this estimator using the co-moving energy at the beginning of the packet's path (theoretically, the midpoint of the path would be a better option. However, we use the beginning of the path for computational ease at a very small cost to the estimator's accuracy).\n", "\n", "Next, we calculate the mean radiation frequency in each shell. For this, in each shell we add up the frequency of each packet weighted by the intensity they contribute to the shell. Remembering that intensity is $\\frac{c}{4\\pi}$ times the energy density, and as before each packet contributes an energy of $\\frac{\\varepsilon_i l_i}{c\\Delta t}$ and thus energy density of $\\frac{\\varepsilon_i l_i}{cV\\Delta t}$ to its shell, we have that each packet contributes an intensity of $\\frac{\\varepsilon_i l_i}{4\\pi V\\Delta t}$ to its shell. So,\n", "$$\\bar \\nu = \\sum_i \\frac{\\varepsilon_i l_i}{4\\pi V \\Delta t} \\nu_i = \\frac{1}{4\\pi V \\Delta t}\\sum_i \\varepsilon_i \\nu_i l_i$$\n", "where once again the co-moving energy and frequency of each packet are taken at the beginning of the packet's path.\n", "\n", "