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 (Quantity or array_like) – Times since explosion (floats are taken to be in s). Must be positive.

  • E_envelope (Quantity or array_like) – Energy \(E_e\) imparted to the envelope (floats are taken to be in erg).

  • R_envelope (Quantity or array_like) – Initial envelope radius \(R_e\) (floats are taken to be in cm).

  • M_envelope (Quantity or array_like) – Envelope mass \(M_e\) (floats are taken to be in g).

  • kappa (Quantity or array_like) – Constant opacity (floats are taken to be in cm^2/g).

  • n (array_like, optional) – Density power-law indices; see compute_ejecta_normalization_piro21().

  • delta (array_like, optional) – Density power-law indices; see compute_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:

Quantity

Raises:

ValueError – If t or a physical parameter is non-finite or not positive, if n <= 5, or if delta is outside (1, 3).

References