Abstract
The formulation of reservoir simulation models requires translating high-level geological and engineering intent into detailed numerical specifications that are internally consistent, executable, and physically meaningful. Even for conceptual studies, this translation involves numerous modeling decisions related not only to governing equations and parameters, but also to grid construction, geometry manipulation, heterogeneity generation, well configuration, and numerical controls. These steps are traditionally performed manually and constitute a significant bottleneck in reservoir simulation workflows.
We present an agent-assisted workflow for the construction, execution, and analysis of conceptual reservoir simulation models from underspecified natural-language descriptions. The approach is demonstrated using a modular, fully differentiable reservoir simulator and focuses on interactive, execution-grounded model construction rather than one-shot code generation. The agent operates in an iterative loop in which it interprets user intent, detects ambiguities, consults the user when critical assumptions must be specified, generates simulator-specific code, and validates the result through execution and solver feedback.
We study a representative three-dimensional waterflooding example that includes layered lognormal permeability fields, geometric deformation into an anticline-like dome, conversion between structured and unstructured grids, fracture-inspired high-permeability streaks, and a multi-well injection-production strategy defined in terms of injected pore volume. The example is deliberately conceptual and not conditioned on observational data, but it exercises the same nonlinear solvers, discretizations, and residual-based formulations used in practical reservoir simulation. We analyze how execution-grounded validation reveals logical and implementation errors that are not detectable through static analysis alone, and how these errors are resolved without compromising physical consistency.
A distinguishing feature of the proposed workflow is that the resulting simulation model is fully differentiable with respect to all parameters, including those governing physical properties as well as parameters introduced during model construction and execution, such as grid geometry, heterogeneity generation, and control schedules. This enables efficient gradient-based sensitivity analysis, parameter calibration and optimization.
After successful execution, the agent can also generate a concise, unambiguous natural-language specification of the completed model, supporting reproducibility, as well as a structured explanatory summary of the modeled system. The results suggest that agentic workflows can significantly reduce the effort required to construct and run nontrivial reservoir simulations while maintaining numerical rigor and transparency.