Wave dynamics in the thermosphere: I: Tidal motion