Air flow in a collapsing cavity