Three-Phase Flow and Wettability Effects in Triangular Capillaries