A Fast Green's Function method for evaluating the potential field in planar geometry. The following links point to a zipped tarball of code, a PDF describing the algorithm, and a README file.
Potential Field Code (Version 0.9)
Potential Field Algorithm
Potential Field README