The foam generator is usually fixed on the wall of the oil tank. When the foam liquid with a certain mixing ratio is passing through the generator, a large amount of air is injected into the foam, and the foam is sprayed to the surface of the burning liquid to extinguish the fire.