AbstractWe discuss how some coronal mass ejections (CMEs) originating from the western limb of the Sun are associated with space weather effects such as solar energetic particles (SEPs), shocks or geo-effective ejecta at Earth. We focus on the August 24, 2002 coronal mass ejection, a fast (~2000 km s−1) eruption originating from W81. Using a three-dimensional magneto-hydrodynamic simulation of this ejection with the Space Weather Modeling Framework (SWMF), we show how a realistic initiation mechanism enables us to study the deflection of the CME in the corona and the heliosphere. Reconnection of the erupting magnetic field with that of neighboring streamers and active regions modify the solar connectivity of the field lines connecting to Earth and can also partly explain the deflection of the eruption during the first tens of minutes. Comparing the results at 1 AU of our simulation with observations by the ACE spacecraft, we find that the simulated shock does not reach Earth, but has a maximum angular span of about 120°, and reaches 35° West of Earth in 58 hours. We find no significant deflection of the CME and its associated shock wave in the heliosphere, and we discuss the consequences for the shock angular span.