Simulation of the propagation of charged particles in electric and magnetic fields.