Text this: The application of variational methods for calculating two-dimensional immiscible displacement in porous media /