redback.interaction_processes.CSMDiffusion

class redback.interaction_processes.CSMDiffusion(time, dense_times, luminosity, kappa, r_photosphere, mass_csm_threshold, csm_mass, **kwargs)[source]

Bases: object

__init__(time, dense_times, luminosity, kappa, r_photosphere, mass_csm_threshold, csm_mass, **kwargs)[source]
Parameters:
  • time – source frame time in days

  • dense_times – dense time array in days

  • luminosity – luminosity in erg/s

  • kappa – opacity in cm^2/g

  • r_photosphere – photosphere radius in cm (CGS)

  • mass_csm_threshold – mass of the optically-thick CSM (tau > 2/3) in grams (CGS), as returned directly by _csm_engine. Used in CGS form in the diffusion timescale formula.

  • csm_mass – total csm mass in solar masses

  • csm_diffusion_method – Method used for the CSM diffusion integral. Default is “cumulative”. Use “quadrature” for the legacy per-time integral.

  • csm_diffusion_timesteps – Number of quadrature points used for each requested time when csm_diffusion_method=”quadrature”. Default is 3000.

Adds new attribute for luminosity accounting for the interaction process

__call__(**kwargs)

Call self as a function.

Methods

__init__(time, dense_times, luminosity, ...)

convert_input_luminosity()