Summary: Volume-based phase equilibrium calculations (PECs) are gaining increasing attention because the traditional Gibbs free-energy-based PECs encounter various convergence issues when capillary pressure is introduced. However, the conventional successive substitution iteration (SSI) is inapplicable without modification to volume-based PECs, thus necessitating a robust and efficient algorithm. In this study, we developed a unified trust region (TR) Newton-based algorithmic framework for volume-based PECs at isothermal-isobaric conditions, encompassing phase stability analysis (PSA) and flash calculations (FCs), with both formulated as minimization problems. Unlike traditional line search methods, which separately determine the step direction and length, the TR method integrates both processes to ensure faster and more reliable convergence. To further enhance robustness, we incorporate problem-specific constraint checks for PSA and FCs and solve TR subproblems using the near-exact approach. A key feature of our approach is the analytical generation of Hessian matrices using the Automatically Differentiable Expression Templates Library (ADETL), enabling high computational precision. Extensive testing on four fluid mixtures demonstrates that the TR-based algorithm is both rapid and robust, effectively addressing challenges such as the stability testing limit locus (STLL), spinodal curves in PSA, and critical regions in FCs. This work represents the first application of TR algorithms in volume-based PECs, providing a solid foundation for further developments, including the integration of capillary pressure. The proposed framework offers significant potential for compositional simulations of unconventional oil and gas reservoirs, ensuring accuracy and efficiency in complex PECs.
Dimethyl ether (DME) has emerged as a promising additive in CO2-enhanced oil recovery (EOR), and the minimum miscibility pressure (MMP) is pivotal for flooding strategies. However, research on DME's impact on MMP is limited. This study undertakes a comprehensive investigation into the effects of DME on the gas–oil MMP during CO2 flooding, considering water-free and water-saturated scenarios. First, a two-phase multiple-mixing-cell method (MMC) with a rapid MMP estimation technique is adopted to analyze the influence of DME concentration on MMP without water. Subsequently, an improved three-phase MMC method is developed for scenarios involving water. The Peng–Robinson equation of state with the Huron–Vidal mixing rule (PR+HV) is used to model the system accurately. Our findings reveal that a proper amount of DME can significantly lower the MMP. When the initial MMP without DME is less than the oil's saturation pressure, increasing DME further will raise the MMP. Moreover, a continuous increase in the DME concentration in the injected gas can shift the miscibility mechanism from multi-contact to first-contact miscibility. This novel observation has significant implications for CO2 flooding strategies. Additionally, water has a negligible effect on MMP, allowing water-free MMP results to be used in water-present situations, thus simplifying calculations. Overall, this research provides a reliable framework for assessing the impact of DME on MMP and highlights the importance of a rational DME concentration for achieving optimal MMP reduction in EOR processes.
Summary: The production of shale oil and gas has experienced a substantial rise over the past decades. However, traditional numerical simulators have shown significant inconsistencies in forecasting production and ultimate recovery rates, primarily due to the widespread nanoscale pores in shale reservoirs, which induce pronounced capillary pressure (Pc) between the gas and liquid phases, leading to deviations in phase behavior. Besides, numerous convergence problems and formulation issues are reported for Gibbs free energy-based phase equilibrium calculations (PECs) with Pc. Therefore, there is an essential need to develop robust and efficient algorithms for PECs including Pc. In this research, we developed a unified trust region (TR) Newton-based algorithmic framework for phase stability analysis (PSA) and flash calculations with Pc at isobaric-isothermal conditions. We utilized the near-exact method to resolve the subproblem within the TR iteration and incorporated specific physical constraints to ensure the solution’s feasibility during iterations. Newly developed algorithm locates solution within the volume composition space, contrary to the conventional method, which is based on the composition space. The volume-based formulation not only circumvents the requirement to calculate volume during each iteration but also addresses diverse algorithmic challenges reported when integrating Pc into the standard PECs framework. Furthermore, to our knowledge, this represents the first application of TR-related algorithm in volume-based PECs algorithm including Pc. Comprehensive numerical results, primarily derived from three representative fluids sourced from the literature, validate the new algorithm robustness and efficiency even under conditions of significant Pc and also offer valuable insights into the influence of Pc on phase equilibrium.