redback.transient_models.magnetar_models.piecewise_radiative_losses
- redback.transient_models.magnetar_models.piecewise_radiative_losses(time, a_1, alpha_1, l0, tau, nn, kappa, t0_s, **kwargs)[source]
Assumes smoothness and continuity between the prompt and magnetar term by fixing e0 variable
- Parameters:
time – time in seconds
A_1 – amplitude of curvature effect power law
alpha_1 – index of curvature effect power law
l0 – initial luminosity parameter
tau – spin-down damping timescale
nn – braking index
kappa – radiative efficiency
t0_s – time for radiative losses to start in seconds
kwargs – key word arguments for handling plotting/other functionality
- Returns:
luminosity