redback.transient_models.afterglow_models.twocomponent_redback_refreshed

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

A refreshed two component model implemented directly in redback. Tophat till thc and then second component till thj. 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 – Fraction of energy in the outer sheath of the jet. Defaults to 0.01

  • aa – Lorentz factor outside the core. Defaults to 4.

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