Numerical Simulation of Liquid Patch Formation and Retention in Porous Media