InverseGammaBrokenPowerLawLightcurve#
- class uvex_transients.models.lightcurves.generic.InverseGammaBrokenPowerLawLightcurve(**overrides: Parameter | Quantity | float | int)[source]#
An inverse-gamma rise with a smoothly broken power-law decline, normalized to a given peak luminosity.
\[L(t) = \frac{L_0}{\mathcal{N}}\; x^{-p}\, \exp\left[p\left(1-\frac{1}{x}\right)\right] \left[1+\left(\frac{x}{x_s}\right)^{k(p-q)}\right]^{1/k}, \qquad x = \frac{t}{t_0},\quad t > 0.\]The factor \(x^{-p} \exp[p(1-1/x)]\) switches the emission on as \(t \rightarrow 0\) (it vanishes faster than any power of \(x\)), peaks at \(x = 1\), and then declines as \(x^{-p}\). The bracket is a smooth break in that power law, centred on \(x_s\) with sharpness \(k\) (larger is sharper). For \(p > q\) the light curve follows \(x^{-p}\) before the break and flattens onto
\[L \propto x^{-q}, \qquad x \gg x_s,\]after it. For \(p < q\) the roles of the two indices are exchanged. A peak exists for \(q > 0\).
The normalization \(\mathcal{N}\) is the maximum of the unnormalized expression, so that
\[\max_t L(t) = L_0\]exactly. The maximum has no closed form once the break is present. It is bracketed analytically, since it lies between \(x = 1\) and \(x = p/q\), and then located numerically, independently for each set of parameters.
Parameters
The light curve parameters are summarized below.
Parameter
Symbol
Description
amplitude\(L_0\)
Peak bolometric luminosity.
t_scale\(t_0\)
Time scale; the dimensionless time is \(x = t / t_0\).
p\(p\)
Index of the rise-and-decline factor, and of the decline before the break.
q\(q\)
Index of the late-time decline after the break.
x_break\(x_s\)
Location of the break, in units of \(t_0\).
smoothness\(k\)
Sharpness of the break.
See also
SmoothBrokenPowerLawLightcurveA smoothly broken power law with a power-law rise, normalized to peak at a given time.
DelayedExponentialLightcurveA gamma-like pulse with an exponential decline.
Methods
eval(t, **parameters)Evaluate the bolometric luminosity at the given time.
eval_cgs(t, **parameters)Bolometric luminosity, taking and returning plain cgs numbers.
eval_from_arrays(t, *parameters)Positional-argument form of
eval().eval_log(t, **parameters)Natural log of the bolometric luminosity, given physical-unit inputs.
eval_log_cgs(t, **parameters)Natural log of the bolometric luminosity, taking and returning plain cgs numbers.
get(k[,d])items()keys()pack_params_to_arrays(**parameters)Convert a dict of parameter values into an ordered sequence.
sample_parameters([size, rng, parameters])Draw random samples of some or all of this model's parameters.
simulate(t[, size, rng])Draw random parameter realizations and evaluate the model at the given time.
unpack_params_from_arrays(*parameters)Convert an ordered sequence of parameter values back into a dict.
values()