Using an exponential density profile¶
Overview¶
In this mode, the density profile (function of velocity and time since explosion) is assumed to follow a functional form:
\[\rho (v, t_{exp}) = \rho_0 (t_{0} / t_{exp})^{3} \exp( -v / v_0)\]
defined by reference density, velocity and time parameters. These parameters are set in the input YAML file, specifically in the “structure” subsection of the “model” section, under the “density” heading (see example below).
Note
In this mode, the velocity grid has to be explicitly defined in the YAML file (see example below)
TARDIS input file example¶
The following example shows the relevant sections of a TARDIS input YAML file, specifying an exponential density:
model:
structure:
type: specific
velocity:
start : 1.1e4 km/s
stop : 20000 km/s
num: 20
density:
type : exponential
time_0: 2. day
rho_0: 6.e-10 g/cm^3
v_0: 3000. km/s