Simulation and theory of two-phase flow in porous media | Synapse