redback.transient_models.afterglow_models.powerlaw_redback_refreshed

redback.transient_models.afterglow_models.powerlaw_redback_refreshed(time, redshift, thv, loge0, thc, thj, g1, et, s1, logn0, p, logepse, logepsb, g0, xiN, **kwargs)[source]

A Classic refreshed powerlaw structured jet implemented directly in redback. Tophat with powerlaw energy proportional to theta^ss and lorentz factor proportional to theta^aa outside core. Based on Lamb et al. 2019 and other work. Look at the RedbackAfterglowRefreshed class for more details/implementation.

Parameters:
  • time – time in days

  • redshift – source redshift

  • thv – observer viewing angle in radians

  • loge0 – jet energy in log_{10} ergs

  • thc – jet core size in radians

  • thj – jet edge in radians (thc < thj < pi/2)

  • g1 – Lorentz factor of shell at start of energy injection. 2 <= g1 < g0

  • et – factor by which total kinetic energy is larger

  • s1 – index for energy injection; typically between 0–10, some higher values, ~<30, are supported for some structures. Values of ~10 are consistent with a discrete shock interaction, see Lamb, Levan & Tanvir 2020

  • logn0 – ism number density in log_{10} cm^-3 or log_{10} A* for wind-like density profile

  • p – electron power law index

  • logepse – partition fraction in electrons

  • logepsb – partition fraction in magnetic field

  • g0 – initial lorentz factor

  • xiN – fraction of electrons that get accelerated. Defaults to 1.

  • kwargs – additional keyword arguments

  • res – resolution - set dynamically based on afterglow properties by default, but can be set manually to a specific number.

  • steps – number of steps used to resolve Gamma and dm. Defaults to 250 but can be set manually.

  • k – power law index of density profile. Defaults to 0 for constant density. Can be set to 2 for wind-like density profile.

  • expansion – 0 or 1 to dictate whether to include expansion effects. Defaults to 1

  • ss – Index of energy outside core. Defaults to -3

  • aa – Index of Lorentz factor outside the core. Defaults to -3

  • output_format – Whether to output flux density or AB mag

  • frequency – frequency in Hz for the flux density calculation

  • cosmology – Cosmology to use for luminosity distance calculation. Defaults to Planck18. Must be a astropy.cosmology object.

Returns:

flux density or AB mag. Note this is going to give the monochromatic magnitude at the effective frequency for the band. For a proper calculation of the magntitude use the sed variant models.