lA 2D electromagnetic PIC
code uses a
leap-frog, finite-difference scheme to solve Maxwell's equations on a 2D rectangular grid in the
frame moving with
the beam. The current deposition
scheme is designed to conserve
charge exactly, so there is no need to solve Poisson's equation.