Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Chem. Eng.

Sec. Computational Methods in Chemical Engineering

This article is part of the Research TopicApproaches for Producing Fast Physics-Based Models for the Process IndustriesView all articles

Steady State 1D Two-Phase Flow Differentiable Modeling, Learning from Field Data and Inverse Problem Applications in Oil Wells

Provisionally accepted
Anderson  Carlos FallerAnderson Carlos Faller1,2*Saon  Crispim VieiraSaon Crispim Vieira1Marcelo  Souza de CastroMarcelo Souza de Castro3,4
  • 1Petrobras, Santos, Brazil
  • 2Universidade Estadual de Campinas, Campinas, Brazil
  • 3School of Mechanical Engineering, Universidade Estadual de Campinas, Campinas, Brazil
  • 4Centro de Estudos de Energia e PetrĂ³leo, Universidade Estadual de Campinas, Campinas, Brazil

The final, formatted version of the article will be published soon.

Accurate modeling of steady-state two-phase flow is critical for the design and operation of systems in the oil and gas industry, yet traditional models often struggle to adapt to specific field conditions. This paper introduces a novel, end-to-end differentiable framework that integrates physics-informed neural networks with a Neural Ordinary Differential Equation (Neural ODE) formulation to predict pressure and temperature profiles in complex deepwater wells and pipelines. By leveraging automatic differentiation, the entire simulation becomes a trainable model, allowing for the simultaneous optimization of data-driven components and the automated tuning of physical parameters, directly from field data. Our results demonstrate that this approach achieves superior accuracy in pressure prediction compared to tuned industry-standard correlations. A key finding of this work is that pre-training the model on a large experimental dataset provides a robust physical foundation, which, when fine-tuned on sparse field data, significantly improves performance. This highlights the effectiveness of a transfer learning strategy in bridging the domain gap between experimental and real-world conditions. Our results show this two-stage approach is more effective than training specialized models on field data alone. Furthermore, the differentiable nature of the framework enables its seamless application to inverse problems; we demonstrate its use with Randomized Maximum Likelihood (RML) for uncertainty quantification and virtual sensing. This work presents a powerful new paradigm for creating self-calibrating, data-driven simulation tools with significant potential for digital twin applications.

Keywords: Two-phase flows, simulation, Automatic differentiation, machine learning, Physics-informed, neural networks, oil and gasproduction

Received: 16 Aug 2025; Accepted: 18 Nov 2025.

Copyright: © 2025 Faller, Vieira and Castro. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Anderson Carlos Faller, faller@petrobras.br

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.