Factors contributing to solar wind and geomagnetic storms