Abstract
Efficient and accurate evaluation of capillary pressure and relative permeability of oil–water flow in tight sandstone with limited routinely obtainable parameters is a crucial problem in tight oil reservoir modeling and petroleum engineering. Due to the multiscale pore structure, there is complex nonlinear multiphase flow in tight sandstone. Additionally, wetting behavior caused by mineral components remarkably influences oil–water displacement in multiscale pores. All this makes predicting capillary pressure and relative permeability in tight sandstone extremely difficult. This paper proposes a physics-informed neural network, integrating five important physical models, the improved parallel genetic algorithm (PGA), and the neural network to simulate the two-phase capillary pressure and relative permeability of tight sandstone. To describe the nonlinear multiphase flow and the wettability behavior, five physical models, including the non-Darcy liquid flow rate formula, apparent permeability (AP) formula, and contact angle-capillary pressure relationship, are coupled into the neural network to improve the prediction accuracy. In addition, the input parameters and the structure of the physics-informed neural network are simplified based on analyzing the change rule of the oil–water flow with the main controlling factors, which can also save training time and improve the accuracy of the neural network. To obtain the data for training the coupled neural network, the dataset of tight sandstone in Ordos Basin is constructed with experimentally measured data and various fluid flow properties as constraints. The test results demonstrate that the estimated capillary pressure and relative permeability from the physics-informed neural network are in good agreement with the test ones. Finally, we have compared the physics-informed neural network with the quasi-static pore network model (QSPNM), dynamic pore network model (DPNM), and conventional artificial neural network (ANN). The calculation time of QSPNM and DPNM are hundreds of times longer than that of the physics-informed neural network. The coupled neural network has also performed much better than the conventional ANN. As the heterogeneity of pore spaces in tight sandstone increases, the advantages of the physics-informed neural network over ANN are more prominent. The prediction models generated in this study can estimate the capillary pressure and relative permeability based on only four routine parameters in a few seconds. Therefore, the physics-informed neural network in this paper can provide the potential parameters for large-scale reservoir simulation.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
Introduction
Tight sandstone oil is China’s most potential strategic replacement area for petroleum resources. Capillary pressure and relative permeability, the most critical properties of tight sandstones, are extensively used to construct the model of oil migration in the tight sandstone reservoir (Blunt 2017; Wang et al. 2022). Due to the large reservoir scale, the efficient and accurate assessment of capillary pressure and relative permeability for numerous reservoir rock samples with limited routine parameters is essential for reservoir classification, reservoir modeling, and productivity prediction. However, the current estimation software of capillary pressures and relative permeability is only applicable to conventional reservoirs, not unconventional tight reservoirs. The tight reservoirs are very inhomogeneous and have significant variations in porosity and permeability. Moreover, the tight sandstone usually has multiscale pores (including numerous nanopores and micropores), multiple fluid flow mechanisms (including non-Darcy and Darcy flow), and complex wettability. All this makes the conventional estimation method of capillary pressures and relative permeability unsuitable for tight sandstone (Xiao et al. 2017; Zhou et al. 2022). Thus, it is essentially necessary to develop a new two-phase flow prediction method for tight sandstone reservoirs.
The theoretical models for multiphase flow in rock have been researched for several years (Valvatne and Blunt 2004). The three primary theoretical methods to simulate multiphase fluid flow in porous media are the direct numerical method, dynamic and quasi-static pore network models (PNM). The direct numerical method usually solves Navier–Stokes on a meshed 3D digital core of the porous media by traditional computational fluid dynamic algorithms (Ferrari and Lunati 2014). However, when simulating the multiphase flow in samples with multiscale pore space (such as tight sandstone and shale core), most direct methods are very time-consuming and have serious numerical instability problems (Porter et al. 2009; Raeini et al. 2012). The dynamic and quasi-static pore network models simulate the multiphase fluid flow in a simplified pore network extracted from the actual 3D digital core of the porous media (Al-Gharbi and Blunt 2005; Mehmani et al. 2013; Qin 2015). The dynamic pore network model can simulate the transient flow characteristics of the multiphase fluid in the network (Joekar-Niasar et al. 2010; Zhang et al. 2014; Gong et al. 2021a, b). Its calculation cost is very high because it usually calculates the coupled fluid pressure field by solving mass conservation equations for all phases simultaneously throughout the pore network. Recently, an entirely new, cost-effective, heavily parallelized, dynamic pore network modeling framework has been developed to study the two-phase flow in rough-walled fractures (Gong et al. 2021a, 2021b). It dramatically improves the computational efficiency by using the 2D equivalent pore network of fracture and parallel computing. However, the dynamic pore network model for tight sandstone with multiscale pore structures still needs much research. The computational efficiency of the quasi-static pore network method is much higher than that of the dynamic one because it does not need to solve the pressure field (Idowu and Blunt 2010; Zhao et al. 2010). However, the above theoretical models require the 3D structure and pore network of the rock sample to simulate capillary pressure and relative permeability accurately. It is well known that obtaining the 3D structures and pore networks of many tight sandstones in a tight oil reservoir is usually very difficult. Therefore, the theoretical models cannot be directly used to calculate numerous capillary pressure and relative permeability for reservoir modeling. It is worth making some efforts to develop new approaches to estimate the capillary pressure and relative permeability of two-phase flow using only some routine parameters (such as porosity, permeability, wettability, etc.).
Over the past few decades, many scholars have researched the prediction methods for capillary pressure and relative permeability. Leverett proposed the J-Function method to calculate the capillary pressure curves that reflect the complexity of the whole reservoir (Leverett 1941). J-Function averages the capillary pressure curve using some parameters (porosity, permeability, wettability, and interfacial tension). It is the most commonly used method in reservoir modeling and applies to conventional homogeneous reservoirs. However, for the tight reservoir with significant variations in porosity and permeability, the J-Function values are dispersed and may lead to large errors. Burdine derived some equations to calculate the relative permeability from pore size distribution based on the fluid flow laws in porous media (Burdine 1953). The other prediction models have been proposed to represent the relationship among capillary pressure, relative permeability, and petrophysical properties (porosity, permeability, wettability, etc.) (Jason et al. 2007; Standnes 2009; Hou et al. 2012). However, the parameters in these prediction models need to be fitted for specific rock samples and fluids, which limits the application range and computational accuracy of these models. The significant advancements in machine learning methods offer a different and more efficient way of predicting capillary pressure and relative permeability in porous media (Golsanami et al. 2015; Xiao et al. 2016; You et al. 2018; Arigbe et al. 2019). You et al. (2018) utilized the artificial neural network and particle swarm optimization method to calculate the capillary pressure curves for rocks in both homogenous and heterogeneous reservoirs. The results demonstrate that the PSO-BP network exhibits higher accuracy than the J-Function method. However, only capillary pressure curves of mercury injection have been considered, and the oil–water flow is much more complex than mercury injection. A prediction model of capillary pressure and relative permeability for two-phase flow in sandstone has been constructed based on the capillary tube model and neural network (Liu et al. 2019). Note that the capillary tubes are too simple to describe the two-phase flow in tight sandstone, so the prediction model still needs to be improved. The pore network model (PNM) and computational fluid dynamics (CFD) have been used to construct the training data, and then the machine learning methods are trained based on the dataset to predict the two-phase flow in porous media (Rabbani et al. 2020; Zhao et al. 2020; Zeinedini et al. 2022). This approach provides an idea for us to improve the accuracy of the prediction models. Recently, Yoga et al. (2022) developed a physics-informed data-driven approach to predict the relative permeability based on ANN, using physical limits within specific space as constraint conditions. The results showed that physical limits could improve predictability outside the region of measured data. However, the relative permeability was predicted as a function of phase saturation and phase connectivity, and other important parameters such as wettability, pore structure, and capillary number were maintained constant. This assumption is too idealistic and affects the applicability range of the prediction model. All the above studies focus on homogeneous porous media with relatively simple properties, and the two-phase fluid flow in tight sandstone is more complicated than in conventional sandstone. Also, most current perdition models based on machine learning methods only rely on correlations and lack a rigorous physical basis. In conclusion, the rapid prediction of capillary pressure and relative permeability for two-phase fluid flow in tight sandstone is still an immature research field and needs more research.
This paper introduces a physics-informed neural network to simulate the capillary pressure and relative permeability curves in tight sandstone. The paper is organized as follows. The physics-informed neural network, which combines neural networks, the improved parallel genetic algorithm (PGA) and physical models, is described in detail. Then through analyzing actual rock samples in the Ordos Basin of China, a tight sandstone dataset including a variety of petrophysical and fluid flow characteristics is constructed, which can provide adequate data for training the physics-informed neural network. Then, the prediction model of capillary pressure and relative permeability curves in tight sandstone has been established based on the dataset and the physics-informed neural network. Finally, the prediction model is validated and some important results are summarized.
Methodology
In this section, we will describe the physics-informed neural network that we use to predict the capillary pressure and relative permeability curves of oil–water flow in tight sandstone. The structure of the physics-informed neural network is shown in Fig. 1. Due to the existence of the multiscale pore structure and complex mineral component, nonlinear multiphase flow and wetting behavior exist in tight sandstone, and the estimation of the capillary pressure and relative permeability is very complicated. Fortunately, the physics that govern the nonlinear flow in tight sandstone have been studied and understood. Thus, physical models can be combined with the neural network to help us to build the physics-informed prediction model. Note that the genetic algorithm (GA) is one of the most successful optimization algorithms that can deal with highly nonlinear problems. But the learning rate of the traditional GA is slow. Considering that the parallel algorithm can improve computational efficiency and the oil–water flow in tight sandstone is complex, the PGA is combined with the rock typing method to enhance the precision of the prediction model.
Figure 1 shows that the physics-informed neural network includes five machine learning structures: the input layers, the physical layers, the fully connected neural networks, the transformation layers, and the output layers. The task of the physics-informed neural network is to map the input parameters and the capillary pressure (relative permeability) of the oil–water flow. In the following, we will describe the physics-informed neural network in detail.
In the input layer of the physics-informed neural network, input parameters are required. From the analysis in Appendix, we know that the main controlling factors of the oil–water flow in tight sandstone are the pore size distribution, tortuosity, contact angle, wettability index, oil–water interfacial tension, and slip length. The input parameters should be derived from them. The tortuosity, contact angle, and wettability index of the rock samples are not routine parameters and difficult to obtain. However, they can be derived indirectly from routine parameters (porosity, permeability, mineral composition) based on physical models. Thus, the required input parameters can be simplified to the pore size distribution, porosity, permeability, and mineral composition.
The physical models for the neutral network
As shown in Fig. 1, we combine the neural network with physical models by adding the physical and transformed layers in the neural network.
The first physical model is the gas apparent permeability formula for tight sandstone. As mentioned above, tortuosity is the main controlling factor, but it is not easily available. Fortunately, it can be derived indirectly from porosity and gas apparent permeability based on the gas apparent permeability formula. Due to the strong nonlinear gas flow at low pressure, we use the gas apparent permeability formula accounting for slip flow and Knudsen diffusion developed by Jiang to derive the tortuosity (Jiang et al. 2017). And the tortuosity derived from the gas apparent permeability formula is as follows
where \({r}_{i}\),\({K}_{om},{D}_{f}\) are the i th pore radius, the gas apparent permeability, and the surface fractal dimension of the pore. N, \({\varnothing }_{f}\) refer to the total pore number and the flowing porosity. M is the molar mass. \({\mu }_{g}\) is gas viscosity. T is the temperature of the experiment. R is the gas constant. The pore network analysis of the actual tight sandstone samples shows that the values of \({D}_{f}\) are between 2.1–2.6 (as shown in the figure below), and most of them are 2.4 (Jiang et al. 2017), so DF is assumed to be 2.4 in our study. This physical model is added in Physical Layer 1 in the physics-informed neural network.
The second physical model is related to capillary pressure and wettability. Many studies have shown that capillary pressure is mainly determined by interfacial tension, wettability, and pore size. Usually, they satisfy the following relationship
where Pc is capillary pressure. r and σ refer to the inscribed radius and the oil–water interfacial tension, respectively. \(\theta\) represents the oil–water contact angle. Many studies have shown that the contact angle and wettability index strongly correlate with mineral composition (Wang et al. 2022; Wu et al. 2022). Generally, one mineral corresponds to one contact angle (wettability property). As a result, the mineral that has the most proportion on a pore wall will provide its mineral property on this pore. In this way, each pore will receive one mineral characteristic. After analyzing the rock samples of tight sandstone in Ordos Basin, we find that the tight sandstone usually consists of several mineral grains, such as quartz, clay, dolomite, calcite, and feldspar. The wettability property (contact angle) for each mineral can be measured by experiment. The oil–water interfacial tension is mainly determined by the properties of the fluid in pores and can also be measured by the experiment. Thus, when we get the pore size distribution and the mineral composition from the input layer, we can use Eq. 2 to determine the capillary pressure preliminarily. This physical model is used in Physical Layer 1 in the physics-informed neural network.
The third physical model is the transformed formula of the maximum oil saturation. Because of the corner, mixed wet, and water-blocking influence, the water cannot be completely replaced by oil in the pore network. We define the maximum oil saturation at the end of the oil–water flow as \({S}_{max,o}\). And \({S}_{max,o}\) is used to transform the oil (water) saturation to 1.0 (0.0) for the convenience of the prediction of the capillary pressure. The transformed formula is as follows:
where \({S}_{w}\) and \({S}_{w}{\prime}\) is the actual and transformed water saturation. This physical model is also used in Physical Layer 1 in the physics-informed neural network.
The fourth physical model is the flow rate formula for different pores in tight sandstone. Generally, there are many nanopores in the tight sandstone with a multiscale pore space. Afsharpoor and Javadpour have proved that the liquid slip effect in nanopores cannot be neglected (Afsharpoor and Javadpour 2016). At the same time, there is only linear fluid flow in micropores. Therefore, when predicting relative permeability in tight sandstone, the flow rate calculation in nanopores and micropores should be different. The flow rate formulas in nanopores and micropores can be written as follows
where \({Q}_{nanopore}\) and \({Q}_{micropore}\) are the flow rate in nanopores and micropores. The coefficients a–f are six fitting constants in the reference (Afsharpoor and Javadpour 2016). A is the cross-sectional area. P refers to the perimeter, \(\Delta p\) is the pressure drop, and L is the duct length. \({\mu }_{l}\) is the viscosity of oil. G is the dimensionless shape factor. \({L}_{sd}\) is dimensionless slip length and can be calculated as follows
where Ls represents the slip length. It should be noted that vast experiments and molecular dynamics simulations have shown that the slip length is generally from nanometers to tens of nanometers. We assume the slip length is 10 nm in the physics-informed neutral network. This physical model is used in Physical Layer 2 in the physics-informed neural network.
The fifth physical model is added in the transformation layer, which processes the output from the training process to obtain the relative permeability for different water saturation. This process consists of two steps: one step is the inverse transform of the water saturation. We have transformed the water saturation to 1.0 in the above physical layer. Thus in this step, the water saturation is inversely transformed by the maximum oil saturation obtained from the output result, as shown in Eq. 6. The other step is to inversely transform the relative permeability, as shown in Eq. 7.
where the range of \({S}_{w}{\prime}\) is from 0 to 1.
In sum, five physical models are coupled into the neural network by adding physical and transformed layers. These physical models can help us describe the complex multiphase flow in tight sandstone and improve the accuracy of the neural network.
The algorithm for the physics-informed neural network
After demonstrating the structure of the physics-informed neural network, we will illustrate the algorithm for solving the weights and the threshold of the physics-informed neural network. The weights and the threshold in the physics-informed neural network can be obtained by the improved parallel genetic algorithm (PGA) and the back propagation algorithm (Fig. 2).
In the first step, the input parameters are input, and then, the topology of the physics-informed neural network is determined. In the second step, the input parameters are processed by the physical models 1–3, and the outputs of the physical layer are obtained.
In the third step, the weights and the threshold in the physics-informed neural network can be initialed randomly and optimized by the improved parallel genetic algorithm (PGA). First, the training data can be classified into several subpopulations based on the tight sandstone typing method (Ji et al. 2022). Each subpopulation has one type of tight sandstone, and different type of tight sandstone has different pore structure and multiphase fluid flow characteristics. Thus, this can help us increase the diversity of the multiple processing. Then, diversity is essential for the PGA to search for the optimal global solution. Controlling the diversity of the population is a critical way to improve the performance of the improved PGA. In each subpopulation, we increase the randomness of the initial value to avoid falling into the local optimal solution. The stronger the randomness, the less likely it is to fall into the local optimal solution. We judge each initial value and evaluate its similarity with other initial values. If the similarity is strong, discard and regenerate a new initial value. The similarity of each initial value is calculated as follows
where \(r\left({x}_{i}\right)\) is the similarity index, and \({x}_{i}\) (\({x}_{j}\)) is the ith (jth) initial value in the subpopulation. \(d\left({x}_{i},{x}_{j}\right)\) is the distance between \({x}_{i}\) and \({x}_{j}\). \(\beta\) is the threshold of the distance, and \(S\left({x}_{i},{x}_{j}\right)\) is the similarity of \({x}_{i}\) and \({x}_{j}\). Then, the selection, crossover, and mutation process work in each subpopulation independently. After a period of generation, we choose the chromosomes in each subpopulation whose fitness is high and exchange the chromosomes with each other. The subpopulation receives excellent individuals from other subpopulations, compares their fitness, replaces the individuals with low fitness, and then forms a new subpopulation. The new subpopulation continues to evolve and migrate until the criteria are reached, as shown in Fig. 2. Finally, we can obtain the optimized weights and the threshold in the physics-informed neural network.
In the fourth step, the back propagation algorithm is utilized to minimize the generated error and determine the final values of the weights and the threshold for the physics-informed neural network. In the training process, the weights are updated in each training iteration using the error generated by the output results of the capillary pressure curve and relative permeability. The training iteration continues until the generated error is smaller than the threshold, as shown in Fig. 2. It should be pointed out that the fourth physical model is inserted into the neural network after the capillary pressure is obtained. The mean squared error (MSE) is a loss function to evaluate the estimate. The MSE for the capillary pressure (\({E}_{Pc}\)) and relative permeability (\({E}_{q}\)) are calculated as follows:
where \(P{c}_{in}\) is the actual output, and \(P{c}_{out}\) is the predicted value. \({q}_{in}\mathrm{ and}\) \({S}_{max,o,in}\) are the actual output values. \({q}_{out}\) and \({S}_{max,o,out}\) are the predicted values.
Finally, we can estimate the capillary pressure and relative permeability curve of oil–water flow in tight sandstone by the predicting model generated by the physics-informed neural network. The process can be summarized as follows (Fig. 3). First, four routinely acquired parameters, including the pore size distribution, porosity, permeability, and mineral composition, are input into the prediction model. It should be noted that these routine parameters can be measured by library experiments (mercury injection, nuclear magnetic resonance, helium porosity, pulse-decay permeability, and X-ray powder diffraction experiment) or by logging data and logging interpretation methods (Shi et al. 2019; Zhang et al. 2020, 2021). Then, the capillary pressure and relative permeability of oil–water flow in tight sandstone can be obtained through the prediction model.
Results and discussion
As mentioned earlier, the primary purpose of the physics-informed neural network is to establish a mapping between routine parameters and their capillary pressures (relative permeability). We should first generate a dataset to train the physics-informed neural network to do so.
Dataset constructing
It is well known that high-quality datasets will positively impact the accuracy and efficiency of neural networks. Thus before constructing the physics-informed neural network, we should first prepare the dataset. The dataset should have the following characteristics: first, it should involve diverse information on the tight sandstones. The information includes the size and shape of pores and throats, the connectivity of the pore space, the mineral composition, etc. Second, the fluid flow properties should also be included in the dataset. Correspondingly, there are two steps to constructing the dataset. In the first step, we generate various random pore networks of tight sandstones based on the classical stochastic network algorithm to prepare the dataset (Idowu and blunt 2010). Although the digital cores and 3D pore structures of samples can be observed through high-resolution images, the 3D images for tight sandstones with multiscale pore structures cannot be easily obtained. Furthermore, reconstructing 3D digital cores based on high-resolution imaging techniques is time-consuming and expensive. Thus in this study, we use random pore networks to characterize the pore space in tight sandstone. The petrophysical properties of tight sandstone have been investigated by analyzing the actual rock samples in the reservoir of Ordos Basin, NW China. The pore size distribution, porosity, and mineral composition of the rock samples are measured by high-pressure mercury injection, helium porosimeter, and X-ray powder diffraction measurement. The distribution features of the porosity and pore size are illustrated in Fig. 4. The result indicates that most of the samples have porosity below 10%. The pore size distribution of different rock samples varies greatly. Especially most samples are dominated by nanopores, and several samples are dominated by micropores. In addition, the diversity of element (pores and throats) shapes and the tortuosity of pore space are also investigated (see Fig. 4). In the next step, the fluid flow properties of the rock samples are analyzed. The permeability of actual rock samples in the reservoir is measured by a pulse-decay permeability instrument, and the result is shown in Fig. 4. Then, we consider the wide variation of the contact angle distribution, interfacial tension, and wettability. All the above petrophysical parameters and fluid flow parameters are taken as constraints to construct many random pore networks based on the stochastic network algorithm, as shown in Fig. 4 (Idowu and Blunt 2010). Then, the capillary pressure and relative permeability are simulated based on the above random pore networks and the QSPNM, as shown in Fig. 4. It should be emphasized that the closed-form generalized fluid flow equation accounting for the slip effect has been used to study the oil–water flow in nanopores (Afsharpoor and Javadpour 2016). The above steps can ensure that the constructed dataset characterizes the actual oil–water flow in the tight reservoir of the Ordos Basin. Finally, we can obtain a dataset with both various petrophysical and two-phase fluid flow characteristics of tight sandstone. In this study, 10,000 groups of data are established, and they will be used for training and testing the physics-informed neural network.
Validation
This study uses 90% of the data in the constructed dataset and is used to train the physics-informed neural network. To make the training dataset as useful as possible for the physics-informed neural network, we should ensure that the selected data is diverse while sampling the training data from the dataset. The unselected data is used for testing the accuracy of the physics-informed neural network. In addition, the k-fold cross-validation scheme has been implemented to examine the performance of the physics-informed neural network and find the optimal hidden layer structure parameters. In our study, ten folds are used, as shown in Fig. 5. During this process, the data in the training set is further divided evenly into ten subsamples. It should be emphasized that the data in each fold is selected randomly from the training data. We can see from Fig. 5b that the data in each fold is evenly distributed. The nine folds are used to train the model and the rest serve as verification data. This step repeats ten times, and then the averaged correlation coefficient of the ten steps is calculated to investigate the precision of the model. After comparing the accuracy of models with different structural parameters, we finally determine the optimal hidden layer structure parameters of the physics-informed neural network. The averaged correlation coefficients of 10 runs for the final model are listed in Table 1. The final model produces the best correlation coefficient of the predicted and test capillary pressure (oil–water relative permeability) is 0.98.
Then, we use the test data to examine the performance of the final prediction model. Figure 6 demonstrates that there is an accurate correlation between the simulated and test (actual) capillary pressure under different water saturations. To further examine the performance of the physics-informed neural network, we use two different samples, which represent different morphologies and wide ranges of the pore-throat size distribution, to test the physics-informed neural network. Figure 7 compares the predicted results with the corresponding test ones. It can be found that the predicted capillary pressure curves agree very well with the test ones.
Like the capillary pressure, Fig. 8 depicts the estimated relative permeability of the final model and the test data under different water saturations. An accurate correlation exists between the simulated and test (actual) relative permeability. To further examine the accuracy of the physics-informed neural network, the relative permeability curves of the two different tight sandstone samples are plotted in Fig. 9. The result indicates that the physics-informed neural network provides acceptable results for the oil–water relative permeability prediction.
Discussion
To further examine the performance of the physics-informed neural network, we compared it with the traditional pore network model (PNM) and the conventional ANN method, respectively.
First, two tight sandstone samples with different pore size distributions are chosen. Note that the experimental relative permeability of these samples has been published before (Zeng et al. 2020). Figure 10 compares the relative permeability curves calculated by the physics-informed neural network, the quasi-static pore network model (QSPNM), and the dynamic pore network model (DPNM) with the experiment results. We can find from the figure that the accuracy of the physics-informed neural network is slightly lower than that of the two pore network models. Furthermore, Table 2 lists the average absolute errors and calculation time of the three methods. It can be seen that DPNM has the highest accuracy, but it takes a vast amount of time. Moreover, DPNM requires a high-precision 3D image and pore network as input data. The accuracy of QSPNM is similar to DPNM, and its calculation time is shorter than DPNM and longer than the physics-informed neural network. Although the calculation time of QSPNM seems short for one rock sample, it should be emphasized that our purpose is to predict many rock samples throughout the reservoir. So we further investigate the calculation time for a large number of samples. Table 3 and Fig. 11 give the calculation time and the relative speedup comparison between QSPNM and the physics-informed neural network introduced in this study. The results illustrate that the speedup factor increases approximately linearly with the incensement in the number of samples. In particular, when the number of samples is 1000, the QSPNM calculation will take 12,651 times longer than that of the physics-informed neural network prediction. Moreover, similar to DPNM, QSPNM requires a high-precision 3D image and pore network as input data. In contrast, the absolute error of the physics-informed neural network is slightly bigger than that of DPNM and QSPNM, but it is still within the acceptable range. In particular, the physics-informed neural network takes only seconds and four input parameters to predict the relative permeability curves. Therefore, the physics-informed neural network is more suitable for predicting relative permeability curves for reservoir modeling.
In the following, we will further investigate the difference in performance between the conventional ANN. The computation time of the physics-informed neural network proposed in our manuscript and ANN are almost the same, and thus, we focus on the precision difference between the two methods. It should be noted that the traditional ANN and the physics-informed neural network have the same number of hidden layers and neurons.
Berea sandstone and a tight sandstone rock sample are chosen (Oak 1990; Zeng et al. 2020). Figure 12 shows the prediction results of the relative permeability curves calculated by the conventional ANN and the physics-informed neural network. We can find from the figure that the relative error for conventional ANN is bigger than that of the physics-informed neural network.
Then, we quantitatively examine the change rule of the difference between the conventional ANN and the physics-informed neural network. We have selected thirty different samples in the dataset. The variance-mean ratio of the pore size distribution is denoted as Vr, and it can reflect the heterogeneity of the tight sandstone. Furthermore, the ratio of the relative error between the conventional ANN and the physics-informed neural network is denoted as \(\gamma\). The absolute errors of the physics-informed neural network and the ANN are shown in Fig. 13a. It can be deduced that the absolute error of the conventional ANN increases with Vr. Furthermore, \(\gamma\) is plotted versus Vr for several tight sandstone samples, as shown in Fig. 13b. It can be seen from the figure that the difference in the performance in predicting the relative permeability curves between the conventional ANN and the physics-informed neural network increases as Vr increases. The red line in Fig. 13 can be obtained by fitting the points (black squares). The results confirm that \(\gamma\) is small and increase slowly as Vr is small (< 0.5). Then, when Vr is bigger than 0.5, \(\gamma\) increases rapidly with the heterogeneity of the sample. This is because the nonlinear flow in tight sandstone becomes more complex as the heterogeneity of the samples increases. However, the conventional ANN is insufficient to deal with nonlinear problems. Therefore, we can deduce that the physics-informed neural network performs better than the conventional neural network, especially for heterogeneous tight sandstones.
It should be emphasized that the prediction model in this study is constructed for tight sandstone in Ordos Basin. It may not be suitable for other types of rock samples, such as carbonate rocks and shale rocks. Similar to the tight sandstone discussed in our work, the physics-informed neural network can be further extended to other rocks by introducing more physical models and training data according to the structural and two-phase flow characteristics of other rocks.
Conclusions
In this study, we developed a novel physics-informed neural network to improve the prediction of the capillary pressure and relative permeability of tight sandstone. Some important conclusions can be summarized as follows:
-
1.
Five important physical models, including the gas apparent permeability formula, capillary pressure formula, normalized water saturation, and flow rate formula for multiscale pores, are extracted and added into the neural network to improve the accuracy of the prediction model. The results demonstrate that these physical models can help neural networks better predict the complex nonlinear two-phase flow and wettability in tight sandstones.
-
2.
Unlike the traditional parallel genetic algorithm, the tight sandstone rock typing method and the similarity judgment are used to increase the diversity of the population and optimize the weights and the threshold in the novel physics-informed neural network.
-
3.
Compared with the quasi-static and dynamic pore network models, the novel physics-informed neural network requires fewer parameters (only four routine parameters) and significantly reduces computational time, making it more appropriate for supplying potential parameters in large-scale reservoir simulations.
-
4.
The comparison between the physics-informed neural network and the traditional ANN reveals that when the heterogeneity of the tight sandstone increases, the innovative physics-informed neural network exhibits more distinct advantages over the conventional ANN. This is attributed to the increasing complexity of nonlinear flow in tight sandstone as the heterogeneity of the samples intensifies. Nevertheless, the traditional ANN proves to be inadequate for handling such nonlinear challenges.
Abbreviations
- A:
-
Cross-sectional area, m2
- Df :
-
Surface fractal dimension, dimensionless
- EPc :
-
Mean squared error of the capillary pressure, dimensionless
- Eq :
-
Mean squared error of the relative permeability, dimensionless
- Fd:
-
Correction factor for wetting phase, dimensionless
- G:
-
Shape factor, dimensionless
- Iw:
-
Humidity index, dimensionless
- \({K}_{om}\) :
-
Apparent permeability, mD
- \({k}_{r,o}\) :
-
The relative permeability of oil, dimensionless
- \({k}_{r,w}\) :
-
The relative permeability of water, dimensionless
- L:
-
Duct length, m
- \({L}_{sd}\) :
-
Dimensionless slip length, dimensionless
- Ls :
-
The slip length, m
- M:
-
Molar mass, Kg/Kmol
- N :
-
Throats total number, dimensionless
- P:
-
Perimeter, m
- Pc:
-
Capillary pressure, psia
- \({Q}_{nanopore}\) :
-
The flow rate in nanopores, m3/s
- \({Q}_{micropore}\) :
-
The flow rate in micropores, m3/s
- \({q}_{o,w}^{w}\) :
-
The fluxes of water in multiphase flow, m3
- \({q}_{o,w}^{o}\) :
-
The fluxes of oil in multiphase flow, m3
- \({q}_{w}\) :
-
The fluxes of water in single-phase flow, m3
- \({q}_{o}\) :
-
The fluxes of oil in single-phase flow, m3
- R :
-
Gas constant, J/mol/K
- r:
-
Inscribed radius, m
- \({r}_{i}\) :
-
Radius of throat \(i\), m
- Sw:
-
Water saturation, dimensionless
- \(S_{w}^{\prime }\) :
-
The transformed water saturation, dimensionless
- \({S}_{max,o}\) :
-
The maximum oil saturation, dimensionless
- T :
-
Experimental temperature, K
- \({V}_{i}\) :
-
The volume of pore i, m3
- \({V}_{w,i}\) :
-
The water volume in pore i, m3
- \({\varnothing }_{f}\) :
-
Flowing porosity, dimensionless
- σ:
-
Interfacial tension, N/m
- θ:
-
Contact angle, degrees
- \({\mu }_{g}\) :
-
Viscosity of the gas, Pa s
- \({\mu }_{l}\) :
-
The viscosity of oil, Pa s
- \(\tau\) :
-
Tortuosity, dimensionless
- \(\Delta p\) :
-
Pressure drop, psia
References
Afsharpoor A, Javadpour F (2016) Liquid slip flow in a network of shale noncircular nanopores. Fuel 80:580–590
Al-Gharbi MS, Blunt MJ (2005) Dynamic network modeling of two-phase drainage in porous media. Phys Rev E 1:016308
Arigbe OD, Oyeneyin MB, Arana I, Ghazi MD (2019) Real-time relative permeability prediction using deep learning. J Petrol Explorat Product Technol 9:1271–1284
Blunt MJ (2017) Multiphase flow in permeable media a pore-scale perspective. Cambridge University Press
Burdine N (1953) Relative permeability calculations from pore size distribution data. J Petrol Technol 5:71–78
Ferrari A, Lunati I (2014) Inertial effects during irreversible meniscus reconfiguration in angular pores. Adv Water Resour 74:1–13
Golsanami N, Kadkhodaie-Ilkhchi A, Erfani A (2015) Synthesis of capillary pressure curves from post-stack seismic data with the use of intelligent estimators: a case study from the Iranian part of the south pars gas field, Persian gulf basin. J Appl Geophys 112:215–225
Gong Y, Sedghi M, Piri M (2021a) Dynamic pore-scale modeling of residual trapping following imbibition in a rough-walled fracture. Transp Porous Media 140(1):143–179
Gong Y, Sedghi M, Piri M (2021) Two-phase relative permeability of rough-walled fractures: a dynamic pore-scale modeling of the effects of aperture geometry. Water Resour Res 57(12):230104
Hou J, Luo FQ, Wang CF, Zhang YH, Zhou K, Pan GM (2012) Quantitative prediction model for the water-oil relative permeability curve and its application in reservoir numerical simulation. Part 1: modeling. Energy&fuels 25:4405–4413
Idowu NA, Blunt MJ (2010) Pore-scale modelling of rate effects in waterflooding. Transp Porous Media 83:151–169
Jason L, Pijaudier-Cabot G, Ghavamian S, Huerta A (2007) Hydraulic behaviour of a representative structural volume for containment buildings. Nucl Eng Des 237:1259–1274
Ji LL, Lin M, Jiang WB, Cao GH (2022) An improved rock typing method for tight sandstone based on new rock typing indexes and the weighted fuzzy kNN algorithm. J Petrol Sci Eng 210:109956
Jiang WB, Lin M, Yi ZX, Li HS, Wu ST (2017) Parameter determination using 3D FIB-SEM images for development of effective model of shale gas flow in nanoscale pore clusters. Transp Porous Media 117:5–25
Joekar-Niasar V, Hassanizadeh SM, Dahle HK (2010) Non-equilibrium effects in capillarity and interfacial area in two-phase flow: dynamic pore-network modelling. J Fluid Mech 655:38–71
Leverett M (1941) Capillary behavior in porous solids. Trans AIME 142:152–169
Liu SY, Zolfaghari A, Sattarin S, Dahaghi AK, Negahban S (2019) Application of neural networks in multiphase flow through porous media: predicting capillary pressure and relative permeability curves. J Petrol Sci Eng 180:445–455
Mehmani A, Prodanović M, Javadpour F (2013) Multiscale, multiphysics network modeling of shale matrix gas flows. Transp Porous Media 99:377–390
Oak MJ (1990) Three-phase relative permeability of water-wet Berea. In: SPE enhanced oil recovery symposium 109–120.
Porter ML, Schaap MG, Wildenschild D (2009) Lattice-Boltzmann simulations of the capillary pressure-saturation-interfacial area relationship for porous media. Adv Water Resour 32:1632–1640
Qin C (2015) Water transport in the gas diffusion layer of a polymer electrolyte fuel cell: dynamic pore-network modeling. J Electrochem Soc 162:1036–1046
Rabbani A, Shams R, Babaei M (2020) DeePore: a deep learning workflow for rapid and comprehensive characterization of porous materials. Adv Water Resour 146:103787
Raeini AQ, Blunt MJ, Bijeljic B (2012) Modelling two-phase flow in porous media at the pore scale using the volume-of-fluid method. J Comput Phys 231:5653–5668
Shi PY, Wang CY, Yan WL, Yang LM, Zhang SR (2019) A method for calculating mineral content of metamorphic rock with ECS logging data. Well Log Technol 43(6):597–600
Standnes DC (2009) Estimation of imbibition capillary pressure curves from spontaneous imbibition data. Energy Fuels 24:1081–1087
Valvatne PH, Blunt MJ (2004) Predictive pore-scale modeling of two-phase flow in mixed wet media. Water Resour Res 40:1–21
Wang ZG, Luo XR, Liu KY et al (2022) Evaluation of pore-scale wettability in the tight sandstone reservoirs of the upper Triassic Yanchang formation, ordos basin. China Marine Petrol Geol 138:105528
Wu M, Qin Y, Shen J, Song DY, Wang XQ, Zhang GQ, Li GZ, Zhu SF (2022) Influence factors of irreducible water saturation in tight sandstone reservoirs: a case study of Linxing area in ordos basin. J Jilin Univ 52(1):68–79
Xiao L, Zou CC, Mao ZQ, Jin Y, Zhu JC (2016) A new technique for synthetizing capillary pressure (Pc) curves using NMR logs in tight gas sandstone reservoirs. J Petrol Sci Eng 145:493–501
Xiao DS, Lu SF, Yang JX et al (2017) Classifying multiscale pores and investigating their relationship with porosity and permeability in tight sandstone gas reservoirs. Energy Fuels 31:9188–9200
Yoga HF, Purswani P, Johns RT (2022) Predictive model for relative permeability using physics-based artificial neural networks SPE improved oil recovery conference. OnePetro. https://doi.org/10.2118/209420-MS
You LJ, Tan QG, Kang YL, Xu CY, Lin C (2018) Reconstruction and prediction of capillary pressure curve based on particle swarm optimization-back propagation neural network method. Petroleum 4:268–280
Zeinedini E, Dabir B, Dadvar M (2022) Integrating computational fluid dynamic, artificial intelligence techniques, and pore network modeling to predict relative permeability of gas condensate. Sci Rep 12:21457
Zeng JH, Zhang YC, Ma JS, Liu CL, Cao Z (2020) Investigating the influences of pore-scale characteristics on tight oil migration by a two-phase pore network model. Geofluids 5:1–13
Zhang ZB, Lin M, Li Y (2014) A new pore network based algorithm for water-oil displacements in core (in Chinese). Sci Sin Phys Mech Astronom 44:637–645
Zhang HT, Li GR, Guo HP, Zhang WJ, Wang YM, Li WB, Zhou JY, Wang CS (2020) Applications of nuclear magnetic resonance (NMR) logging in tight sandstone reservoir pore structure characterization. J Geosci 13:572
Zhang Z, Zhang H, Li J, Cai ZX (2021) Permeability and porosity prediction using logging data in a heterogeneous dolomite reservoir: an integrated approach. J Natural Gas Sci Eng 86:103743
Zhao XC, Blunt MJ, Yao J (2010) Pore-scale modeling: effects of wettability on waterflood oil recovery. J Petrol Sci Eng 71:169–178
Zhao JL, Qin FF, Derome D, Carmeliet J (2020) Simulation of quasi-static drainage displacement in porous media on porescale: coupling lattice Boltzmann method and pore network model. J Hydrol 588:125080
Zhou SX, Zhou Y, Shi J, Zhu YJ et al (2022) Micropore structure and water driving characteristics of tight sandstone reservoirs in Ordos basin. J Petrol Explorat Product Technol 12:601–612
Funding
This work is supported by the Strategic Priority Research Program of the Chinese Academy of Sciences (Grant No. XDA14010304), the National Natural Science Foundation of China (Grant Nos. 42030808 and 41872163), and the open fund of Petro China Research Institute of Petroleum Exploration & Development (RIPED-2022-JS-2104).
Author information
Authors and Affiliations
Corresponding authors
Ethics declarations
Conflict of interest
The authors declare that they have no conflict of interest.
Electronic supplementary material
Below is the link to the electronic supplementary material.
Appendix A: the main controlling factors of multiphase flow in tight sandstone
Appendix A: the main controlling factors of multiphase flow in tight sandstone
This appendix analyzes the main controlling factors of multiphase flow in tight sandstone, which can provide the input parameters and physical mechanics for the physics-informed neural network. A deeper understanding of the physical principles will be helpful for us to construct more efficient and accurate models which can estimate and classify flow properties in various rock samples.
First, we will describe the quasi-static pore network method that is used to investigate the main controlling factors of multiphase flow. Let the wetting phase, which is water in this study, initially fills all pores and throats. Then, the non-wetting phase, which is oil here, hierarchically invades the pores and throats from larger to smaller in the process of primary drainage, while water occupies all the wedges of pores. The discriminant condition for the non-wetting phase to invade a wetting phased-filled element is the entry capillary pressure. During the simulation, the inflow and outflow water (or oil) volume of each element (pore or throat) comply with the flow balance, as shown in Eq. 1. Note that there are usually multiscale pores (nanopores and micropores) in the tight sandstone. The closed-form generalized fluid flow equation accounting for the slip effect developed by Afsharpoor and Javadpour is used to study the oil–water flow in nanopores, as shown in Eq. 4 (Afsharpoor and Javadpour 2016). At the same time, the linear fluid flow equation is used to calculate the flow rate in micropores.
The boundary condition is that the pressure at the inlet and outlet keeps constant. Then, the water saturation, capillary pressure, and relative permeability of oil and water are computed as follows:
where \({V}_{w,i}\) represents the water volume in pore i, \({V}_{i}\) is the volume of pore i. \({S}_{w}\) is water saturation for the network, and Pc is capillary pressure. r and σ refer to the inscribed radius and the oil–water interfacial tension, respectively. \(\theta\) represents the oil–water contact angle. \({F}_{d}\) is a dimensionless correction factor for water, G is the shape factor and it is dimensionless. \({k}_{r,o}, {k}_{r,w}\) represent the relative permeability of oil and water, respectively. \({q}_{o,w}^{w}\) and \({q}_{o,w}^{o}\) refer to the fluxes of water and oil in multiphase flow. \({q}_{w}, {q}_{o}\) refer to the fluxes of water and oil in single-phase flow.
Based on the models, the factors influencing the two-phase flow are investigated, and the main controlling factors are extracted. Figure
14a plots the capillary pressure curves for different mode pore sizes (denoted as Rmod) when other parameters are fixed. The mode pore size is the pore size that has the largest number in the tight sandstone. Figure 14a indicates that the capillary pressure also increases as the mode pore radius increases. To see more clearly, we select the capillary pressure when the water saturation is 50% (denoted as Pc50) and examine the variance regular of Pc50 with the pore radius, as shown in Fig.
15a. There is a complicated relationship between Pc50 and the pore radius. Similarly, other impact factors, such as the tortuosity, the contact angle, the oil–water interfacial tension, and the mixed wet (wettability index, denoted as Iw), are also investigated in Figs. 14 and 15. We can approximately obtain that the capillary pressure increases with the tortuosity and interfacial tension, and decreases with the mode pore size, contact angle, and wettability index (Iw).
Figure
16a depicts the relative permeability curves for different mode pore sizes when other parameters are fixed, like the capillary pressure curves. The result shows that as the mode pore radius increases, the relative permeability of water increases. Similar to the capillary pressure analysis, the irreducible water saturation (denoted as Swi) in the relative permeability curve is also selected to investigate the variance regular of Swi with the pore radius (Fig.
17a). The figure illustrates that there is also a complicated relationship between Swi and the mode pore radius. At the same time, other factors, such as the tortuosity, the contact angle, the slip length, and the wettability index, are also investigated in Figs. 16 and 17. We can approximately conclude that Swi increases with the tortuosity, the contact angle, and slip length. Swi decreases with the mode pore size and wettability index (Iw).
Inspecting Fig. 15, we find that Pc50 varies linearly with the oil–water interfacial tension. However, the relationship between the capillary pressure curves and other factors, such as the tortuosity, contact angle, and wettability index, is extremely complicated, and the linear fitting is not suitable for them. Similar results can be found in Fig. 4. Furthermore, the maximal information coefficients (MIC) for the data in Fig. 15 and 17 are analyzed, and the values are listed in Table
4. It can be seen from Table 1 that the MIC values for mode pore radius, the tortuosity, contact angle, oil–water interfacial tension, and wettability index are all bigger than 0.5. The factors in Table 4 have a strong correlation with capillary pressure and relative permeability. Thus from Figs. 15, 16, and Table 4, we can finally deduce that there are complicated relationships between the capillary pressure (relative permeability) and the mode pore radius, tortuosity, contact angle, wettability index, and slip length. Therefore, it is necessary to use the neural network to model them.
Based on all the above results, we can obtain that the main controlling factors are the pore size, the tortuosity, the contact angle, the oil–water interfacial tension, the wettability index, and the slip length. Furthermore, it should be pointed out that the correlation analysis in Figs. 15 and 17 is only for the characteristic points (Pc50 and Swi) in the capillary pressure and relative permeability curves. We aim to predict the overall curves of the capillary pressure and relative permeability. Therefore, we use the pore size and contact angle distribution instead of the mode pore size and the average contact angle when predicting the capillary pressure and relative permeability curves. Finally, we can summarize that the input parameters of the physics-informed network are the pore size distribution, tortuosity, contact angle distribution, oil–water interfacial tension, wettability index, and slip length. It should be noted that the input parameters should be routinely obtained by conversional experiments for the convenience of predicting the curves. However, it is difficult to get the tortuosity directly through experiments. We replace the tortuosity with other experiment parameters in the physics-informed neural network.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Ji, L., Xu, F., Lin, M. et al. Rapid evaluation of capillary pressure and relative permeability for oil–water flow in tight sandstone based on a physics-informed neural network. J Petrol Explor Prod Technol 13, 2499–2517 (2023). https://doi.org/10.1007/s13202-023-01682-7
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s13202-023-01682-7