A Generalized Flow Rate Model For Primary Production And An Analysis Of Gravity Drainage Through Numerical Simulation