Abstract
An efficient numerical method is demonstrated for solving the Fokker-Planck equation for the electron distribution function in the presence of an electric field of arbitrary strength. The approach is continuum (Eulerian), and we employ a relativistic collision operator, valid for arbitrary energies. Both primary and secondary runaway electron generation are included. For primary generation, a time-independent formulation of the problem is described, requiring only the solution of a single sparse linear system. As an application, the electron distribution function is used for calculating the synchrotron emission spectrum of the runaways.