pychangcooper.photons.synchrotron_emission module

class pychangcooper.photons.synchrotron_emission.SynchrotronEmission(gamma_grid, B)[source]

Bases: pychangcooper.photons.emission_kernel.EmissionKernel

compute_spectrum(electron_distribution)[source]
Parameters:electron_distribution – the electron distribution to convolve
Returns:
set_photon_energies(photon_energies)[source]

Set the photon energies and build the synchrotron kernel

pychangcooper.photons.synchrotron_emission.synchrotron_cooling_constant(B)[source]

Compute the characteristic cooling constant for synchrotron cooling

Define a factor that is dependent on the magnetic field B. The cooling time of an electron at energy gamma is DT = 6 * pi * me*c / (sigma_T B^2 gamma) DT = (1.29234E-9 B^2 gamma)^-1 seconds DT = (cool * gamma)^-1 seconds where B is in Gauss.

pychangcooper.photons.synchrotron_emission.synchrotron_cooling_time(B, gamma)[source]

Compute the characteristic cooling time of an electron of energy gamma for a given magnetic field strength