redback.transient_models.afterglow_models.doublegaussian_redback

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

Double Gaussian structured jet implemented directly in redback. Based on Lamb, Mandel & Resmi 2018 and other work. Look at the RedbackAfterglow 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)

  • 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 – Fractional contribution of energy to second Gaussian. Defaults to 0.1, must be less than 1.

  • aa – Lorentz factor for second Gaussian, must be less than 1.

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