A theory of the diurnal variations of the thermosphere.