redback.transient_models.kilonova_models.mosfit_kilonova
- redback.transient_models.kilonova_models.mosfit_kilonova(time, redshift, mej_1, vej_1, temperature_floor_1, kappa_1, mej_2, vej_2, temperature_floor_2, kappa_2, mej_3, vej_3, temperature_floor_3, kappa_3, kappa_gamma, **kwargs)[source]
A three component kilonova model that should be exactly the same as mosfit’s kilonova model or Villar et al. 2017. Effectively the only difference to the redback three_component model is the inclusion of gamma-ray opacity in diffusion. Note: Villar et al. fix the kappa’s of each component to get the desired red/blue/purple components. This is not done here.
- Parameters:
time – observer frame time in days
redshift – redshift
mej_1 – ejecta mass in solar masses of first component
vej_1 – minimum initial velocity of first component
kappa_1 – gray opacity of first component
temperature_floor_1 – floor temperature of first component
mej_2 – ejecta mass in solar masses of second component
vej_2 – minimum initial velocity of second component
temperature_floor_2 – floor temperature of second component
kappa_2 – gray opacity of second component
mej_3 – ejecta mass in solar masses of third component
vej_3 – minimum initial velocity of third component
temperature_floor_3 – floor temperature of third component
kappa_3 – gray opacity of third component
kappa_gamma – gamma-ray opacity
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.
dense_resolution – resolution of the grid that the model is actually evaluated on, default is 300
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’