An Open-Source, AI-Powered Simulator for Automated Pressure-Transient Interpretation in Dry-Gas Reservoirs: Application to Wireline Formation Testing and Underground Gas Storage
Abstract
Abstract Underground gas storage (UGS) wells and wireline formation tester (WFT) interval pressure-transient tests (IPTT) share a common interpretation need: fast, reliable single-well pressure-transient analysis of dry-gas reservoirs under production, injection, and shut-in conditions. In practice, both workflows depend on closed commercial software and expert-driven manual analysis, which limits accessibility, transparency, and reproducibility. This paper presents an open-source Python simulator and automated interpretation framework that addresses this gap. The framework builds on a previously published and commercially validated numerical foundation for real-gas pressure-transient simulation (SPE-215576-MS): a fully implicit 2-D (r-z) single-phase real-gas model with wellbore storage, skin, and non-Darcy (Forchheimer) flow. The present work re-implements that formulation in Python, extends it to full 3-D cylindrical (r-θ-z) flow, and embeds three artificial-intelligence components: exact-gradient Jacobians by automatic differentiation, a machine-learning surrogate for pressure-dependent gas properties, and gradient-based automated history matching with Monte Carlo uncertainty quantification. The Python implementation reproduces analytical radial-flow, limited-entry, buildup, skin, wellbore-storage, and non-Darcy signatures, with back-calculated permeability within 0.1% of the model input. In 3-D, a point source at one azimuthal sector produces physically ordered multi-probe responses that no 2-D radial model can represent. Automated history matching with exact automatic-differentiation gradients recovers radial permeability, vertical permeability, mechanical skin, and the non-Darcy coefficient to four significant figures in 52 function evaluations from a deliberately poor initial guess, whereas identically configured finite-difference gradients plateau at a noise floor after 435 evaluations. Monte Carlo uncertainty quantification of a simulated flow-after-flow test delivers probabilistic absolute open flow in minutes on a standard laptop, propagating a ±35% permeability uncertainty to a P90/P10 deliverability ratio of 1.8, and an injection–falloff cycle demonstrates that the identical workflow characterizes storage wells under injection conditions. The complete workflow is delivered through an interactive browser dashboard requiring no programming from the user. The framework lowers the barrier to high-fidelity single-well gas analysis and provides an extensible open platform for the energy-transition applications of gas storage surveillance and formation testing.