A dynamic model of the mesosphere and lower thermosphere