uvex_transients.models.shock_cooling.piro.compute_temperature_piro21#

uvex_transients.models.shock_cooling.piro.compute_temperature_piro21(t: PhysicalInput, E_envelope: PhysicalInput, R_envelope: PhysicalInput, M_envelope: PhysicalInput, kappa: PhysicalInput, n: NumericalInput = 10.0, delta: NumericalInput = 1.1) → Quantity[source]#

Blackbody temperature \(T(t)\) of the photosphere.

Eq. 22 of Piro et al.[1],

\[T(t) = \left[\frac{L(t)}{4\pi r_\mathrm{ph}^2(t)\,\sigma_\mathrm{SB}}\right]^{1/4},\]

with \(L\) from compute_luminosity_piro21() and \(r_\mathrm{ph}\) from compute_photospheric_radius_piro21().

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:

Temperature in K, broadcast as in compute_luminosity_piro21().

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