On Effects of Wettability on Multiphase Flow in Porous Media