When God sends down water from the sky and floods run through the valleys , certain quantities of foam rise on the surface of the flood water . This is similar to that foam which rises when you expose something to the heat of a fire to manufacture ornaments or for other reasons .