The motion of a cavity in a vertical rotating tube