redback.transient_models.afterglow_models.base_models

Functions

RK4_step_numba(ghat, dm_rk4, G_rk4, M, fac, ...)

Single RK4 step - matches Python exactly

afterglow_models_sed(time, **kwargs)

A base class for afterglowpy models for bandpass magnitudes/flux/spectra/sncosmo source.

afterglow_models_with_energy_injection(time, ...)

A base class for afterglowpy models with energy injection.

afterglow_models_with_jet_spread(time, **kwargs)

A base class for afterglow models with jet spreading.

alternativepowerlaw_redback(time, redshift, ...)

An alternative powerlaw structured jet implemented directly in redback.

alternativepowerlaw_redback_refreshed(time, ...)

An alternative refreshed powerlaw structured jet implemented directly in redback.

calc_afterglow_step1_numba(G, dm, p, xp, Fx, ...)

Calculate synchrotron parameters - matches Python exactly

calc_afterglow_step2_numba(Dl, Om0, rotstep, ...)

Calculate emission properties - matches Python exactly

cocoon(time, redshift, umax, umin, loge0, k, ...)

A cocoon afterglow model from afterglowpy

cone_afterglow(time, redshift, thv, loge0, ...)

A cone afterglow model from afterglowpy

doublegaussian_redback(time, redshift, thv, ...)

Double Gaussian structured jet implemented directly in redback.

doublegaussian_redback_refreshed(time, ...)

Double Gaussian structured, refreshed jet implemented directly in redback.

erf_approximation_numba(x)

Numba-compatible erf approximation that matches scipy.special.erf closely

gaussian(time, redshift, thv, loge0, thw, ...)

A gaussian structured jet model from afterglowpy

gaussian_redback(time, redshift, thv, loge0, ...)

A Gaussian structure afterglow model implemented directly in redback.

gaussian_redback_refreshed(time, redshift, ...)

A Refreshed Gaussian structured jet model implemented directly in redback.

gaussiancore(time, redshift, thv, loge0, ...)

A gaussiancore model from afterglowpy

get_ag_numba(FBB, nuc, num, nu1, Fmax, p)

Calculate flux at frequency - matches Python exactly with overlapping conditions

get_gamma_numba(G0, Eps, therm, steps, n0, k)

Calculate gamma evolution - matches Python exactly

get_gamma_refreshed_numba(G0, G1, Eps, Eps2, ...)

Calculate gamma evolution with energy injection - matches Python exactly

get_obsangle_numba(phii, thi, tho)

Calculate observer angles - matches Python exactly

get_segments_numba(thj, res)

Calculate jet segments - matches Python exactly

get_structure_numba(gamma, en, thi, thc, ...)

Calculate jet structure - matches Python exactly

jetsimpy_gaussian(time, redshift, thv, ...)

A gaussian jet model from jetsimpy

jetsimpy_powerlaw(time, redshift, thv, ...)

A power-law jet model from jetsimpy

jetsimpy_tophat(time, redshift, thv, loge0, ...)

A tophat jet model from jetsimpy

kilonova_afterglow(time, redshift, umax, ...)

A kilonova afterglow model from afterglowpy, similar to cocoon but with constraints.

powerlaw_redback(time, redshift, thv, loge0, ...)

A Classic powerlaw structured jet implemented directly in redback.

powerlaw_redback_refreshed(time, redshift, ...)

A Classic refreshed powerlaw structured jet implemented directly in redback.

powerlawcore(time, redshift, thv, loge0, ...)

A power law with core structured jet model from afterglowpy

smoothpowerlaw(time, redshift, thv, loge0, ...)

A smoothpowerlaw structured jet model from afterglowpy

tophat(time, redshift, thv, loge0, thc, ...)

A tophat jet model from afterglowpy

tophat_from_emulator(time, redshift, thv, ...)

Evaluate a tophat afterglow model using an mpl regressor.

tophat_redback(time, redshift, thv, loge0, ...)

A tophat model implemented directly in redback.

tophat_redback_refreshed(time, redshift, ...)

A Refreshed tophat model implemented directly in redback.

twocomponent_redback(time, redshift, thv, ...)

A two component model implemented directly in redback.

twocomponent_redback_refreshed(time, ...)

A refreshed two component model implemented directly in redback.

Classes

RedbackAfterglows(k, n, epsb, epse, g0, ek, ...)

RedbackAfterglowsRefreshed(k, n, epsb, epse, ...)