arXiv:2610.10314cs.LGOct 2026

Manuscript Offprint

arXiv:2610.10314

PoreML: A Data-Driven Framework for Learning Multiphase Flow in Porous Media

Chunyang Wang, Mingrui Zhang, Yuyan Zhang, Linqi Zhu, Xin Ju, Edo Sicco Boek, Martin J. Blunt, Gege Wen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Multiphase flow in porous microstructures is central to CO2CO_{2} 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 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 1^{1}, validated against analytical solutions and published experiments, enables reproducible data generation. (b) A 3.3TB dataset 2^{2} 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 3^{3} 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.

(A) Primary Drainage

Figure

(B) Capillary Trapping

Figure

(C) GDL Water Intrusion

Figure

(D) Flip-Chip Underfill

Figure 1: PoreML simulation campaigns. (A) Primary drainage and (B) capillary trapping for CO2CO_{2} sequestration and geological energy storage, (C) GDL water intrusion for fuel-cell design, and (D) flip-chip underfill for chip packaging. Only the fluid phase of interest is shown for clarity; translucent gray meshes depict the solid.

1^{1}https://github.com/PoreML/bob

2^{2}https://huggingface.co/datasets/PoreML/PoreML_data

3^{3}https://github.com/PoreML/poreml

1 INTRODUCTION

Some of the fundamental technologies of the twenty-first century, from geological CO2CO_{2} sequestration to efficient fuel cells, rely on porous materials (Farber et al., 2025). Their performance is decided inside pores only micrometers wide, where a small shift of a fluid interface can reroute the entire flow. At low flow speeds, capillarity and wettability dominate. An interface pins at a narrow throat, then abruptly floods the adjacent pores, an event known as a Haines jump (Figure 3C; Berg et al., 2013; Tekseth et al., 2024). The same forces break and remake fluid connections: in snap-off, a wetting film swells in a throat until it pinches off the non-wetting thread and strands an isolated ganglion (Figure 3B; Roof, 1970; Singh et al., 2017); in coalescence, separated ganglia meet and merge, reopening a pathway (Figure 3A; Rücker et al., 2015; Reynolds et al., 2017). These pore-scale events shape behavior at far larger scales: how much fluid is trapped, how easily each phase flows, and why displacement is hysteretic (Armstrong et al., 2016; Schlüter et al., 2016; Bultreys et al., 2024). Yet they can occur at fixed saturation, hidden from bulk descriptors (Armstrong et al., 2016), and how they add up to continuum-scale flow is still not fully understood (Singh et al., 2019; Berg et al., 2026). Predicting them is nonetheless essential. For example, in geological CO2CO_{2} storage, returning brine fragments connected CO2CO_{2} into trapped ganglia, helping prevent buoyant escape (Krevor et al., 2015; Andrew et al., 2014; Krevor et al., 2023). In polymer-electrolyte fuel cells, product water must leave through the fibrous gas-diffusion layer (GDL) before it blocks the pathways that supply reactant gas (Weber et al., 2014; Wang et al., 2023; Sarkezi-Selsky et al., 2022). In flip-chip packaging, capillary forces draw encapsulant through solder-bump arrays (Ng et al., 2022; Wang et al., 2016; Lee et al., 2024; Wang et al., 2026), and the cured underfill protects the chip by shielding its solder joints from thermal stress (Zhang & Wong, 2004).

(A)

PoreML Workflow

Figure

Training

Dataset

Geometric Metrics

Area

Volume

Curvature

(B)

Scale-Up

Figure

Trained on 1283128^{3}

Inference on 2563256^{3}

(C)

Domain Shift

Figure

Generated

Geometry

μCT Scans

Figure 2: PoreML framework. (A) A 3D LBM solver turns generated and μ\muCT geometries under controlled flow conditions into time-resolved phase, pressure, and velocity fields; models predict the next frame and are scored with field errors and geometry-aware metrics. (B) Scale-Up: train on small domains, test on larger ones at the same resolution. (C) Geo-Shift: train on generated geometries, test on μ\muCT scans.

Machine learning offers new avenues for understanding and modeling these dynamics (Kochkov et al., 2021; Santos et al., 2020; Shodiev et al., 2021), but progress is constrained by the scarcity of time-resolved, three-dimensional experimental and simulation data (Emeliana et al., 2026). Experiments demand carefully prepared samples, specialized facilities, and expert operators; core-analysis campaigns can take weeks to months (McPhee et al., 2015; Speight, 2020), while capturing rapid pore-scale events in 3D can require synchrotron imaging (Berg et al., 2013). Direct simulation on μ\muCT scans provides a controlled alternative, but it inherits the quality of its input mesh: the pore space must be imaged finely and segmented with care, since both change the computed flow (Saxena et al., 2018; Garfi et al., 2020; Carrillo et al., 2022). It is also bound by resolution: the narrowest throats must span several voxels before the simulated interface behaves physically (Li et al., 2020), and at that resolution the cost climbs steeply as three-dimensional domains grow (Armstrong et al., 2026). Statistically meaningful results need a representative elementary volume (REV), the smallest sample whose averages no longer depend on its size (Bear, 1972), which for multiphase flow far exceeds that for porosity (Georgiadis et al., 2013; Jackson et al., 2020); simulations at that scale have relied on leadership-class supercomputers (Wang et al., 2023), beyond the reach of most groups. Consequently, dense ground truth is most accessible on small synthetic samples, whereas practical predictions are needed on representative domains and real materials (Blunt et al., 2013; Berg et al., 2026). This mismatch poses two distinct challenges. Scale: at fixed resolution, a domain n voxels wide costs O(n3)\mathcal{O}(n^{3}) per time step, so large-domain ground truth stays scarce while larger samples bring more pores and longer connectivity paths. Geometry: moving from synthetic structures to scanned materials means generalizing to a different distribution of pore geometries. The central challenge is to turn data we can afford to generate into reliable predictions at the scales and in the materials where they matter, and to judge them with metrics grounded in the physics rather than in voxel error alone.

(A) Primary Drainage

Figure

(B) Capillary Trapping

(C) GDL Water Intrusion

(D) Flip-Chip Underfill

Figure 3: Representative pore-scale dynamics. Localized events are highlighted in yellow; these mechanisms are not exclusive to the displayed campaign, and events such as snap-off can also occur during drainage. (A) Primary drainage: ganglion coalescence, where interfacial tension retracts menisci and connects neighboring non-wetting bodies. (B) Capillary trapping: snap-off, where wetting films invade a constricted throat and pinch a non-wetting thread into an isolated ganglion. (C) GDL intrusion: Haines jump, an abrupt meniscus depinning and pore-filling event in a fibrous throat network. (D) Underfill: microbubble or void entrapment, where advancing encapsulant fronts around solder balls leave trapped air pockets.

We introduce PoreML, a simulation-to-learning framework for 3D multiphase flow in porous media (Figure 2). We first develop a GPU-native, JAX-based color-gradient lattice Boltzmann method (LBM) solver with geometric wetting (Leclaire et al., 2017; Akai et al., 2018), validated against analytical solutions and published pore-scale experiments. Using this engine, we invest over 3,000 GPU-hours to generate 560 time-resolved 3D simulations with 158,546 time snapshots across four applications: rock drainage, capillary trapping, GDL water intrusion, and flip-chip under-fill. The dataset pairs generated structures with real geometries obtained from micro-computed tomography ( μ\muCT) scans, and spans multiple domain sizes, wettabilities, and viscosity contrasts. Two challenges test application-relevant generalization: Geo-Shift transfers models from generated structures to real rock and carbon-paper geometries from μ\muCT scans, while Scale-Up transfers them to domains with doubled spatial dimensions at fixed resolution.

Our contributions are: (1) An open-source solver, validated on an eight-case suite of analytical solutions and published experiments (Appendix E) and sharded across GPUs for large domains, with which the community can generate data for new geometries, physical conditions, and applications. (2) An open dataset, to our knowledge the first, and the largest, to provide time-resolved, full 3D fluid distributions for multiphase flow in porous media, spanning generated and μ\muCT-scanned geometries, four applications, two domain sizes, and a grid of wettabilities and viscosity ratios. (3) An integrated learning benchmark: standardized one-step training and rollout evaluation of five architectures, with metrics assessing field accuracy, geometry, and topology. It also includes, to our knowledge, the first joint evaluation of geometry transfer and domain-size extrapolation for learned 3D multiphase porous-media dynamics. By making all three publicly available through an extensible, unified framework, we aim to help the community develop and compare reliable machine-learning models for multiphase flow in porous media and advance the field..

References (91)