Applications and generalizations of the foam drainage equation