{"id":{"repo_id":"alberta","oai_identifier":"oai:ualberta.scholaris.ca:123456789/103179"},"canonical_url":"https://search.ndltd.org/etd/alberta/oai:ualberta.scholaris.ca:123456789/103179","repository":{"repo_id":"alberta","name":"University of Alberta","base_url":"https://era.library.ualberta.ca/oai"},"display":{"title":"Development of Robust Algorithms Dedicated to Four-Phase Equilibrium Calculations and Four-Phase Envelope Constructions","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.","abstract_html":"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.","abstract_has_math":false,"creators":["Li, Sirui"],"institution":"University of Alberta","degree_name":"Doctor of Philosophy","degree_level":"Doctoral","degree_discipline":"Petroleum Engineering","degree_department":null,"school":null,"contributors":[],"advisors":["Li, Huazhou (Civil and Environmental Engineering)"],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025-06","date_published":"2025-06","updated_at":"2026-11-26T21:09:45Z","subjects":["Four-phase equilibrium","multiphase equilibrium","phase envelope construction","phase boundary tracking","flash calculations"],"languages":["en"],"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."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.7939/81961","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.7939/81961","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aalberta%3Aoai%3Aualberta.scholaris.ca%3A123456789%2F103179","prefix":"oai_dc"},"source_record":{"url":"https://era.library.ualberta.ca/oai?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aualberta.scholaris.ca%3A123456789%2F103179","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Li, Huazhou (Civil and Environmental Engineering)"]},{"key":"dc:creator","label":"Author","values":["Li, Sirui"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-06-12T18:23:24Z"]},{"key":"dc:date.issued","label":"Date","values":["2025-06"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Petroleum Engineering"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Doctoral"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Alberta"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Four-phase equilibrium","multiphase equilibrium","phase envelope construction","phase boundary tracking","flash calculations"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["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."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.7939/81961"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["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."]},{"key":"dc:title","label":"Title","values":["Development of Robust Algorithms Dedicated to Four-Phase Equilibrium Calculations and Four-Phase Envelope Constructions"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Li, Huazhou (Civil and Environmental Engineering)"],"dc:creator":["Li, Sirui"],"dc:date.accessioned":["2025-06-12T18:23:24Z"],"dc:date.issued":["2025-06"],"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."],"dc:identifier.doi":["https://doi.org/10.7939/81961"],"dc:language.iso":["en"],"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."],"dc:subject":["Four-phase equilibrium","multiphase equilibrium","phase envelope construction","phase boundary tracking","flash calculations"],"dc:title":["Development of Robust Algorithms Dedicated to Four-Phase Equilibrium Calculations and Four-Phase Envelope Constructions"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_discipline":["Petroleum Engineering"],"thesis:degree_level":["Doctoral"],"thesis:degree_name":["Doctor of Philosophy"],"thesis:institution_name":["University of Alberta"]},"updated_at":"2026-11-26T21:09:45Z"}