redback.transient_models.supernova_models.csm_interaction
- redback.transient_models.supernova_models.csm_interaction(time, redshift, mej, csm_mass, vej, eta, rho, kappa, r0, **kwargs)[source]
- Parameters:
time – time in days in observer frame
redshift – source redshift
mej – ejecta mass in solar masses
csm_mass – csm mass in solar masses
vej – ejecta velocity in km/s
eta – csm density profile exponent
rho – csm density profile amplitude
kappa – opacity
r0 – radius of csm shell in AU
kwargs – Must be all the kwargs required by the specific interaction_process, photosphere, sed methods used e.g., for Diffusion and TemperatureFloor: kappa_gamma, temperature_floor ‘base model’ from homologous_expansion_models list
interaction_process – Default is CSMDiffusion. 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 – 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’