[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Next Article in Journal
Influences of Reciprocal Altruistic Preferences and Reference Low-Carbon-Level Effect on Carbon Emission Transfer Strategies of Supply Chains
Previous Article in Journal
Surrounding Rock Squeezing Classification in Underground Engineering Using a Hybrid Paradigm of Generative Artificial Intelligence and Deep Ensemble Learning
You seem to have javascript disabled. Please note that many of the page functionalities won't work as expected without javascript enabled.
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Physics-Informed Generative Adversarial Network Solution to Buckley–Leverett Equation

1
College of Petroleum Engineering, Xi’an Shiyou University, Xi’an 710065, China
2
Engineering Research Center of Development and Management for Low to Extra-Low Permeability Oil & Gas Reservoirs in Western China, Ministry of Education, Xi’an Shiyou University, Xi’an 710065, China
*
Authors to whom correspondence should be addressed.
Mathematics 2024, 12(23), 3833; https://doi.org/10.3390/math12233833
Submission received: 7 November 2024 / Revised: 29 November 2024 / Accepted: 3 December 2024 / Published: 4 December 2024

Abstract

:
Efficient and economical hydrocarbon extraction relies on a clear understanding of fluid flow dynamics in subsurface reservoirs, where multiphase flow in porous media poses complex modeling challenges. Traditional numerical methods for solving the governing partial differential equations (PDEs) provide effective solutions but struggle with the high computational demands required for accurately capturing fine-scale flow dynamics. In response, this study introduces a physics-informed generative adversarial network (GAN) framework for addressing the Buckley–Leverett (B-L) equation with non-convex flux functions. The proposed framework consists of two novel configurations: a Physics-Informed Generator GAN (PIG-GAN) and Dual-Informed GAN (DI-GAN), both of which are rigorously tested in forward and inverse problem settings for the B-L equation. We assess model performance under noisy data conditions to evaluate robustness. Our results demonstrate that these GAN-based models effectively capture the B-L shock front, enhancing predictive accuracy while embedding fluid flow equations to ensure model interpretability. This approach offers a significant advancement in modeling complex subsurface environments, providing an efficient alternative to traditional methods in fluid dynamics applications.

1. Introduction

The efficient extraction of hydrocarbons from subsurface reservoirs and the geological storage of CO2 rely on a solid understanding of multiphase fluid dynamics in porous media [1,2,3,4]. These fluid movements are commonly governed by partial differential equations (PDEs) that describe fluid mechanics and phase interactions. Traditional approaches to solving these PDEs such as finite-difference, finite-volume, and finite-element methods achieve high accuracy but require substantial computational resources, especially for fine-scale simulations that capture the complex flow dynamics involved [5,6].
To enhance computational efficiency and enable real-time predictions, researchers are increasingly turning to deep learning (DL) as an alternative modeling tool. By integrating deep neural networks with traditional approaches, DL methods can both handle complex data relationships and offer predictive capabilities in real time [7,8,9]. For instance, Zhong et al. [10] employed a generative adversarial network (GAN) to predict reservoir pressure and fluid saturation during waterflooding, realizing significant computational savings. Other examples include Vikara et al.’s use of LSTM networks for predicting multiphase production in unconventional wells [11] and Fan et al.’s temporal convolutional network with gated recurrent units (TCN-GRUs), which improves oilfield production forecasting accuracy [12]. DL-based approaches excel at handling non-linear data and dynamic reservoir conditions, making them suitable for real-time applications. Alakeely and Horne [13] further applied variational autoencoders (VAEs) to estimate oil and water production across diverse reservoir conditions, while Wen et al. [14] developed a CO2 plume migration model that provides a scalable and faster alternative to evaluate geological CO2 storage.
Despite their advantages, DL models often lack interpretability compared to traditional numerical methods and require large datasets for accurate predictions. To address these issues, Physics-Informed Neural Networks (PINNs) incorporate the PDEs within the loss function of neural networks, using automatic differentiation to enable the model to learn directly from both data and physics-based constraints [15,16]. Raissi et al. [17] initiated this approach, leading to the development of various PINN adaptations, such as physics-guided and physics-constrained neural networks, as well as physics-informed attention mechanisms [18,19,20].
PINNs have successfully solved PDEs including flow, seismic wave, heat transfer, and diffusion equations [21,22,23,24]. For multiphase flow, Almajid et al. [25] applied PINNs to solve the Buckley–Leverett (B-L) equation for two-phase flow, while Fuks and Tchelepi [26] evaluated PINNs in three fluid displacement scenarios: concave, convex, and non-convex flux. They found that the PINNs underperformed on non-convex cases, though the addition of a second-order diffusive term significantly improved the model’s accuracy [27,28]. However, solving hyperbolic PDEs like the B-L equation remains challenging due to the formation of shock fronts with discontinuous gradients.
To address these challenges, this study proposes a novel GAN-based approach for solving the B-L equation. By incorporating the B-L equation constraints within the framework, two GAN configurations, a Physics-Informed Generator GAN (PIG-GAN) and Dual-Informed GAN (DI-GAN), are assessed for both forward and inverse problems, particularly in noisy data scenarios. Through two case studies, these models demonstrate the potential of GAN-based physics-informed networks for accurately predicting fluid flow dynamics in complex subsurface reservoirs.

2. Mathematical Formulation

2.1. Buckley–Leverett Equation

The B-L equation [29] is a hyperbolic partial differential equation (PDE) essential for understanding two-phase flow in porous media, particularly when water displaces oil in a 1D reservoir. This model, named after Ralph Buckley and Edward Leverett, characterizes the spatial and temporal evolution of water saturation as water is injected into the oil reservoir, as depicted in Figure 1.
The following Equation (1) is derived from mass conservation principles and Darcy’s law using fractional flow theory and is based on key assumptions: (1) linear and horizontal flow, (2) injection of water into an oil reservoir, (3) incompressibility of both oil and water, (4) immiscibility between oil and water, and (5) negligible effects of gravity and capillary pressure [30].
S w t + q T ϕ A f w S w x = 0
S w is the water saturation, t is time, x is the spatial coordinate, q T is the total flow rate, ϕ is the porosity of a porous medium, A is the cross-sectional area, and L is the formation length.
The associated initial and boundary conditions can be written as follows:
S w x ,   0 = S w c S w 0 ,   t = S i n j = 1 S o r    
S w c is the irreducible or connate water saturation, S i n j is the injection water saturation, and S o r is the residual oil saturation.
In Equation (1), the fractional flow function of water f w S w is defined as the ratio of water mobility ( λ w ) to that of total mobility ( λ T ) of water and oil, and is written as follows:
f w = λ w λ T = 1 1 + k r o μ w k r w μ o
k r i and μ i are the relative permeability and viscosity of phase i , respectively. We use Corey-type relative permeability functions [31]. Specifically, the relative permeability functions of water and oil phases are written as follows:
k r w = k r w , m a x S w S w c 1 S w c S o r n w
k r o = k r o , m a x 1 S w S o r 1 S w c S o r n o
k r i , m a x is the maximum relative permeability value of phase i , and n i is the relative permeability exponent of phase i .

2.2. Analytical Solution of B-L Equation

A defining feature of the B-L solution is the formation of a shock front. At this front, water saturation abruptly transitions from irreducible water saturation to a sharp-front saturation (illustrated in Figure 2), which progresses through the reservoir at a constant rate, pushing oil ahead. The water saturation profile behind this shock front changes smoothly from the injection saturation level to the sharp-front saturation level.
To analytically determine the position of this shock front, Welge’s graphical method [32] and the Method of Characteristics [33] are commonly used, and the position of the shock front can be expressed as follows:
x f = q t A ϕ d f w d S w f
Welge’s method involves a fractional flow curve representing the fraction of water flow as a function of water saturation within the reservoir, as shown in Figure 3. The key step in Welge’s approach is drawing a tangent line to this curve from the irreducible water saturation point on the horizontal axis, which enables the identification of the shock position. The fractional flow function typical in this context is a non-convex, S-shaped curve, as shown in Figure 3. This type of function is widely encountered in fractional flow analyses and results in a characteristic discontinuity that is central to understanding the behavior of two-phase flows in porous media.

3. Physics-Informed Generative Adversarial Network

Generative Adversarial Networks (GANs), a type of deep learning model, involve two neural networks, a generator and a discriminator, that train adversarially. The generator creates synthetic data samples that mimic real data, while the discriminator evaluates and differentiates these samples from actual data [34]. To incorporate physical constraints, a physics-informed GAN (PIG-GAN) embeds physical laws and constraints of initial and boundary conditions into its loss function, enabling the generation of data aligned with known physical laws. In our proposed approach, we use a GAN to solve the B-L equation through two configurations. The first configuration designs the generator as a Physics-Informed Neural Network (PINN), ensuring generated outputs adhere to the B-L theory. Here, the discriminator discerns between these generated solutions and actual water saturation observations.

3.1. Physics-Informed Generator (PIG)-GAN

In the PIG-GAN model, shown in Figure 4, the generator integrates boundary and initial conditions alongside collocation points to produce water saturation values constrained by the B-L equation. This structure not only enforces alignment with the B-L theory but also enables the discriminator to assess these outputs against actual data. The generator’s loss function includes a physical constraint term derived from the B-L equation, which helps ensure the generated data remain physically plausible, promoting greater generalization. Specifically, these constraints consider collocation points and boundary/initial condition points, represented, respectively, as red dots and blue crosses in Figure 4, allowing the model to adhere closely to the B-L dynamics.
The generator’s loss function is defined as follows:
L g e n e r a t o r = L G + λ P D E L P D E
λ P D E is the weight of physics loss functions; the loss functions L G and L P D E are given as follows.
The loss function L G of the generator is defined as follows:
L G = 1 M i = 1 M l o g D S ^ w x i , t i
M is the number of data fed into the PIG-GAN in each training batch; D S ^ w x i , t i is the probability that the discriminator determines the generated water saturation S ^ w ( x i , t i ) by the generator as real water saturation S w ( x i , t i ) .
The physical constraints L P D E are represented as follows:
L P D E = L B C + L I C + L B L
The loss L B C corresponds to the boundary data:
L B C = 1 N B C i = 1 N B C S ^ w ( 0 , t i ) S i n j 2
The loss L I C corresponds to the initial data:
L I C = 1 N I C i = 1 N I C S ^ w ( x i , 0 ) S w c 2
The loss L B L on the B-L equation residual is the following:
L B L = 1 N B L i = 1 N B L R ( x i , t i ) 2
The residual of the B-L equation R ( x i , t i ) is defined as follows:
R = S ^ w t + q T ϕ A f w S ^ w x
N B L , N I C , and N B C are the number of collocation points and number of boundary/initial condition points, respectively.
To enhance accuracy, the PIG-GAN applies automatic differentiation for the spatial–temporal partial derivatives of water saturation, avoiding the approximation errors common in finite-difference schemes. Unlike traditional methods, which require a strict grid layout, the PIG-GAN operates on neural network outputs and can use mesh-free approaches, such as Latin hypercube sampling for collocation point selection. This enables efficient and robust handling of PDEs even with noisy input data, enhancing model performance on complex fluid dynamics without the grid-block limitations of conventional numerical solvers.
The loss function of discriminator is expressed as follows:
L d i s c r i m i n a t o r   = 1 2 M i = 1 M l o g D S w ( x i , t i + l o g 1 D S ^ w x i , t i
D S w ( x i , t i is the probability that the discriminator determines the real data as real data; 1 D S ^ w x i , t i is the probability that the predicted water saturation from the generator by the discriminator data is judged as fake data.
The PIG-GAN is trained by solving the min–max problem inherent to the GAN framework:
min G max D L ( D ,   G ) = L d i s c r i m i n a t o r   + L g e n e r a t o r
Here, the discriminator (D) maximizes the objective by distinguishing accurate solutions from incorrect ones, while the generator (G) minimizes the objective by generating solutions that satisfy physical constraints.

3.2. Dual-Informed Generative Adversarial Network (DI-GAN)

The PIG-GAN model aims to generate water saturation predictions that align with the B-L equation, ensuring that the generated data adheres to fundamental flow mechanisms. However, PIG-GAN’s effectiveness is limited by its inability to fully leverage the adversarial optimization process typical of the GAN framework for minimizing complex physics-based loss functions. This shortfall arises because the PIG-GAN’s discriminator lacks physics-based supervision, restricting it from evaluating unlabeled instances based on physical accuracy and diminishing the model’s potential for realistic, physics-informed outputs.
To address this gap, the Dual-Informed GAN (DI-GAN), inspired by the work of Daw et al. [35], introduces physics-based supervision into both the generator and discriminator. This approach enables the DI-GAN to generate samples that not only appear realistic but also conform to underlying physical laws. By incorporating B-L equation constraints into the discriminator, DI-GAN can assess the physical plausibility of the generator’s outputs. The discriminator now evaluates the residuals of the B-L equation in both generated and actual data, improving the overall robustness and accuracy of predictions. Thus, DI-GAN surpasses PIG-GAN by ensuring that both generator and discriminator work in tandem to adhere to physical constraints, making it a more comprehensive and physics-compliant model for complex fluid dynamics.
DI-GAN retains the binary cross-entropy loss function framework, with the generator loss function defined by Equation (7), and a modified discriminator loss function defined in Equation (16).
L d i s c r i m i n a t o r   = 1 2 N i = 1 N l o g D S w ( x i , t i + l o g 1 D S ^ w x i , t i 1 2 N B L i = 1 N B L l o g D R x i , t i + l o g 1 D R x i , t i
D R x i , t i represents the probability that the B-L equation residuals are identified as accurate, while 1 D R x i , t i denotes the probability that the discriminator classifies the generated data residuals as inaccurate.

3.3. Evaluation Metrics

To assess the predictive accuracy of the models, three standard evaluation metrics are used: Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and Mean Squared Error (MSE). These metrics are defined as follows:
M A E = 1 N i = 1 N y ^ i y i
M A P E = 1 N i = 1 N y ^ i y i y i × 100 %
M S E = 1 N i = 1 N y i y ^ i 2
N represents the total number of data samples, y i denotes the true value at the i-th position, and y ^ i represents the predicted value at the i-th position.

4. Results and Discussion

4.1. Problem Setup

To facilitate solving the B-L equation, Equation (1) can be transformed into a dimensionless form as follows:
S w t D + f w x D = 0
In Equation (20), the dimensionless time, t D , and x D are introduced and defined as follows:
t D = q T ϕ A L t           x D = x L
Using the dimensionless time and distance, Equation (13) becomes the following:
R = S ^ w t D + f w S ^ w x D
Following the work by Fuks and Tchelepi [27,28], we incorporate a diffusive term into Equation (22), yielding the following revised equation:
R = S ^ w t D + f w S ^ w x D γ 2 S ^ w x D 2
Here, γ is a regularization parameter chosen to be 0.001. The addition of this diffusive term helps improve the model performance.
For this study, a 1D homogeneous reservoir model extending 100 m in the x-direction was used, and the specific formation and fluid parameters can be found in Table 1.
Welge’s graphical method, implemented in MATLAB 2020a by Wu [36], was employed to analytically solve the B-L equation with the parameters listed in Table 1. Figure 5 illustrates the 1D water saturation profiles obtained.

4.2. Network Architecture

To investigate the effectiveness of the PIG-GAN and DI-GAN models, we used the consistent network structure parameters detailed in Table 2.
The generator in each model comprises 10 hidden layers, while the discriminator includes 7 hidden layers, with each hidden layer containing 20 neurons. Both networks apply the tanh activation function and use the Adam optimizer.

4.3. Forward Problem

Our objective in the forward problem is to model the spatial and temporal evolution of water saturation accurately. Initially, a purely data-driven GAN model was applied, generating water saturation profiles. The PIG-GAN and DI-GAN frameworks were subsequently used, adding B-L equation constraints, enabling a comparative analysis of each model’s predictive accuracy.

4.3.1. PIG-GAN Model

Using the hyperparameter values from Table 2, we trained the data-driven GAN model. Three sets of samples, numbering 500, 2000, and 4000, were randomly taken from the water saturation distribution shown in Figure 5. The resulting GAN-generated profiles are presented in Figure 6 at the dimensionless moments t D = 0.4, 0.55, 0.70, revealing that the prediction accuracy improves with more training data, as demonstrated by closer alignment with Welge’s analytical solution. The data-driven model failed to capture the position of shock front even with 4000 training samples, although it could predict the saturation distribution behind the shock front.
Further, using the PIG-GAN, we trained the model with 100 boundary and 50 initial data points, and 10,000 collocation points sampled from the domain interior x D ,   t D   |   0 x D ,   t D 1 . The resulting profiles in Figure 7 show strong alignment with the analytical solutions at the shock front with only 150 training samples. The PIG-GAN accurately reproduces water saturation values in regions preceding the shock front, where saturation consistently remains at zero, as well as capturing the shock front’s position effectively.

4.3.2. DI-GAN Model

In training DI-GAN, we utilized the architecture described in Section 3.2, mirroring the same network layer structure and sampling approach as the PIG-GAN’s. After 15,000 training epochs, Figure 8 compares the DI-GAN’s predicted solutions against the analytical solutions. The DI-GAN model consistently achieves lower error rates, with metrics such as MSE, MAPE, and MAE outlined in Table 3, largely due to the dual physics-based supervision of both generator and discriminator. This dual supervision allows the DI-GAN to effectively capture non-linear solution features, resulting in more accurate performance compared to the data-driven and PIG-GAN approaches.

4.4. Inverse Problem

The objective of the inverse problem is to infer the parameters of the B-L equation, such as the irreducible water saturation ( S w c ) and residual oil saturation ( S o r ). This is particularly valuable in reservoir engineering, where uncertainties are often high due to complex geology and fluid dynamics. By estimating these parameters with reduced uncertainty, better-informed decisions can be made for oil-field development.
In multi-parameter inversion, relying solely on equation constraints may lead to unrealistic outcomes. Additional regularization helps ensure the inversion results remain reasonable. Consequently, the generator’s loss function includes inversion parameter errors, as shown in Equation (24):
L g e n e r a t o r = L G + λ P D E L P D E + λ i n v S ~ w c S w c 2 + S ~ o r S o r 2
S ~ w c and S ~ o r represent the inverted parameters, and S ~ w c S w c 2 + S ~ o r S o r 2 is the error between the estimated and their real values. λ i n v is the weight of the corresponding loss terms.
Furthermore, adjusting the weight λ i n v significantly impacts the outcome; a larger λ i n v increases sensitivity to loss, accelerating convergence but potentially leading to suboptimal local solutions, whereas a smaller λ i n v slows convergence and raises computational costs. After extensive testing, the optimal λ i n v value was found to be two in this study.
As shown in Equation (24), the PINNs offer an advantage in inverse problems by embedding physical laws directly into the training process, which reduces computational costs by optimizing for unknown parameters in a single model, unlike traditional methods that require repeated forward simulations.

4.4.1. Case 1: Noise-Free Training Data

For this study, the initial parameter values for irreducible water saturation ( S ~ w c ) and residual oil saturation ( S ~ o r ) were randomized within the range [0, 1], consistent with the physical constraints for fluid saturation. After 15,000 training epochs, Table 4 shows that the model’s inferred values for these parameters are closely aligned with the actual values used to generate the analytical solutions.
Figure 9 illustrates a comparison between the PIG-GAN’s predictions with the inferred parameters and the analytical solutions. The PIG-GAN effectively captures the shock front.

4.4.2. Case 2: Noisy Training Data

To further evaluate robustness, random Gaussian noise N ( μ = 0 , σ 2 = 0.03 ) was added to the initial water saturation, keeping other parameters constant. Figure 10 shows the absolute initial saturation distribution, and Table 5 compares the inferred values of S ~ w c and S ~ o r and their errors. Despite the noise, the PIG-GAN produced robust estimates. The model’s training on the underlying flow mechanics of the B-L equation improves its resilience to noisy inputs, making it a promising tool for practical reservoir modeling.
In Figure 11, the PIG-GAN model predictions are compared with the analytical solutions. While the PIG-GAN model generally aligns well with the analytical solution, some discrepancies appear at the shock front, where predictions exhibit a slight transition zone. This zone indicates a degree of smoothing, which deviates from the strict discontinuity expected in the analytical profiles.

5. Conclusions

Traditional numerical methods for solving the B-L equation often introduce truncation errors that cause a diffused shock front, hindering precise modeling of abrupt changes in the water saturation. Physics-informed GANs provide a promising alternative by applying deep learning techniques to solve both forward and inverse B-L problems. This study introduces two specialized GAN models: a Physics-Informed Generator GAN (PIG-GAN) and a Dual-Informed GAN (DI-GAN). Both models have shown significant accuracy in predicting the temporal evolution of water saturation profiles, using initial and boundary condition data to guide the learning process. This approach allows for capturing the shock front more sharply compared to traditional methods, as both models reduce error accumulation and integrate physical constraints by using automatic differentiation.
In the forward problem scenario, both PIG-GAN and DI-GAN exhibit a high degree of accuracy in the water saturation predictions. Notably, the DI-GAN outperforms the PIG-GAN in capturing the shock front, a critical aspect of modeling two-phase flow in porous media. In the inverse problems, where certain B-L parameters remain unmeasured, the PIG-GAN model displays robustness and accuracy even under initial condition corruption. The results underscore the model’s capability to handle parameter estimation challenges while maintaining resilience when faced with data imperfections. The study has demonstrated that the physics-informed GANs can provide a viable alternative to traditional numerical methods in accurately modeling subsurface fluid dynamics.
Future research will focus on generalizing the proposed framework to handle three-phase flow problems, which could significantly enhance its applicability. This requires incorporating additional governing equations and interfacial dynamics into the physics-informed constraints of the GAN architecture. Improving the framework for inverse problems like history matching and uncertainty quantification in complex reservoirs remains a promising direction. These advancements could position physics-informed GANs as efficient and accurate alternatives to traditional numerical methods in multiphase fluid dynamics.

Author Contributions

Conceptualization, X.M. and J.Z.; methodology, X.M.; validation, C.L. and Y.Z.; formal analysis, X.M.; investigation, X.M. and J.Z.; data curation, C.L. and Y.Z.; writing—original draft preparation, X.M.; writing—review and editing, X.M. and J.Z.; visualization, C.L. and Y.Z.; funding acquisition, X.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (51934005).

Data Availability Statement

Data are unavailable due to commercial restraints.

Conflicts of Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

References

  1. Gray, W.G.; Dye, A.L.; McClure, J.E.; Pyrak-Nolte, L.J.; Miller, C.T. On the dynamics and kinematics of two-fluid-phase flow in porous media. Water Resour. Res. 2015, 51, 5365–5381. [Google Scholar] [CrossRef]
  2. Carrillo, F.; Bourg, I.; Soulaine, C. Multiphase flow modeling in multiscale porous media: An open-source micro-continuum approach. J. Comput. Phys. X 2020, 8, 100073. [Google Scholar] [CrossRef]
  3. Kim, H.; Makhnenko, R. Characterization of multiphase flow in shaly caprock for geologic CO2 storage. Adv. Water Resour. 2023, 182, 104570. [Google Scholar] [CrossRef]
  4. Cai, J.; Jiao, X.; Wang, H.; He, W.; Xia, Y. Multiphase fluid-rock interactions and flow behaviors in shale nanopores: A comprehensive review. Earth-Sci. Rev. 2024, 257, 104884. [Google Scholar] [CrossRef]
  5. Marcondes, F.; Santos, L.; Varavei, A.; Sepehrnoori, K. A 3D hybrid element-based finite-volume method for heterogeneous and anisotropic compositional reservoir simulation. J. Pet. Sci. Eng. 2013, 108, 342–351. [Google Scholar] [CrossRef]
  6. Werneck, L.F.; Heringer, J.D.; de Souza, G.; Amaral Souto, H.P. Numerical simulation of non-isothermal flow in oil reservoirs using a coprocessor and the OpenMP. Comp. Appl. Math. 2023, 42, 365. [Google Scholar] [CrossRef]
  7. Ting, A.K.; Santos, J.E.; Guiltinan, E.J. Using machine learning to predict multiphase flow through complex fractures. Energies 2022, 15, 8871. [Google Scholar] [CrossRef]
  8. Wang, Y.; Lin, G. Efficient deep learning techniques for multiphase flow simulation in heterogeneous porous media. J. Comput. Phys. 2020, 401, 108968. [Google Scholar] [CrossRef]
  9. Ganti, H.; Khare, P. Data-driven surrogate modeling of multiphase flows using machine learning techniques. Comput. Fluids 2020, 211, 104626. [Google Scholar] [CrossRef]
  10. Zhong, Z.; Sun, A.Y.; Ren, B.; Wang, Y. A deep-learning-based approach for reservoir production forecast under uncertainty. SPE J. 2021, 26, 1314–1340. [Google Scholar] [CrossRef]
  11. Vikara, D.; Khanna, V. Application of a deep learning network for joint prediction of associated fluid production in unconventional hydrocarbon development. Processes 2022, 10, 740. [Google Scholar] [CrossRef]
  12. Fan, Z.; Liu, X.; Wang, Z.; Liu, P.; Wang, Y. A novel ensemble machine learning model for oil production prediction with two-stage data preprocessing. Processes 2024, 12, 587. [Google Scholar] [CrossRef]
  13. Alakeely, A.; Roland, H. Simulating oil and water production in reservoirs with generative deep Learning. SPE Reserv. Eval. Eng. 2022, 25, 751–773. [Google Scholar] [CrossRef]
  14. Wen, G.; Tang, M.; Benson, S.M. Towards a predictor for CO2 plume migration using deep neural networks. Int. J. Greenh. Gas Control. 2021, 105, 103223. [Google Scholar] [CrossRef]
  15. Ye, L.; Song, C. Physics-informed neural networks: Recent advances and prospects. Comput. Sci. 2022, 49, 254–262. [Google Scholar]
  16. Karniadakis, G.E.; Kevrekidis, I.G.; Lu, L.; Perdikaris, P.; Wang, S.; Yang, L. Physics-informed machine learning. Nat. Rev. Phys. 2021, 3, 422–440. [Google Scholar] [CrossRef]
  17. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef]
  18. Robinson, H.; Pawar, S.; Rasheed, A.; San, O. Physics guided neural networks for modelling of non-linear dynamics. Neural Netw. 2022, 154, 333–345. [Google Scholar] [CrossRef]
  19. Zhou, H.; Cheng, S.; Arcucci, R. Multi-fidelity physics constrained neural networks for dynamical systems. Comput. Methods Appl. Mech. Eng. 2024, 420, 116758. [Google Scholar] [CrossRef]
  20. Rodriguez-Torrado, R.; Ruiz, P.; Cueto-Felgueroso, L.; Green, M.C.; Friesen, T.; Matringe, S.; Togelius, J. Physics-informed attention-based neural network for hyperbolic partial differential equations: Application to the Buckley–Leverett problem. Sci. Rep. 2022, 12, 7557. [Google Scholar] [CrossRef]
  21. Cai, S.; Mao, Z.; Wang, Z.; Yin, M.; Karniadakis, G.E. Physics-informed neural networks (PINNs) for fluid mechanics: A review. Acta Mech. Sin. 2021, 37, 1727–1738. [Google Scholar] [CrossRef]
  22. Zou, J.; Liu, C.; Zhao, P. Research progress of physics-informed neural network in seismic wave modeling. Prog. Geophys. 2023, 38, 430–448. [Google Scholar]
  23. Zobeiry, N.; Humfeld, K. A physics-informed machine learning approach for solving heat transfer equation in advanced manufacturing and engineering applications. Eng. Appl. Artif. Intell. 2021, 101, 104232. [Google Scholar] [CrossRef]
  24. Liu, D.; Luo, Q.; Tang, L.; An, P.; Yang, F. Solving Multi-Dimensional Neutron Diffusion Equation Using Deep Machine Learning Technology Based on PINN Model. Nucl. Power Eng. 2023, 43, 1–8. [Google Scholar]
  25. Almajid, M.; Abu-Al-Saud, M. Prediction of porous media fluid flow using physics informed neural networks. J. Pet. Sci. Eng. 2022, 208, 109205. [Google Scholar] [CrossRef]
  26. Fuks, O.; Tchelepi, H. Limitations of physics informed machine learning for nonlinear two-phase transport in porous media. J. Mach. Learn. Model. Comput. 2020, 1, 19–37. [Google Scholar] [CrossRef]
  27. Fraces, C.G.; Tchelepi, H. Physics Informed Deep Learning for Flow and Transport in Porous Media. arXiv 2021, arXiv:2104.02629. [Google Scholar]
  28. Fraces, C.G.; Papaioannou, A.; Tchelepi, H. Physics informed deep learning for transport in porous media. arXiv 2020, arXiv:2001.05172. [Google Scholar]
  29. Buckley, S.E.; Leverett, M. Mechanism of fluid displacement in sands. Trans. AIME 1942, 146, 107–116. [Google Scholar] [CrossRef]
  30. Pasquier, S.; Quintard, M.; Davit, Y. Modeling two-phase flow of immiscible fluids in porous media: Buckley-Leverett theory with explicit coupling terms. Phys. Rev. Fluids 2017, 2, 104101. [Google Scholar] [CrossRef]
  31. Corey, A.T.; Rathjens, C.H.; Henderson, J.H.; Wyllie, M.R.J. Three-phase relative permeability. J. Petrol. Technol. 1956, 8, 63–65. [Google Scholar] [CrossRef]
  32. Welge, H.J. A Simplified Method for Computing Oil Recovery by Gas or Water Drive. J. Pet. Technol. 1952, 4, 91–98. [Google Scholar] [CrossRef]
  33. Lie, K.-A. An Introduction to Reservoir Simulation Using MATLAB/GNU Octave: User Guide for the MATLAB Reservoir Simulation Toolbox (MRST); Cambridge University Press: Cambridge, UK, 2019. [Google Scholar]
  34. Goodfellow, I.; Pouget-Abadie, J.; Mirza, M.; Xu, B.; Warde-Farley, D.; Ozair, S.; Courville, A.; Bengio, Y. Generative adversarial networks. Commun. ACM 2020, 63, 139–144. [Google Scholar] [CrossRef]
  35. Daw, A.; Maruf, M.; Karpatne, A. PID-GAN: A GAN Framework based on a physics-informed discriminator for uncertainty quantification with physics. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, Singapore, 14–18 August 2021; pp. 237–247. [Google Scholar]
  36. Wu, Y.-S. Multiphase Fluid Flow in Porous and Fractured Reservoirs; Gulf Professional Publishing: Golden, CO, USA, 2015. [Google Scholar]
Figure 1. A reservoir model illustrating water frontal advance using the B-L equation.
Figure 1. A reservoir model illustrating water frontal advance using the B-L equation.
Mathematics 12 03833 g001
Figure 2. Water saturation profiles at different hours.
Figure 2. Water saturation profiles at different hours.
Mathematics 12 03833 g002
Figure 3. Determination of water shock front saturation by Welge’s approach.
Figure 3. Determination of water shock front saturation by Welge’s approach.
Mathematics 12 03833 g003
Figure 4. Schematic representation of PIG-GAN for solving B-L equation.
Figure 4. Schematic representation of PIG-GAN for solving B-L equation.
Mathematics 12 03833 g004
Figure 5. Water saturation profiles obtained using Welge’s graphic method. (a) Distribution of water saturation; (b) solutions of B-L equation at different moments.
Figure 5. Water saturation profiles obtained using Welge’s graphic method. (a) Distribution of water saturation; (b) solutions of B-L equation at different moments.
Mathematics 12 03833 g005
Figure 6. Data-driven GAN solutions with different numbers of training samples (500, 2000, 4000), (dashed red) and analytical solution (solid blue) at three different moments.
Figure 6. Data-driven GAN solutions with different numbers of training samples (500, 2000, 4000), (dashed red) and analytical solution (solid blue) at three different moments.
Mathematics 12 03833 g006
Figure 7. Comparison between PIG-GAN (dashed red) and analytical solution (solid blue) at three different moments.
Figure 7. Comparison between PIG-GAN (dashed red) and analytical solution (solid blue) at three different moments.
Mathematics 12 03833 g007
Figure 8. Comparison between DI-GAN (dashed red) and analytical solution (solid blue) at three different moments.
Figure 8. Comparison between DI-GAN (dashed red) and analytical solution (solid blue) at three different moments.
Mathematics 12 03833 g008
Figure 9. Comparison between the PIG-GAN (dashed red) results with the inferred parameters and analytical solutions (solid blue).
Figure 9. Comparison between the PIG-GAN (dashed red) results with the inferred parameters and analytical solutions (solid blue).
Mathematics 12 03833 g009
Figure 10. Distribution of initial water saturation.
Figure 10. Distribution of initial water saturation.
Mathematics 12 03833 g010
Figure 11. Comparison between PIG-GAN (dashed red) results with inferred parameters and analytical solutions (solid blue) under noisy training data.
Figure 11. Comparison between PIG-GAN (dashed red) results with inferred parameters and analytical solutions (solid blue) under noisy training data.
Mathematics 12 03833 g011
Table 1. Parameters used for fractional flow.
Table 1. Parameters used for fractional flow.
ParameterValueUnit
Cross-section area, A 1m2
Length of formation, L 100m
Injection rate, q t 10−4m3/s
Injection time, t 24hours
Water viscosity, μ w 1.0mPa·s
Oil viscosity, μ o 5.0mPa·s
Residual oil saturation, S o r 0.0-
Connate water saturation, S w c 0.0-
Maximum relative permeability of water, k r w , m a x 0.80-
Maximum relative permeability of oil, k r o , m a x 0.80-
Relative permeability exponent of water, n w 2.0-
Relative permeability exponent of oil, n o 2.0-
Table 2. Hyper-parameters of GAN.
Table 2. Hyper-parameters of GAN.
NetworksParameterValue
GeneratorInput dimension3
Output dimension1
Number of hidden layers10
Number of neurons each layer20
Activation functiontanh
OptimizerAdam
DiscriminatorInput dimension3
Output dimension1
Number of hidden layers7
Number of neurons each layer20
Activation functiontanh
OptimizerAdam
Table 3. Comparison among three models.
Table 3. Comparison among three models.
MODELMSEMAPEMAE
Pure data-driven0.006769.1610.03449
PIG-GAN0.003974.9570.01375
DI-GAN0.002202.4630.01022
Table 4. Inferred values of the parameters S ~ w c and S ~ o r and their errors.
Table 4. Inferred values of the parameters S ~ w c and S ~ o r and their errors.
ParameterActual ValueInverted ValueMSE
S ~ w c 0.0000.00470.0000221
S ~ o r 0.0000.01970.0003204
Table 5. Inferred values of the parameters S ~ w c and S ~ o r and their errors.
Table 5. Inferred values of the parameters S ~ w c and S ~ o r and their errors.
ParameterRealPredictionMSE
S ~ w c 0.00000.00520.0000270
S ~ o r 0.00000.00290.0000084
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ma, X.; Li, C.; Zhan, J.; Zhuang, Y. Physics-Informed Generative Adversarial Network Solution to Buckley–Leverett Equation. Mathematics 2024, 12, 3833. https://doi.org/10.3390/math12233833

AMA Style

Ma X, Li C, Zhan J, Zhuang Y. Physics-Informed Generative Adversarial Network Solution to Buckley–Leverett Equation. Mathematics. 2024; 12(23):3833. https://doi.org/10.3390/math12233833

Chicago/Turabian Style

Ma, Xianlin, Chengde Li, Jie Zhan, and Yupeng Zhuang. 2024. "Physics-Informed Generative Adversarial Network Solution to Buckley–Leverett Equation" Mathematics 12, no. 23: 3833. https://doi.org/10.3390/math12233833

APA Style

Ma, X., Li, C., Zhan, J., & Zhuang, Y. (2024). Physics-Informed Generative Adversarial Network Solution to Buckley–Leverett Equation. Mathematics, 12(23), 3833. https://doi.org/10.3390/math12233833

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop