uvex_transients.models.shock_cooling.piro.compute_luminosity_piro21#
- uvex_transients.models.shock_cooling.piro.compute_luminosity_piro21(t: PhysicalInput, E_envelope: PhysicalInput, R_envelope: PhysicalInput, M_envelope: PhysicalInput, kappa: PhysicalInput, n: NumericalInput = 10.0, delta: NumericalInput = 1.1) Quantity[source]#
Bolometric shock cooling luminosity \(L(t)\).
Eqs. 17, 20, and 21 of Piro et al.[1],
\[\begin{split}L(t) = \frac{\pi (n - 1)}{3 (n - 5)} \frac{c R_e v_t^2}{\kappa} \begin{cases} (t_d / t)^{4/(n - 2)} & t \le t_d \\ \exp\left[-\frac{1}{2}\left(t^2 / t_d^2 - 1\right)\right] & t \ge t_d. \end{cases}\end{split}\]- Parameters:
t (
Quantityorarray_like) – Times since explosion (floats are taken to be in s). Must be positive.E_envelope (
Quantityorarray_like) – Energy \(E_e\) imparted to the envelope (floats are taken to be in erg).R_envelope (
Quantityorarray_like) – Initial envelope radius \(R_e\) (floats are taken to be in cm).M_envelope (
Quantityorarray_like) – Envelope mass \(M_e\) (floats are taken to be in g).kappa (
Quantityorarray_like) – Constant opacity (floats are taken to be in cm^2/g).n (
array_like, optional) – Density power-law indices; seecompute_ejecta_normalization_piro21().delta (
array_like, optional) – Density power-law indices; seecompute_ejecta_normalization_piro21().
- Returns:
Luminosity in erg/s. Inputs are broadcast against one another, so e.g. a time grid of shape
(T,)against parameters of shape(N, 1)gives an(N, T)result.- Return type:
- Raises:
ValueError – If
tor a physical parameter is non-finite or not positive, ifn <= 5, or ifdeltais outside (1, 3).
References