uvex_transients.models.shock_cooling.piro.compute_diffusion_time_piro21#

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

Diffusion time \(t_d\), when the diffusion depth reaches the transition velocity.

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

\[t_d = \left[\frac{3\kappa K M_e}{(n - 1) v_t c}\right]^{1/2}.\]

The luminosity switches from a power law to an exponential decay here.

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

  • 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:

\(t_d\) in s.

Return type:

Quantity

References