A Query-Time Framework for Transient 2D Pore-Scale Flow Prediction and Generative Design
Authors: Yiming Wang, Jiale Zhu, Zhichen Ye, Yandong Lv, Shiqi Wang, Jinlong Liu, Yucheng Fan
Organizations: School of Civil Engineering, The University of Sydney, Sydney, 2006, NSW, Australia · MOE Key Laboratory of Soft Soils and Geoenvironmental Engineering, Zhejiang University, Hangzhou, 310058, China · College of Civil Engineering and Architecture, Zhejiang University, Hangzhou, 310058, China · School of Civil Engineering, Southeast University, Nanjing, 211189, China · School of Civil and Environmental Engineering, UNSW Sydney, Sydney, 2052, NSW, Australia
Pore-scale flow governs transport and permeability behaviour in porous media engineering applications, yet repeated lattice Boltzmann method (LBM) simulation across many geometries and design queries remains costly for repeated deployment. This study formulates transient pore-scale flow prediction as a geometry-conditioned query-time operator and introduces QSGS-Transient-7606, a benchmark of 7,606 two-dimensional porous structures each paired with 30 logarithmically sampled LBM states. The proposed continuous-time pore-scale flow surrogate model (CT-PoreFlow) integrates topology-aware geometry encoding, compressed spectral mixing, and log-time conditioning with a late-time flux-calibration objective. On unseen test geometries, CT-PoreFlow achieves a velocity relative L2 of 0.2248 and a terminal permeability error of 12.81%. Frozen morphology and computed tomography image audits confirm reasonable cross-geometry robustness without fine-tuning. The surrogate is then embedded in an inverse design workflow, screening 9,216 generative adversarial network and diffusion candidates across 18 property targets prior to LBM verification. Guided GAN sampling attains 98.11% through-connectivity and 72.28% conditional design success, exceeding diffusion-based generation. The framework unifies transient flow prediction, transport-aware screening, and LBM-verified inverse design for porous media.
Figures & tables
Figure 1: The computational framework.
Figure 2: From pixel-resolved geometry to Darcy-scale transport.
Figure 3: Pixel-resolved geometry and transport-oriented topology representation. (a) Pore mask Mp under left-to-right pressure driving. (b) Connected-pore mask Mc : teal is through-connected pore space, orange is nonspanning pore space, and black is solid. (c) Euclidean wall distance De/H . (d,e) Inlet- and outlet-referenced four-neighbour geodesic distances. Panels (a–e) form XG . (f) Halfway bounce-back at the same pixel-scale interface.
Figure 4: CT-PoreFlow computational graph.
Figure 5: Representative terminal LBM states across the prescribed porosity intervals.
Method
Rel. L2
MAE p∗
Speed MAE
k error
τh error
Mass balance
ms/frame
Time-U-Net
0.2439
0.0165
4.41×10−8
14.99%
7.81%
0.0974
1.01
Time-FNO
0.4092
0.0304
7.39×10−8
46.97%
17.09%
0.4558
0.79
DeepONet
0.8494
0.0833
1.98×10−7
109.82%
148.25%
0.8935
0.54
CT-PoreFlow
0.2248
0.0143
3.97×10−8
12.81%
5.10%
0.0839
1.32
Table 1: Overall held-out field and engineering transport accuracy. Field metrics use 22,920 geometry–time records, whereas transport metrics use the terminal states of 764 unseen geometries.
Figure 6: Time-resolved velocity relative L2 and normalised-pressure MAE on 764 held-out geometries.
Figure 8: Terminal permeability and hydraulic-tortuosity calibration for 764 paired held-out geometries.
Prediction and loss configuration
Rel. L2 velocity
MAE p∗
Flux error
Parameters (M)
Terminal-anchored steady-residual decoder
0.2435
0.0161
54.76%
12.12
Direct transient decoder
0.2138
0.0138
18.79%
10.21
CT-PoreFlow
0.2248
0.0143
12.81%
10.21
Time-U-Net
0.2439
0.0165
14.99%
8.70
Table 2: Comparison of CT-PoreFlow decoder and flux-calibration configurations, with Time-U-Net included as a reference baseline.
Figure 9: Terminal morphology OOD validation. (a) Rule-based families absent from QSGS training. (b) Image-derived OOD examples from the minimum- and maximum-porosity computed tomography slices, selected before viewing prediction errors. (c) Terminal velocity relative L2 for every QC-passing computed tomography slice. (d) Same-node RTX A4000 wall time for the LBM terminal solve and synchronized model-only inference.
Figure 10: Frozen-model performance on the rule-based morphology OOD set.
Figure 11: Transient comparison for high tortuosity, the highest joint-error case, and the strongest CT-PoreFlow and Time-U-Net advantage cases.
Figure 12: Controlled inverse retrieval in the held-out LBM library. (a,b) Requested versus LBM-verified permeability and hydraulic tortuosity, with equality lines, tolerance bands, the full random-QSGS cloud, and deterministic selections from the learned and ablated methods. (c) Violin, box, and sample-point summaries of the complete target-distance distributions. (d) Success@20.
Method
Selections
Mean D
k target error
τh target error
Success@20 (%)
Random-QSGS
900
1.618
64.79%
8.84%
7.67
Morphology-only
18
2.626
87.22%
16.82%
5.56
Time-U-Net
18
0.537
13.04%
4.33%
77.78
CT-PoreFlow
18
0.386
11.44%
2.80%
83.33
Direct transient decoder
18
0.700
18.03%
6.04%
55.56
LBM-oracle
18
0.262
7.30%
1.54%
100.00
Table 3: Controlled surrogate-ranking benchmark over 18 property targets and 764 unseen geometries.
Figure 14: Property-conditioned candidate quality across low-, middle-, and high-porosity specifications. Grouped bars compare the conditional GAN and conditional diffusion model in terms of (a) through-connectivity, (b) best attainable surrogate target distance, (c) pairwise binary Hamming diversity, and (d) mean surrogate target distance.
Figure 15: Surrogate-to-LBM round-trip calibration for the 414 QC-passing generated candidates.
Figure 16: Representative QC-passing guided designs at low, middle, and high target porosity.
Multiphase flow in porous microstructures is central to CO2 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.
Chunyang Wang, Mingrui Zhang, Yuyan Zhang +5
Imperial College London · Stanford University · EarthFlow AI, Inc. +1
Inverse design of three-dimensional porous media is central to applications in filtration, catalysis, energy storage, fuel cells, thermal management, and biomedical scaffolds, but remains challenging because many distinct pore geometries can share similar porosity or permeability while small structural changes can strongly affect transport behaviour. This paper proposes a physics-guided generative AI framework for property-targeted porous media design, combining a property-aware variational autoencoder, a conditional latent diffusion model, and an independently trained differentiable structure-to-property surrogate. The framework learns a compact, physically informative latent design space, generates porous structures conditioned on target porosity and directional permeability, and refines generated samples using property-level feedback during denoising and decoding. Experiments on procedurally generated structures and real micro-CT porous-media datasets show improved target-property matching, directional permeability control, and property correlation compared with representative property-aware variational-autoencoder and latent-diffusion baselines. The results demonstrate a scalable route towards controllable inverse design of complex porous geometries and establish a foundation for simulation-informed generative AI tools in engineering and advanced materials discovery.
Peng Wang
Centre for Vision, Speech and Signal Processing (CVSSP), University of Surrey, Guildford, UK
Accurate simulation of fluid flow in porous media is challenging due to complex pore-space geometries and the computational cost of solving the Navier-Stokes equations. This difficulty is particularly important when repeated simulations are required, as standard numerical solvers may converge slowly in intricate porous domains. We present a neural-network-based framework for predicting pore-scale velocity fields directly from sample geometry. The method uses a convolutional encoder-decoder architecture with skip connections to preserve spatial detail while extracting multi-scale features. Physical consistency is encouraged through a custom loss function combining velocity reconstruction with incompressibility, no-flow conditions inside solids, periodicity constraints, and agreement with the global tortuosity index. We analyze the influence of the corresponding loss weights and quantify the contribution of individual loss components to prediction accuracy. Several CNN backbones are evaluated to identify architectures providing accurate and robust predictions. The generalization ability of the trained model is tested on samples outside the training distribution, including changes in obstacle geometry, boundary conditions, porosity, and realistic porous structures. Finally, we demonstrate a practical use of the predicted velocity fields as initial conditions for Lattice-Boltzmann simulations. This warm-start strategy accelerates solver convergence, reducing the number of iterations in over 90% of tested cases.
Rafał Topolnicki, Paweł Dłotko, Maciej Matyka
Dioscuri Center in Topological Data Analysis, Institute of Mathematics, Polish Academy of Sciences, ul. ´Sniadeckich 8, 00-656, Warsaw, Poland · Institute of Experimental Physics, Faculty of Physics and Astronomy, University of Wrocław, pl. M. Borna 9, 50-204, Wrocław, Poland · Institute of Theoretical Physics, Faculty of Physics and Astronomy, University of Wrocław, pl. M. Borna 9, Wrocław, 50-204, Poland +1