redback.transient_models.combined_models.tophat_and_arnett

redback.transient_models.combined_models.tophat_and_arnett(time, av, redshift, thv, loge0, thc, logn0, p, logepse, logepsb, ksin, g0, f_nickel, mej, **kwargs)[source]

function to combine the flux density signals of a tophat afterglow and an arnett supernova with extinction added

Parameters:
  • time – time in days in observer frame

  • redshift – source redshift

  • av – absolute mag extinction

  • thv – viewing angle in radians

  • loge0 – log10 on axis isotropic equivalent energy

  • thc – half width of jet core/jet opening angle in radians

  • beta – index for power-law structure, theta^-b

  • logn0 – log10 number density of ISM in cm^-3

  • p – electron distribution power law index. Must be greater than 2.

  • logepse – log10 fraction of thermal energy in electrons

  • logepsb – log10 fraction of thermal energy in magnetic field

  • ksin – fraction of electrons that get accelerated

  • g0 – initial lorentz factor

  • f_nickel – fraction of nickel mass

  • mej – total ejecta mass in solar masses

  • kwargs – Additional keyword arguments Must include all the kwargs required by the specific interaction_process, photosphere, sed methods used e.g., for Diffusion and TemperatureFloor: kappa, kappa_gamma, vej (km/s), temperature_floor

  • r_v – extinction parameter, defaults to 3.1

  • spread – whether jet can spread, defaults to False

  • latres – latitudinal resolution for structured jets, defaults to 2

  • tres – time resolution of shock evolution, defaults to 100

  • spectype – whether to have inverse compton, defaults to 0, i.e., no inverse compton. Change to 1 for including inverse compton emission.

  • q (l0, ts,) – energy injection parameters, defaults to 0

  • interaction_process – Default is Diffusion. Can also be None in which case the output is just the raw engine luminosity, or another interaction process.

  • photosphere – Default is TemperatureFloor. kwargs must have vej or relevant parameters if using different photosphere model

  • sed – Default is blackbody.

  • frequency – frequency to calculate - Must be same length as time array or a single number

Returns:

flux density with extinction added