We've got a bit of a problem in the factory. Our product tends to generate foam when being stored in tanks. It's so bad that the foam actually comes out of the top of the tanks and onto the floor! Discussions so far tend toward changing some of the process conditions (temperature mostly). However, I've since learned that foam generation can be minimized by careful inlet piping design.
Here's what I've come up with so far:

The tank on the left is a typical tank. The liquid entering the tank splashes onto the liquid already in the tank and creates foam.
The second tank has the inlet pipe extended almost to the bottom of the tank where the incoming liquid mixes with the liquid already in the tank without splashing and, therefore, less or no foam generation.
The third tank has the inlet pipe diverted towards the wall of the tank. The pipe end can be close to the bottom or not. The idea is that the liquid will spill onto the wall, forming a thin layer which causes the entrained gases to escape from the liquid which prevents foam generation.
I'm not really involved in the discussions since I'm more into electrical-instrumentation but the problem is interesting. I'd like to throw this question here and get some ideas on what really works in preventing foam generation.
Can anyone shed any light on this?