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}\) fromcompute_photospheric_radius_piro21().- 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:
Temperature in K, broadcast as in
compute_luminosity_piro21().- Return type:
- Raises:
ValueError – If
tor a physical parameter is non-finite or not positive, ifn <= 5, or ifdeltais outside (1, 3).
References