redback.transient_models.kilonova_models.two_layer_stratified_kilonova

redback.transient_models.kilonova_models.two_layer_stratified_kilonova(time, redshift, mej, vej_1, vej_2, kappa, beta, **kwargs)[source]

Uses kilonova_heating_rate module to model a two layer stratified kilonova

Parameters:
  • time – observer frame time in days

  • redshift – redshift

  • mej – ejecta mass in solar masses

  • vej_1 – velocity of inner shell in c

  • vej_2 – velocity of outer shell in c

  • kappa – constant gray opacity

  • beta – power law index of density profile

  • kwargs – Additional keyword arguments

  • frequency – Required if output_format is ‘flux_density’. frequency to calculate - Must be same length as time array or a single number).

  • bands – Required if output_format is ‘magnitude’ or ‘flux’.

  • output_format – ‘flux_density’, ‘magnitude’, ‘spectra’, ‘flux’, ‘sncosmo_source’

  • lambda_array – Optional argument to set your desired wavelength array (in Angstroms) to evaluate the SED on.

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

Returns:

set by output format - ‘flux_density’, ‘magnitude’, ‘spectra’, ‘flux’, ‘sncosmo_source’