Numerical Simulation of Foamy Oil Depletion Tests