Back to search

University of Alberta

Development of Robust Algorithms Dedicated to Four-Phase Equilibrium Calculations and Four-Phase Envelope Constructions

Abstract

dc:description.abstract

An aqueous phase is inevitable within the pore spaces of an oil reservoir. When both hydrocarbons and water are present, up to four phases (i.e., a vapor phase (V), a light hydrocarbon phase (L1), a heavy hydrocarbon phase (L2), and an aqueous phase (A)) can coexist at a given thermodynamic equilibrium. Thus, robust and efficient vapor-liquid-liquid-aqueous (VLLA) four-phase equilibrium calculation algorithms need to be developed to accurately capture such four-phase equilibria in situ. As the number of phases increases to four, it becomes significantly more difficult for both stability tests and flash calculations to converge. Such convergence difficulty tends to exacerbate in near-critical regions, where phase behavior changes rapidly with slight variations in pressure or temperature, and along phase boundaries. One approach to mitigating this complexity is by reducing the dimensionality of the four-phase flash calculation problem. Based on this idea, we propose a four-phase flash calculation algorithm that leverages the free-water assumption under pressure-temperature (PT) specifications, where the aqueous phase is considered to consist of pure water only (Tang and Saha, 2003; Lapene et al., 2010; Li and Li, 2017; Pang and Li, 2017; Li and Li, 2018). Case studies show that this free-water flash calculation algorithm is more computationally efficient than the conventional full-flash algorithm while maintaining good accuracy. Building on this, we develop an isenthalpic (PH, i.e., under pressure-enthalpy specifications) four-phase equilibrium calculation algorithm using a nested approach. In this design, the PT free-water algorithm is embedded in the inner loop to solve phase fractions and compositions, while the outer loop updates temperatures using the energy conservation equation. The proposed PH algorithm is robust and derivative-free. Our testing demonstrates that the proposed PH algorithm reliably converges to the correct phase equilibria with only a few dozen PT algorithm calls. To achieve accurate phase equilibrium calculations, full flash calculations are still necessary. The state-of-the-art trust-region method has demonstrated its superior robustness and efficiency in solving multiphase equilibrium problems (Petitfrere and Nichita, 2014; Pan et al., 2019). However, applying the conventional trust-region method to multiphase equilibrium calculations involving water, CO2, and heavy hydrocarbons may lead to convergence failures. To address this challenge, we develop a new modified trust-region method that incorporates two key enhancements: a scaled trust-region method, which ensures appropriate scaling of the Hessian matrix, and a non-monotonic trust-region method, which allows for greater flexibility in accepting trial points. Comparative analysis against the conventional trust-region algorithm shows that the modified trust-region-based algorithm effectively resolves non-convergence issues and improves computational efficiency. Lastly, considering that we are still lacking an algorithm for constructing four-phase envelopes, we develop a generalized algorithm that can be used to track four-phase boundaries. The algorithm can be also used to track three-phase boundaries. Testing it on six fluid mixtures demonstrates its superior robustness and efficiency in calculating both three- and four-phase boundaries.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy
Level thesis:degree_level
Doctoral
Discipline thesis:degree_discipline
Petroleum Engineering
Grantor
University of Alberta
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Li, Sirui
Advisor dc:contributor.advisor
  • Li, Huazhou (Civil and Environmental Engineering)

Subjects

dc:subject × 5

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/81961

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Li, Sirui. Development of Robust Algorithms Dedicated to Four-Phase Equilibrium Calculations and Four-Phase Envelope Constructions. Doctoral thesis, University of Alberta, 2025. https://doi.org/10.7939/81961