PoreML: A Data-Driven Framework for Learning Multiphase Flow in Porous Media
Organizations: Imperial College London · Stanford University · EarthFlow AI, Inc. · Queen Mary University of London
Abstract
Multiphase flow in porous microstructures is central to CO storage, fuel-cell operation, and flip-chip packaging. Predicting these flows remains challenging because wettability and complex pore geometry govern the nonlinear evolution of fluid interfaces. Machine learning holds substantial promise for advancing the field, but progress is constrained by scarce time-resolved 3D datasets and a lack of a unified workflow for training and evaluating models. To fill this critical gap, we introduce PoreML, an open-source framework unifying data generation, model training, and evaluation grounded in pore-scale physics. The framework comprises three core components. (a) A modern GPU-native lattice Boltzmann solver, validated against analytical solutions and published experiments, enables reproducible data generation. (b) A 3.3 TB dataset contains 560 simulation runs and 158,546 stored time steps across four application-driven scenarios. These trajectories span synthetic structures and geometries derived from micro-CT scans of real materials, covering diverse wetting conditions and viscosity ratios. (c) A unified learning framework evaluates one-step prediction and autoregressive rollouts. Its domain-specific evaluation protocols assess predictive accuracy and physical consistency. We evaluate five models of diverse architecture under these protocols. Two complementary challenges assess transfer to larger domains and from synthetic to micro-CT-derived structures. PoreML provides a shared foundation for machine-learning research on multiphase flow in porous media, with the aim of empowering the community to develop reliable predictive models and advance the field.
Figures & tables
| Dataset name | Cases | Domain size (voxels) | Contact angle ( ∘ ) | Viscosity ratio | Domain geometry | Simulation protocol |
| drainage_128 | 80 generated; 80 CT | Generated blobs, polydisperse spheres, and sphere packs; CT sandstones | Piston-driven non-wetting injection at ; water-wet porous outlet plate | |||
| drainage_256 | 8 generated; 8 CT | |||||
| trapping_128 | 80 generated; 80 CT | Generated and CT rock-like media | Piston-off equilibration, then wetting-water flood at ; open, pressure-anchored outlet | |||
| trapping_256 | 8 generated; 8 CT | |||||
| gdl_128 | 80 generated; 80 CT | Generated fiber mats; CT carbon paper at 5%, 20%, and 40% PTFE loading | Piston-driven through-plane water injection at ; open outlet; no plate | |||
| gdl_256 | 8 generated; 8 CT |
Appendix figures & tables35 assets
Supplementary material from the paper’s appendix.
Appendix
| Quantity | Value |
|---|---|
| Lattice | D3Q19 (rest + 6 axial + 12 diagonal) |
| Weights | (rest / axial / diagonal) |
| Sound speed | |
| Recoloring strength | (Eq. 15 ) |
| MRT non-shear rates | (drainage, trapping, GDL); fixed (underfill) |
| Wall BC | half-way bounce-back |
| Control variable | Definition |
|---|---|
| Capillary number | |
| Viscosity ratio | |
| Contact angle | angle of the non-wetting red phase at the wall |
| Surface tension | Laplace coefficient, |
| Case | Reference |
|---|---|
| Laplace law (§ E.1 ) | |
| Layered Poiseuille (§ E.2 ) | two-layer analytic profile |
| Contact angle, flat (§ E.3 ) | imposed and Akai et al. (2018) |
| Contact angle, curved (§ E.4 ) | sphere-on-sphere geometry |
| Washburn imbibition (§ E.5 ) | two-fluid Washburn law |
| Capillary pressure (§ E.6 ) | curvature-correct entry pressures |
| Campaign | Domain (voxels) | Runs | Frames per run | Frame interval | Frames |
|---|---|---|---|---|---|
| Drainage | 160 | 376 | 5,000 | 58,830 | |
| 16 | 694 | 5,000 | 10,643 | ||
| Trapping | 160 | 105 | 5,000 | 19,424 | |
| 16 | 239 | 5,000 | 3,616 | ||
| GDL | 160 | 292 | 5,000 | 45,437 | |
| 16 | 486 | 5,000 | 8,217 |