External aerodynamics of the magnetosphere