The Study Of Interplanetary Shocks, Geomagnetic Storms, And Substorms With The Windmi Model