An alternative to the popular volume-of-fluid (VOF) and lattice Boltzmann (LB) methods for simulating fluid flow in porous media is the purely geometric pore morphology method (PMM). The PMM does not require solving partial differential equations and is therefore, orders of magnitude faster than the VOF and LB methods in terms of CPU time (e.g., about a week on 100 cores for the VOF vs. about 30 mins on one core for the PMM in our case). The PMM employs voxel-based morphological operations to provide a quasi-static approximation for capillary flow in porous structures. This paper presents step-by-step instructions for how to implement the PMM in the MATLAB environment, and further to benchmark the method using the simulation results obtained from the VOF and other continuum-based numerical methods. More specifically, this paper presents PMM simulations for the intrusion of a non-wetting fluid in two- and three-dimensional porous media with heterogeneous contact angles. Detailed discussions are also presented for the pros and cons of the PMM and how its non-continuum nature can be used as an advantage to conduct two-phase flow simulations in geometries where a symmetry boundary condition cannot be applied.
Read full abstract