The SLAB-Diffusion
package is a tool for modeling the radiative diffusion of photons through a slab of circumstellar material (CSM), e.g. in order to simulate the observables (effective blackbody temperature and radius) of an interacting Supernova.
>>> import SLAB_Diffusion
>>> SLAB_Diffusion.calculate_T_and_R_in_time()
The SLAB_Diffusion
package was used in Soumagnac et al, 2018 to model the radiative diffusion of photons through a slab of circumstellar material.
The version available here assumes constant density (and hence constant diffusion constant D=h^2/t_D) in the slab. A more sophisticated version with varying density can be made available on demand by emailing maayane.soumagnac at weizmann.ac.il
If you are using SLAB-Diffusion, please reference Soumagnac et al. 2018
Bibtex entry for Soumagnac et al. 2018
pip install SLAB_Diffusion
python 2
: higher than2.7.10
python 3
math
numpy
pylab
math
matplotlib
The default parameters are those used in Soumagnac et al. 2018 and allow to recover Figure 11.
After every modification of params.py
, rerun
>>> python setup.py install
from the SLAB_Diffusion
directory
>>> import SLAB_Diffusion
>>> SLAB_Diffusion.calculate_T_and_R_in_time()
The following images will be stored in you outputs directory.