Application of defoamer in the wastewater system of papermaking and pulping