Analysis Of Geomagnetic Storms And Substorms With The Windmi Model