[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Next Article in Journal
Comparison of Abrasive Wear Resistance of Hardox Steel and Hadfield Cast Steel
Next Article in Special Issue
Investigating the Adsorption Behavior of Zwitterionic Surfactants on Middle Bakken Minerals
Previous Article in Journal
Securing Trading Card Game Assets Using Blockchain Technology
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

Evaluation of Machine Learning Applications for the Complex Near-Critical Phase Behavior Modelling of CO2–Hydrocarbon Systems

1
Atyrau Oil and Gas University, Baimukhanov St. 45A, Atyrau 060027, Kazakhstan
2
University of Houston, 5000 Gulf Freeway Bldg 9, Houston, TX 77204, USA
3
Colorado School of Mines, 1500 Illinois St, Golden, CO 80401, USA
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(23), 11140; https://doi.org/10.3390/app142311140
Submission received: 20 October 2024 / Revised: 12 November 2024 / Accepted: 15 November 2024 / Published: 29 November 2024
(This article belongs to the Special Issue Advanced Drilling, Cementing, and Oil Recovery Technologies)
Figure 1
<p>Model scenarios: (<b>a</b>) Direct Model, (<b>b</b>) Hybrid Model 1, and (<b>c</b>) Hybrid Model 2.</p> ">
Figure 2
<p>Reference case generated using Peng–Robinson equation of state: (<b>a</b>) near-critical conditions of 80 atm and 60 °C; and (<b>b</b>) regular conditions of 75 atm and 60 °C.</p> ">
Figure 3
<p>Machine learning (neural network) training, validation, and testing using 4000 flash calculation samples (pressure [80 atm to 40 atm], temperature [57 °C to 67 °C], and overall composition of CO<sub>2</sub>-C4-C10 [0 to 1]) for (<b>a</b>) Direct Model, (<b>b</b>) Hybrid Model 1, and (<b>c</b>) Hybrid Model 2.</p> ">
Figure 4
<p>Ternary diagram generated using the direct machine learning model (<span class="html-italic">x<sub>i</sub></span>, <span class="html-italic">y<sub>i</sub></span>): (<b>a</b>) near-critical conditions of 80 atm and 60 °C; and (<b>b</b>) regular conditions of 75 atm and 60 °C.</p> ">
Figure 5
<p>Ternary diagram generated using Hybrid Model 1—Ki → RR → <span class="html-italic">x<sub>i</sub></span>, <span class="html-italic">y<sub>i</sub></span>: (<b>a</b>) near-critical conditions of 80 atm and 60 °C; and (<b>b</b>) regular conditions of 75 atm and 60 °C.</p> ">
Figure 6
<p>Ternary diagram generated using Hybrid Model 2—log(<span class="html-italic">x<sub>i</sub></span>), log(<span class="html-italic">y<sub>i</sub></span>) → Ki → RR → <span class="html-italic">x<sub>i</sub></span>, <span class="html-italic">y<sub>i</sub></span>: (<b>a</b>) near-critical conditions of 80 atm and 60 °C; and (<b>b</b>) regular conditions 75 atm and 60 °C.</p> ">
Figure 7
<p>Ternary diagrams for far-from-critical conditions of 50 atm and 60 °C: (<b>a</b>) Peng–Robinson EoS; (<b>b</b>) Direct Model; (<b>c</b>) Hybrid Model 1; and (<b>d</b>) Hybrid Model 2.</p> ">
Versions Notes

Abstract

:
The objective of this study was to evaluate the capability of machine learning models to accurately predict complex near-critical phase behavior in CO2–hydrocarbon systems, which are crucial for enhanced oil recovery and carbon storage applications. We compared the physical Peng–Robinson equation of state model to machine learning algorithms under varying temperatures, pressures, and composition, including challenging near-critical scenarios. We used a direct neural network model and two hybrid model approaches to capture physical behavior in comprehensive compositional space. While all the models showed great performance during training and validation, the Direct Model exhibited unphysical behavior in compositional space, such as fluctuations in equilibrium constants and tie-line crossing. Hybrid Model 1, integrating a single Rachford–Rice iteration for physical constraints, showed an improved consistency in phase predictions. Hybrid Model 2, utilizing logarithmic transformations to better handle nonlinearities in equilibrium constants, further enhanced the accuracy and provided smoother predictions, particularly in the near-critical region. Overall, the hybrid models demonstrated a superior ability to balance computational efficiency and physical accuracy, closely aligning with the reference of the Peng–Robinson equation of state. This study highlights the importance of incorporating physical constraints into machine learning models for reliable phase behavior predictions, especially under near-critical conditions.

1. Introduction

The injection of carbon dioxide into oil and gas reservoirs for long-term storage or enhanced oil recovery is an advanced technique to mitigate greenhouse emissions and improve hydrocarbon recovery rates [1,2]. When injected, CO2 can achieve a certain degree of miscibility with oil, thereby complicating the mass and component exchange of CO2 and hydrocarbons at the displacement front [3,4]. Therefore, the accurate modeling of CO2–oil/gas phase behavior is critical to assessing the success of CO2 injections. Compositional modeling is needed to capture the CO2–hydrocarbon phase equilibria and the flow of multiple phases.
Compositional modeling involves an analysis of the phase behavior of fluids based on their pressure, temperature, and overall composition. This process includes determining the phase stability and conducting flash calculations to establish the number and composition of coexisting phases at equilibrium [5]. These calculations are necessary for each discretization block and time step [6] to provide the physical properties for the flow equations. Depending on the space and time discretization, some simulation runs may require millions of phase equilibrium calculations, which can significantly impact the run time [7] and can consume up to 50% of CPU run time [8], due to the iterative nature of phase equilibrium calculations.
The solution to a flash problem must satisfy mass and component balances and ensure that each component has the same fugacity in the coexisting equilibrium phases, in order to minimize the Gibbs energy of the system [9]. The Rachford–Rice equation is a well-established method for flash calculations [10], which incorporates the equilibrium ratio or K-value. This value is determined through an iterative process using an equation of state (EoS), with the Peng–Robinson (PR) [11] and the Soave–Redlich–Kwong (SRK) [12] cubic EoSs being the most commonly used in petroleum engineering.
Many researchers have developed alternatives to conventional phase equilibrium calculations to speed up phase computations. The reduction method was first attempted by Michelsen in 1986 [13], which involved reducing the calculation to three nonlinear equations and setting the binary interaction coefficients to zero. Later, reduction methods were developed by Hendriks and Van Bergen, Firoozabadi et al., Okuno et al., and Petitfrere and Nichita [14,15]. Another approach developed in an attempt to reduce computational time involved utilizing precalculated tie-lines and was introduced by Voskov and Tchelepi [16] and Belkadi et al. [17].
Recently, machine learning techniques have been used to address computational time challenges in phase equilibrium calculations. Gaganis and Varotsis developed a non-iterative solution for phase stability using support vector classifiers trained on EoS-generated data points [8]. They claimed that this solution was as accurate as the thermodynamic model itself. In a subsequent study, Gaganis and Varotsis [18] expanded the model to include a split phase by applying an Artificial Neural Network (ANN) to provide the equilibrium coefficients. Kashinath et al. [19] demonstrated that their algorithm reduced the phase equilibrium calculations by using a relevance vector machine (RVM) and ANN, resulting in a speeding up of up to 90% computational time. Their work was built on Gaganis and Varotsis [20] and comprised three stages: supercritical phase determination, phase stability, and split phase problems tailored to CO2 flooding simulations, with two classifiers for the first two stages and an ANN for the splitting step. In another study, Wang et al. (2019) employed an ANN instead of the SVM method to perform both the phase stability tests and phase splitting. An ANN for a stability test is used to predict saturation pressure to identify stable phases, and another ANN provides initial mole fractions and equilibrium ratios for flash calculations.
Zhang et al. [21] introduced a self-adaptive deep learning algorithm that can predict the total number of phases and their molar composition. The algorithm demonstrates adaptability to changes in input dimensions. In a similar vein, Li et al. in 2019 presented a deep learning model that approximates flash calculations at a given mole (N), volume (V), and temperature (T) to address both phase stability and phase splits [22].
Sheth et al. [23] presented a machine learning workflow that combines a classifier and an ANN regressor to label single phases by predicting the critical temperature. This resulted in a 10-fold reduction in iterations applied to a CO2 injection example. Additionally, machine learning algorithms were utilized to accelerate flash calculations, considering capillary pressure, with the aim of extending the practical application to shale reservoirs [24,25].
Recently, machine learning techniques have been integrated with fundamental physical laws, a concept first introduced by Raissi and Karniadakis [26] and further developed by numerous researches [27,28]. Raissi et al. [29] and Cai et al. [30] introduced physics-informed neural networks (PINNs), which incorporate physical principles and constraints into the loss function, allowing for the consideration of initial and boundary conditions. Fraces and Tchelepi [31] and Magzymov et al. [32] have further applied physics-based models to study fluid flow in porous media, specifically to solve the Buckley–Leverett equation. In alignment with the approach of Raissi et al. [29], Ihunde et al. [33] integrated the underlying physics and physical constraints into ANNs for phase behavior calculations. In this case, the loss function was expanded to include mass and component balance constraints.
Other recent studies have expanded their focus to integrating and employing machine learning (ML) for phase equilibrium in compositional simulations. Specifically, the use of an ML workflow for identifying single phases in CO2 injection simulations has notably decreased the time required for phase stability calculations, resulting in accelerated computations [34]. Furthermore, Wang et al. [35] and Chen et al. [36] examined the application of ANN-based phase stability and phase split calculations in numerical examples of gas injection and gas condensate reservoir cases, highlighting an 80% reduction in the computational costs for the stability tests.
The objective of this paper was to assess the accuracy and physical reliability of machine learning approaches for flash calculations and phase behavior predictions, particularly in complex near-critical conditions for CO₂–hydrocarbon mixtures. This involved evaluating both a direct neural network model and two hybrid models against the established Peng–Robinson equation of state under various conditions. First, we generated a synthetic dataset to train the machine learning algorithms. Second, we discussed the structures and features of the direct and hybrid machine learning algorithms used in this paper. Third, we demonstrated the performance of capturing physical phenomena in compositional space and compared the model predictions with the physical model. Last, we discussed the implications and conclusions of this study.

2. Materials and Methods

2.1. Data Generation and Sampling

A total of 4000 data points were generated from a mixture of carbon dioxide (CO2), n-butane (C4), and n-decane (C10) to model the phase behavior under varying thermodynamic conditions. We split the dataset into 80% training, 10% validation, and 10% testing. The dataset covered pressures from 80 atm to 40 atm and temperatures ranging from 57 °C to 67 °C. The overall composition of the CO2-C4-C10 system was sampled across this range, including the regions close to the critical point. This ensured a comprehensive representation of both typical and near-critical phase behavior scenarios, which are notoriously difficult to model accurately due to the sharp changes in physical properties near the critical point. The inputs to the models consisted of five parameters: temperature, pressure, and the mole fractions of the three components (CO2, n-butane, and n-decane). We used a neural network architecture of 2 hidden layers and 15 neurons in each hidden layer. Table 1 shows the inputs that were used to generate the dataset. Appendix A shows the sample of data shown as input columns and output columns.

2.2. Model Scenarios

We tested three machine learning-based models against a physical model using the generated dataset. Each model’s ability to capture both standard and near-critical point phase behavior was evaluated, as near-critical conditions introduce particular challenges for modeling (see Figure 1). P is pressure, T is temperature, zi is overall composition, xi is liquid fraction, yi is vapor fraction, and Ki is equilibrium ratio.
1. Direct Model: In this scenario, a neural network was trained to directly predict the liquid phase composition xi and vapor phase composition yi for each component. The neural network was trained on the full dataset, with the inputs being temperature, pressure, and overall composition. The outputs were the mole fractions of the components in the liquid and vapor phases at equilibrium. Special attention was given to the model’s performance near the critical point, where rapid changes in composition occur.
2. Hybrid Model 1—neural network for Ki and Rachford–Rice: The first hybrid approach combined machine learning with physical modeling. The neural network predicted the equilibrium coefficients Ki = yi/xi for each component, where yi and xi represent the vapor and liquid mole fractions, respectively. Once the Ki values were predicted, the one single Rachford–Rice iteration was used to compute the phase compositions and generate tie-lines in the compositional space. This method retained physical consistency while benefiting from the speed of machine learning. The performance around the critical point was specifically monitored due to the high sensitivity of the Ki values in these conditions.
3. Hybrid Model 2—neural network for logarithmic compositions: The second hybrid approach added another layer of transformation to the model outputs. Here, the neural network predicted log(xi) and log(yi), the logarithmic mole fractions of the components in the liquid and vapor phases. These outputs were exponentiated to recover xi and yi, which were then used to compute the equilibrium coefficient Ki. As in Hybrid Model 1, the Rachford–Rice iteration was applied to ensure consistency and generate accurate tie-lines in the compositional space. This method was also tested rigorously near the critical point, where minor differences in the predicted compositions can lead to significant errors.

2.2.1. Near-Critical Point Behavior

Given the challenges posed by the near-critical point conditions, special care was taken to evaluate how well each machine learning model captured the phase behavior in this region. Near the critical point, small changes in pressure or temperature can cause dramatic shifts in phase behavior, making this a particularly challenging test for machine learning models. The models’ ability to accurately predict the onset of the two-phase regions and the correct composition of each phase was closely examined.

2.2.2. Phase Behavior Modeling and Validation

The performance of the machine learning models was compared against a physical model using the Peng–Robinson equation of state for the phase equilibrium calculations. The predicted phase compositions and tie-lines were validated against the results from the physical model. The evaluation criteria focused on accuracy in standard and near-critical conditions.

2.2.3. Flash Calculations and the Rachford–Rice Equation

To determine the phase compositions at equilibrium, flash calculations were performed. The Rachford–Rice equation was used to compute the vapor fraction n V by solving the following:
f n V =   i = 1 N y i x i = i = 1 N z i K i 1 1 + K i 1 n V = 0    
where   z i is the overall mole fraction of the component, K i is the equilibrium ratio, n V is the vapor fraction, x i is the liquid composition, and y i is the vapor composition. The first guess of n V is set to the mean of ( 1 1 K m a x   , 1 1 K m i n ). Furthermore, we solved the K-values and n V iteratively using both the Newton–Raphson method and successive substitution, starting with updating n V at the fixed K-value followed by further updating the K-values. Function f n V decreases monotonically with asymptotes 1 / ( 1 K i   ) . Final convergence was achieved when the K-value error was in the range of the accepted tolerance.

2.2.4. Machine Learning Implementation

As outlined in Figure 1, we used three different approaches for the implementation. The Direct Model used machine learning inputs and outputs as follows:
N e u r a l   N e t w o r k   P , T , z i = x i , y i    
For Hybrid Model 1, we generated K i from the neural network and then used one Rachford–Rice iteration. Such an approach ensures that mass balance is honored for zi, xi, yi, and the vapor–liquid fractions at all times.
N e u r a l   N e t w o r k   P , T , z i = K i  
R a c h f o r d R i c e   K i = x i , y i  
For Hybrid Model 2, we used the neural network to generate l n ( x i ) and l n ( y i ) . We then calculated K i and used one Rachford–Rice iteration. This way, we address the highly nonlinear nature of the K i variables, large and small values of x i and y i , and mass balance consistency between zi, xi, yi, and the vapor–liquid fractions.
N e u r a l   N e t w o r k   P , T , z i = ln x i n n , ln y i n n   
K i = e ln y i n n e ln x i n n   
R a c h f o r d R i c e   K i = x i , y i  
The next section demonstrates the results for the Direct, Hybrid 1, and Hybrid 2 Models. Each performance is compared to the ground reference from the physical model of the Peng–Robinson equation of state. We compare the physical model and machine learning approaches in both the near-critical region, as well as far away from critical conditions. The results compare the entire compositional space in ternary diagrams in contrast to the typically checked individual flash calculations that do not capture the holistic performance of machine learning models.

3. Results and Discussions

The Peng–Robinson equation of state was applied to the CO2, n-butane, and n-decane system to calculate the phase behavior. The model accurately captures the equilibrium between the liquid and vapor phases, particularly under typical reservoir conditions and near-critical points. The generated tie-lines and close-up view depict the distribution of phases in the compositional space. As expected, the Peng–Robinson EoS performs well in identifying two-phase regions, with distinct tie-line slopes representing phase equilibrium.
Figure 2 represents the phase behavior and equilibrium constants calculated using the Peng–Robinson equation of state for a CO2, n-butane, and n-decane mixture under two conditions: near-critical and regular. In Figure 2a, the near-critical conditions at 80 atm and 60 °C show the tie-lines becoming shorter and denser, indicating the difficulty of distinguishing between the liquid and vapor phases as the system approaches the critical point. The equilibrium constant Ki approaches one, indicating the critical point. In Figure 2b, under regular conditions at 75 atm and 60 °C, the tie-lines are longer and more evenly spaced, indicating well-defined phase behavior. The equilibrium constant Ki displays smoother transitions across the concentration scan, with CO2 showing higher Ki values at lower concentrations, while n-decane’s heavier nature results in a lower Ki.
Figure 3 shows the training, validation, and testing performance of the neural network models using 4000 flash calculation samples for the Direct Model, Hybrid Model 1, and Hybrid Model 2. All the models demonstrate an excellent fit, with near-perfect matching between the predicted and actual values. However, the Direct Model (a) requires the highest number of training iterations. While the overall accuracy of all the models is impressive, a more detailed analysis of how each model performs in compositional space will be presented in the following section.
The results shown in Figure 4 reveal that while the direct model produced a nearly perfect match during the training, validation, and testing, there were notable issues when examining the model’s behavior in compositional space. Specifically, for decane, we observed unphysical fluctuations in the equilibrium constants (Ki) under both near-critical and regular conditions. These fluctuations suggest that the model struggles to maintain consistent physical behavior, particularly for heavier components like decane, likely because the equilibrated yi values are very small and challenging to capture by the Direct Model. Additionally, a closer examination of the tie-lines shows that they cross each other, which is another indication of unphysical behavior. This crossing of tie-lines should not occur in realistic phase equilibrium scenarios and highlights the limitations of the Direct Model, despite its high accuracy in the training process. These inconsistencies underscore the need for hybrid approaches to ensure both computational efficiency and physical validity.
In Figure 5, we observe the phase behavior generated by Hybrid Model 1, where the neural network predicts the Ki values followed by a single Rachford–Rice iteration to calculate the equilibrium compositions (xi and yi). The results show smooth and consistent Ki values across both near-critical (a) and regular (b) conditions, particularly for the heavier component, decane (nC10), which previously displayed unphysical fluctuations in the Direct Model. The tie-lines in both conditions are physically consistent and do not cross each other, confirming that the mass balance and phase behavior are properly maintained. This improved accuracy is due to the integration of the Rachford–Rice equation, which honors the underlying physical constraints of the system. By using a single Rachford–Rice iteration after the neural network generates the Ki values for the given pressure, temperature, and composition, Hybrid Model 1 successfully integrates machine learning with traditional thermodynamic principles, producing more reliable results in the compositional space.
Figure 6 presents the results from Hybrid Model 2, where the neural network predicts the logarithmic mole fractions log(xi) and log(yi) and then calculates Ki. As with Hybrid Model 1, a single Rachford–Rice iteration is then used to ensure that the phase compositions honor mass balance and phase equilibrium. The overall behavior of Hybrid Model 2 is similar to that of Hybrid Model 1, with smooth and consistent tie-lines and no unphysical behavior such as tie-line crossing. However, by using log(xi) and log(yi) in the process, in Hybrid Model 2 we are attempting to linearize the highly nonlinear Ki variable, potentially improving the accuracy of the predictions, particularly for challenging near-critical conditions. The logarithmic transformation helps the model handle the variability of Ki more effectively, ensuring that the final phase compositions are more physically consistent after the Rachford–Rice correction. This approach integrates machine learning with physical principles while addressing the inherent nonlinearity of the phase equilibrium variables.
In Figure 7, we observe the phase behavior for the system under far-from-critical conditions (50 atm and 60 °C). The Peng–Robinson EoS (Figure 7a) serves as the reference case, providing physically consistent phase predictions. The Direct Model (Figure 7b), while still achieving a high accuracy during training, shows some unphysical fluctuations in the equilibrium constants, particularly for heavier components like decane, which highlights the limitations of this approach in capturing true physical behavior. In contrast, both Hybrid Model 1 (Figure 7c) and Hybrid Model 2 (Figure 7d) produce more consistent and physically accurate predictions. However, it is noticeable that Hybrid Model 2 offers even smoother predictions that are more closely aligned with the Peng–Robinson reference case. The use of logarithmic transformations in Hybrid Model 2 improves its ability to handle the nonlinear nature of equilibrium constants, providing an advantage in terms of both physical consistency and prediction smoothness, even in less challenging, far-from-critical conditions.
This study evaluated the overall performance of machine learning algorithms to capture physical behavior in a controlled environment where we directly control the synthetic data, thus eliminating any potential quality data uncertainty and consistency. The implications of this study can be applicable for broader applications that heavily rely on phase behavior modelling, such as compositional reservoir simulations. The models that are discussed in this paper can be used for phase behavior modelling with a single machine learning run once tuned and trained once at the beginning of the simulation, instead of the traditional iteration-based approach for reservoir simulations. Moreover, CO2 storage project design and prediction need simulations that cover decades and centuries from case studies with fast and reliable modelling, where traditional full field simulations can be challenging due to their high computational intensity. Thus, machine learning-based hybrid models can be a possible solution; however, one needs to ensure the underlying physics is honored during implementation.
We have studied a well-defined model with known fluid characterizations based on limited pure components. However, more complex systems such as real crude hydrocarbon systems should also be tested in future studies, including the typically unknown plus fractions. Another limitation of this study is that the dataset is based on a deterministic set of input values that do not have uncertainties that are typical in experimental data processing. Thus, the methods should also be tested and tuned with real fluid experimental data that include experimental uncertainty and error bars in future studies.

4. Conclusions

The objective of this study was to evaluate a machine learning application for the complex near-critical phase behavior modelling of CO2–hydrocarbon systems. We compared the physical Peng–Robinson equation of state model performance and machine learning algorithms under varying temperatures, pressures, and composition, including challenging near-critical scenarios. We used a direct neural network model and two hybrid model approaches to capture the physical behavior in a comprehensive compositional space for a CO2, n-butane, and n-decane system. The key conclusions are as follows:
1.
All machine learning algorithms showed great performance during training and validation. However, when the machine learning algorithms were used directly for comprehensive testing in compositional space, it is evident that direct model implementation was not producing physical features, such as fluctuating K-values and inaccuracies near critical point compositions.
2.
Hybrid models: both hybrid models produced more physically constrained results, with Hybrid Model 2 providing the smoothest and most reliable predictions.
3.
Near-critical conditions: all models faced challenges in the near-critical region, but Hybrid Model 2 was closest to the physical model in capturing accurate phase behavior.
4.
Far-from-critical conditions: under far-from-critical conditions, the overall behavior of all three models produced reasonable results.
In summary, while neural network training is highly accurate, this study demonstrates that physical constraints, such as those incorporated into the hybrid models, are crucial for ensuring reliable phase behavior predictions, especially at near-critical points. Future work could explore expanding the hybrid modeling approach to more complex systems such as real hydrocarbon systems with plus fraction pseudocomponents. Moreover, future studies should address the hybrid model applicability for experimental data, accessing uncertainties and error bars.

Author Contributions

Conceptualization, D.M.; Methodology, D.M.; Software, M.M.; Validation, D.M.; Formal analysis, D.M. and M.M.; Investigation, M.M.; Resources, Z.D.; Data curation, M.M.; Writing—original draft, D.M.; Writing—review & editing, M.M.; Visualization, D.M.; Supervision, D.M. and M.S.; Project administration, Z.D. and M.S.; Funding acquisition, M.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research has been funded by the Science Committee of the Ministry of Science and Higher Education of the Republic of Kazakhstan (grant no. AP13068661).

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Sample Input/Output Data

Table A1. Input.
Table A1. Input.
Input
dataIDP(atm)T(K)z_CO2z_nC4z_nC10
160.5336.10.640.190.16
252.0332.60.500.310.19
347.2332.70.010.270.71
463.9334.80.250.280.47
567.4335.90.940.040.02
673.8332.00.170.820.01
749.5336.90.270.590.14
842.1337.70.350.080.57
399947.1333.40.380.300.32
400079.4338.60.300.210.49
Table A2. Direct model output.
Table A2. Direct model output.
Direct Model Output
Data IDx_CO2x_nC4x_nC10y_CO2y_nC4y_nC10
14.74 × 10−1 2.62 × 10−12.64 × 10−1 9.19 × 10−1 7.92 × 10−2 1.89 × 10−3
24.29 × 10−1 3.47 × 10−12.24 × 10−1 8.99 × 10−1 1.00 × 10−1 1.17 × 10−3
33.86 × 10−1 1.84 × 10−14.30 × 10−1 9.47 × 10−1 5.12 × 10−2 1.39 × 10−3
45.02 × 10−1 2.00 × 10−1 2.98 × 10−1 9.39 × 10−1 5.91 × 10−2 2.13 × 10−3
55.16 × 10−1 1.14 × 10−1 3.70 × 10−1 9.64 × 10−1 3.35 × 10−2 2.59 × 10−3
67.21 × 10−1 2.76 × 10−1 2.63 × 10−3 8.34 × 10−1 1.66 × 10−1 3.94 × 10−4
73.98 × 10−1 4.94 × 10−1 1.08 × 10−1 8.40 × 10−1 1.60 × 10−1 8.24 × 10−4
83.35 × 10−1 7.82 × 10−2 5.87 × 10−1 9.75 × 10−1 2.38 × 10−2 1.72 × 10−3
39993.83 × 10−1 3.01 × 10−1 3.16 × 10−1 9.12 × 10−1 8.65 × 10−2 1.23 × 10−3
40005.85 × 10−1 1.37 × 10−1 2.78 × 10−1 9.50 × 10−1 4.60 × 10−2 4.04 × 10−3
Table A3. Hybrid model 2 output.
Table A3. Hybrid model 2 output.
Hybrid Model 2 Output
Data IDln(x_CO2)ln(x_nC4)ln(x_nC10)ln(y_CO2)ln(y_nC4)ln(y_nC10)
14.74 × 10−1 2.62 × 10−1 2.64 × 10−1 9.19 × 10−1 7.92 × 10−2 1.89 × 10−3
24.29 × 10−1 3.47 × 10−1 2.24 × 10−1 8.99 × 10−1 1.00 × 10−1 1.17 × 10−3
33.86 × 10−1 1.84 × 10−1 4.30 × 10−1 9.47 × 10−1 5.12 × 10−2 1.39 × 10−3
45.02 × 10−1 2.00 × 10−1 2.98 × 10−1 9.39 × 10−1 5.91 × 10−2 2.13 × 10−3
55.16 × 10−1 1.14 × 10−1 3.70 × 10−1 9.64 × 10−1 3.35 × 10−2 2.59 × 10−3
67.21 × 10−1 2.76 × 10−1 2.63 × 10−3 8.34 × 10−1 1.66 × 10−1 3.94 × 10−4
73.98 × 10−1 4.94 × 10−1 1.08 × 10−1 8.40 × 10−1 1.60 × 10−1 8.24 × 10−4
83.35 × 10−1 7.82 × 10−2 5.87 × 10−1 9.75 × 10−1 2.38 × 10−2 1.72 × 10−3
39993.83 × 10−1 3.01 × 10−1 3.16 × 10−1 9.12 × 10−1 8.65 × 10−2 1.23 × 10−3
40005.85 × 10−1 1.37 × 10−1 2.78 × 10−1 9.50 × 10−1 4.60 × 10−2 4.04 × 10−3
Table A4. Hybrid model 1 output.
Table A4. Hybrid model 1 output.
Hybrid Model 1 Output
Data IDK_CO2K_nC4K_nC10
11.94 × 10−03.02 × 10−1 7.13 × 10−3
22.10 × 10−02.89 × 10−1 5.23 × 10−3
32.45 × 10−02.78 × 10−1 3.23 × 10−3
41.87 × 10−02.96 × 10−1 7.16 × 10−3
51.87 × 10−02.94 × 10−1 7.01 × 10−3
61.16 × 10−06.01 × 10−1 1.50 × 10−1
72.11 × 10−03.23 × 10−1 7.63 × 10−3
82.91 × 10−03.04 × 10−1 2.94 × 10−3
39992.38 × 10−02.87 × 10−1 3.89 × 10−3
40001.62 × 10−03.35 × 10−1 1.45 × 10−2

References

  1. Li, L.; Khorsandi, S.; Johns, R.T.; Dilmore, R.M. CO2 enhanced oil recovery and storage using a gravity-enhanced process. Int. J. Greenh. Gas Control. 2015, 42, 502–515. [Google Scholar] [CrossRef]
  2. Magzymov, D.; Dindoruk, B.; Johns, R.T. Carbon Capture, Utilization, and Storage in the Context of Petroleum Industry: A State-of-the-art Review. In Proceedings of the SPE Improved Oil Recovery Conference, Virtual, 25–29 April 2022. [Google Scholar] [CrossRef]
  3. Dindoruk, B.; Johns, R.T.; Orr, F.M., Jr. Measurement and Calculation of Minimum Miscibility Pressure: A State of the Art Review. SPE Reserv. Eval. Eng. 2021, 24, 367–389. [Google Scholar] [CrossRef]
  4. Sinha, U.; Dindoruk, B.; Soliman, M. Prediction of CO2 Minimum Miscibility Pressure (MMP) Using Machine Learning Techniques. In Proceedings of the SPE Improved Oil Recovery Conference, Virtual, 31 August–1 September 2020; p. SPE 200326-PA. [Google Scholar]
  5. Michelsen, M.L. The isothermal flash problem. Part I. Stability. Fluid Phase Equilibria 1982, 9, 1–19. [Google Scholar] [CrossRef]
  6. Young, L.C.; Stephenson, R.E. A generalized compositional approach for reservoir simulation. Soc. Pet. Eng. J. 1983, 23, 727–742. [Google Scholar] [CrossRef]
  7. Michelsen, M.L.; Mollerup, J.M. Thermodynamic Models: Fundamentals and Computational Aspects; Tie-Line Press: Kokkedal, Denmark, 2004. [Google Scholar]
  8. Gaganis, V.; Varotsis, N. Non-iterative phase stability calculations for process simulation using discriminating functions. Fluid Phase Equilibria 2012, 314, 69–77. [Google Scholar] [CrossRef]
  9. Danesh, A. PVT and Phase Behaviour of Petroleum Reservoir Fluids; Elsevier Science Ltd.: Oxford, UK, 1998. [Google Scholar]
  10. Rachford, H.H.; Rice, J.D. Procedure for Use of Electronic Digital Computers in Calculating Flash Vaporization Hydrocarbon Equilibrium. J. Pet. Technol. 1952, 4, 19. [Google Scholar] [CrossRef]
  11. Robinson, D.B.; Peng, D.Y. The Characterization of the Heptanes and Heavier Fractions for the GPA Peng–Robinson Programs; Research Report RR-28; Gas Processors Association: Tulsa, OK, USA, 1978. [Google Scholar]
  12. Soave, G. Equilibrium constants from a modified Redlich-Kwong equation of state. Chem. Eng. Sci. 1972, 27, 1197–1203. [Google Scholar] [CrossRef]
  13. Michelsen, M.L. Simplified flash calculations for cubic equations of state. Ind. Eng. Chem. Process. Des. Dev. 1986, 25, 184–188. [Google Scholar] [CrossRef]
  14. Hendriks, E.; Van Bergen, A. Application of a reduction method to phase equilibria calculations. Fluid Phase Equilibria 1992, 74, 17–34. [Google Scholar] [CrossRef]
  15. Okuno, R.; Johns, R.T.; Sepehrnoori, K. Application of a reduced method in compositional simulation. SPE J. 2010, 15, 39–49. [Google Scholar] [CrossRef]
  16. Voskov, D.V.; Tchelepi, H.A. Compositional space parameterization: Multicontact miscible displacements and extension to multiple phases. SPE J. 2009, 14, 441–449. [Google Scholar] [CrossRef]
  17. Belkadi, A.; Yan, W.; Michelsen, M.L.; Stenby, E.H. Comparison of two methods for speeding up flash calculations in compositional simulations. In Proceedings of the SPE Reservoir Simulation Symposium, The Woodlands, TX, USA, 21–23 February 2011. [Google Scholar]
  18. Gaganis, V.; Varotsis, N. Machine learning methods to speed up compositional reservoir simulation. In Proceedings of the SPE Europec/EAGE Annual Conference, Copenhagen, Denmark, 4–7 June 2012. [Google Scholar]
  19. Kashinath, A.; Szulczewski, M.; Dogru, A. A fast algorithm for calculating isothermal phase behavior using machine learning. Fluid Phase Equilibria 2018, 465, 73–82. [Google Scholar] [CrossRef]
  20. Gaganis, V.; Varotsis, N. An integrated approach for rapid phase behavior calculations in compositional modeling. J. Pet. Sci. Eng. 2014, 118, 74–87. [Google Scholar] [CrossRef]
  21. Zhang, T.; Li, Y.; Li, Y.; Sun, S.; Gao, X. A self-adaptive deep learning algorithm for accelerating multi-component flash calculation. Comput. Methods Appl. Mech. Eng. 2020, 369, 113207. [Google Scholar] [CrossRef]
  22. Li, Y.; Zhang, T.; Sun, S. Acceleration of the NVT flash calculation for multicomponent mixtures using deep neural network models. Ind. Eng. Chem. Res. 2019, 58, 12312–12322. [Google Scholar] [CrossRef]
  23. Sheth, S.; Heidari, M.R.; Neylon, K.; Bennett, J.; McKee, F. Acceleration of thermodynamic computations in fluid flow applications. Comput. Geosci. 2022, 26, 1–11. [Google Scholar] [CrossRef]
  24. Zhang, T.; Li, Y.; Sun, S.; Bai, H. Accelerating flash calculations in unconventional reservoirs considering capillary pressure using an optimized deep learning algorithm. J. Pet. Sci. Eng. 2020, 195, 107886. [Google Scholar] [CrossRef]
  25. Chen, F.; Luo, S.; Wang, H.; Nasrabadi, S. A generalized machine learning-assisted phase-equilibrium calculation model for shale reservoirs. Fluid Phase Equilibria 2022, 558, 113423. [Google Scholar] [CrossRef]
  26. Raissi, M.; Karniadakis, G.E. Hidden physics models: Machine learning of nonlinear partial differential equations. J. Comput. Phys. 2018, 357, 125–141. [Google Scholar] [CrossRef]
  27. Blechschmidt, J.; Ernst, O.G. Three ways to solve partial differential equations with neural networks—A review. GAMM-Mitteilungen 2021, 44, e202100006. [Google Scholar] [CrossRef]
  28. Arthurs, C.J.; King, A.P. Active training of physics-informed neural networks to aggregate and interpolate parametric solutions to the Navier-Stokes equations. J. Comput. Phys. 2021, 438, 110364. [Google Scholar] [CrossRef] [PubMed]
  29. 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]
  30. 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]
  31. Fraces, C.G.; Tchelepi, H. Physics informed deep learning for flow and transport in porous media. In Proceedings of the SPE Reservoir Simulation Conference, On-Demand, 4–6 October 2021. [Google Scholar]
  32. Magzymov, D.; Ratnakar, R.R.; Dindoruk, B.; Johns, R.T. Evaluation of machine learning methodologies using simple physics based conceptual models for flow in porous media. J. Pet. Sci. Eng. 2022, 219, 111056. [Google Scholar] [CrossRef]
  33. Ihunde, T.A.; Olorode, O. Application of physics informed neural networks to compositional modeling. J. Pet. Sci. Eng. 2022, 211, 110175. [Google Scholar] [CrossRef]
  34. Sun, R.; Pan, H.; Xiong, H.; Tchelepi, H. Physical-informed deep learning framework for CO2-injected EOR compositional simulation. Eng. Appl. Artif. Intell. 2023, 126, 106742. [Google Scholar] [CrossRef]
  35. Wang, K.; Luo, J.; Wei, Y.; Wu, K.; Li, J.; Chen, Z. Practical application of machine learning on fast phase equilibrium calculations in compositional reservoir simulations. J. Comput. Phys. 2020, 401, 109013. [Google Scholar] [CrossRef]
  36. Chen, F.; Luo, S.; Wang, S.; Nasrabadi, H. A Novel Machine-Learning Assisted Phase-Equilibrium Calculation Model for Liquid-Rich Shale Reservoirs. In Proceedings of the SPE Reservoir Simulation Conference, Galveston, TX, USA, 28–30 March 2023. [Google Scholar] [CrossRef]
Figure 1. Model scenarios: (a) Direct Model, (b) Hybrid Model 1, and (c) Hybrid Model 2.
Figure 1. Model scenarios: (a) Direct Model, (b) Hybrid Model 1, and (c) Hybrid Model 2.
Applsci 14 11140 g001
Figure 2. Reference case generated using Peng–Robinson equation of state: (a) near-critical conditions of 80 atm and 60 °C; and (b) regular conditions of 75 atm and 60 °C.
Figure 2. Reference case generated using Peng–Robinson equation of state: (a) near-critical conditions of 80 atm and 60 °C; and (b) regular conditions of 75 atm and 60 °C.
Applsci 14 11140 g002
Figure 3. Machine learning (neural network) training, validation, and testing using 4000 flash calculation samples (pressure [80 atm to 40 atm], temperature [57 °C to 67 °C], and overall composition of CO2-C4-C10 [0 to 1]) for (a) Direct Model, (b) Hybrid Model 1, and (c) Hybrid Model 2.
Figure 3. Machine learning (neural network) training, validation, and testing using 4000 flash calculation samples (pressure [80 atm to 40 atm], temperature [57 °C to 67 °C], and overall composition of CO2-C4-C10 [0 to 1]) for (a) Direct Model, (b) Hybrid Model 1, and (c) Hybrid Model 2.
Applsci 14 11140 g003
Figure 4. Ternary diagram generated using the direct machine learning model (xi, yi): (a) near-critical conditions of 80 atm and 60 °C; and (b) regular conditions of 75 atm and 60 °C.
Figure 4. Ternary diagram generated using the direct machine learning model (xi, yi): (a) near-critical conditions of 80 atm and 60 °C; and (b) regular conditions of 75 atm and 60 °C.
Applsci 14 11140 g004
Figure 5. Ternary diagram generated using Hybrid Model 1—Ki → RR → xi, yi: (a) near-critical conditions of 80 atm and 60 °C; and (b) regular conditions of 75 atm and 60 °C.
Figure 5. Ternary diagram generated using Hybrid Model 1—Ki → RR → xi, yi: (a) near-critical conditions of 80 atm and 60 °C; and (b) regular conditions of 75 atm and 60 °C.
Applsci 14 11140 g005
Figure 6. Ternary diagram generated using Hybrid Model 2—log(xi), log(yi) → Ki → RR → xi, yi: (a) near-critical conditions of 80 atm and 60 °C; and (b) regular conditions 75 atm and 60 °C.
Figure 6. Ternary diagram generated using Hybrid Model 2—log(xi), log(yi) → Ki → RR → xi, yi: (a) near-critical conditions of 80 atm and 60 °C; and (b) regular conditions 75 atm and 60 °C.
Applsci 14 11140 g006
Figure 7. Ternary diagrams for far-from-critical conditions of 50 atm and 60 °C: (a) Peng–Robinson EoS; (b) Direct Model; (c) Hybrid Model 1; and (d) Hybrid Model 2.
Figure 7. Ternary diagrams for far-from-critical conditions of 50 atm and 60 °C: (a) Peng–Robinson EoS; (b) Direct Model; (c) Hybrid Model 1; and (d) Hybrid Model 2.
Applsci 14 11140 g007
Table 1. Physical model inputs used to generate ML input dataset.
Table 1. Physical model inputs used to generate ML input dataset.
Pc (atm)Tc (K)ω
carbon dioxide (CO2)72.8304.20.225
n-butane (C4)37.5425.20.193
n-decane (C10)20.8617.60.49
 
interaction coefficientscarbon dioxide (CO2)n-butane (C4)n-decane (C10)
carbon dioxide (CO2)00.1150.115
n-butane (C4)0.11500.012
n-decane (C10)0.1150.0120
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

Magzymov, D.; Makhatova, M.; Dairov, Z.; Syzdykov, M. Evaluation of Machine Learning Applications for the Complex Near-Critical Phase Behavior Modelling of CO2–Hydrocarbon Systems. Appl. Sci. 2024, 14, 11140. https://doi.org/10.3390/app142311140

AMA Style

Magzymov D, Makhatova M, Dairov Z, Syzdykov M. Evaluation of Machine Learning Applications for the Complex Near-Critical Phase Behavior Modelling of CO2–Hydrocarbon Systems. Applied Sciences. 2024; 14(23):11140. https://doi.org/10.3390/app142311140

Chicago/Turabian Style

Magzymov, Daulet, Meruyert Makhatova, Zhasulan Dairov, and Murat Syzdykov. 2024. "Evaluation of Machine Learning Applications for the Complex Near-Critical Phase Behavior Modelling of CO2–Hydrocarbon Systems" Applied Sciences 14, no. 23: 11140. https://doi.org/10.3390/app142311140

APA Style

Magzymov, D., Makhatova, M., Dairov, Z., & Syzdykov, M. (2024). Evaluation of Machine Learning Applications for the Complex Near-Critical Phase Behavior Modelling of CO2–Hydrocarbon Systems. Applied Sciences, 14(23), 11140. https://doi.org/10.3390/app142311140

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