This is a 2D implementation of the TVCG paper Fast Animation of Lightning Using An Adaptive Mesh. It includes both the simulation and rendering components described in that paper. In particular, a quadtree conjugate gradient Poisson solver is included.
Source, including a project file for VC++ Express.