redback.photosphere.CocoonPhotosphere
- class redback.photosphere.CocoonPhotosphere(time: ndarray, luminosity: ndarray, tau_diff: float, t_thin: float, vej: ndarray, nn: Union[float, int], **kwargs: None)[source]
Bases:
object
- __init__(time: ndarray, luminosity: ndarray, tau_diff: float, t_thin: float, vej: ndarray, nn: Union[float, int], **kwargs: None) None [source]
Cocoon Photosphere
- Parameters:
time (numpy.ndarray) – source frame time in days
luminosity (numpy.ndarray) – luminosity in ergs/s
tau_diff (float) – diffusion time in days
t_thin (float) – time to become optically thin in days
vej (numpy.ndarray) – ejecta velocity
nn (Union[float, int]) – density power law index
kwargs – Additional keyword arguments
- __call__(**kwargs)
Call self as a function.
Methods
__init__
(time, luminosity, tau_diff, t_thin, ...)Cocoon Photosphere
calculate_photosphere_properties
()calculate_photosphere_temperature
()calculate_r_photosphere
()Attributes
DIFFUSION_CONSTANT
RADIUS_CONSTANT
STEF_CONSTANT
reference
set_vphoto