The magnetosphere deflects energetic particles that emanate from the sun, changing its size and shape as it's hit.