redback.transient_models.afterglow_models.kilonova_afterglow_nakarpiran
- redback.transient_models.afterglow_models.kilonova_afterglow_nakarpiran(time, redshift, loge0, mej, logn0, logepse, logepsb, p, **kwargs)[source]
A kilonova afterglow model based on Nakar & Piran 2011
- Parameters:
time – time in days in the observer frame
redshift – source redshift
loge0 – initial kinetic energy in erg of ejecta
mej – mass of ejecta in solar masses
logn0 – log10 of the number density of the circumburst medium in cm^-3
logepse – log10 of the fraction of energy given to electrons
logepsb – log10 of the fraction of energy given to the magnetic field
p – electron power law index
kwargs – Additional keyword arguments
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.
- Returns: