Power flow analyses of electrical grids. Submitted by Patrick LeGresley, Stanford, July 2013