The physical process whereby an immiscible fluid phase replaces a second resident fluid in a porous medium is characteristic of many subsurface operations that include remediation of non-aqueous phase liquids (NAPLs), enhanced oil recovery (EOR), and carbon capture and storage (CCS) technology (Edery et al., 2018;Singh et al., 2017). Mobilization of residual NAPL and oil blobs and trapping of gas bubbles are critical to such operations (Geistlinger & Mohammadian, 2015).In CCS applications, the trapping of supercritical carbon dioxide in the interstitial spaces of porous rocks (known as capillary or residual trapping) inhibits plume migration and enhances storage safety and capacity (Al-Menhali et al., 2016;Krevor et al., 2015). Capillary trapping can contribute up to 40% of the overall CO 2 trapping in the first 100 years post-injection (Li et al., 2015), and it is strongly influenced by the wettability of the porous medium (