Magnetic storm dynamics of the thermosphere