Abstract
The numerical simulation of the flow in oil reservoirs has become, over decades, a standard tool applied by the oil and gas industry to forecast the behavior of a hydrocarbon producing field. To reduce the computational effort of these simulations, which in general demand more time as the case studied becomes more realistic, like other researchers, we use high-performance computing techniques in reservoir simulation. In this context, the main contribution of this work is the proposal of a strategy for the numerical simulation of non-isothermal flow in oil reservoirs using an operator splitting, the OpenMP, a coprocessor, and a one-equation model for temperature without the need to consider local thermal equilibrium. Throughout the development of this work, we used a non-isothermal flow modeling in porous media, the control-volume finite-difference method for discretization, and a linearization of the non-linear algebraic equations by Picard’s method. Our main objective was the parallelization of the numerical code using the OpenMP and, from the variation in the number of threads used in the simulations, we were able to reach speedups higher than 45 in some cases.
Similar content being viewed by others
References
Abreu E, Ferraz P, Santo AME, Pereira F, Santos LGC, Sousa FS (2020) Recursive formulation and parallel implementation of multiscale mixed methods. J Comput Phys. https://doi.org/10.48550/ARXIV.2009.07965
Afsar C, Akin S (2016) Solar generated steam injection in heavy oil reservoirs: a case study. Renew Energy 91:83–89. https://doi.org/10.1016/j.renene.2016.01.047
Amdahl GM (1967) Validity of the single processor approach to achieving large scale computing capabilities. In: Proceedings of the April 18–20, 1967, Spring Joint Computer Conference, https://doi.org/10.1145/1465482.1465560
Bera A, Babadagli T (2015) Status of electromagnetic heating for enhanced heavy oil/bitumen recovery and future prospects: a review. Appl Energy 151:206–226. https://doi.org/10.1016/j.apenergy.2015.04.031
Brunschen C, Brorsson M (2000) OdinMP/CCp - a portable implementation of OpenMP for C. Concurr Pract Exper 12(12):1193–1203
Buluç A, Fineman JT, Frigo M, Gilbert JR, Leiserson CE (2009) Parallel sparse matrix-vector and matrix-transpose-vector multiplication using compressed sparse blocks. In: Proceedings of the Twenty-First Annual Symposium on Parallelism in Algorithms and Architectures, New York, NY, USA,https://doi.org/10.1145/1583991.1584053
Carrielo IC, Honório Júnior PT, de Souza G, Amaral Souto HP (2020) Revisão e implementação de soluções analíticas para a determinação da pressão em poços de petróleo. Revista Brasiliense de Engenharia e Física Aplicada 5:17–32 (in Portuguese)
Chapman B, Jost G, van der Pas R (2008) Using OpenMP: portable shared memory parallel programming. The MIT Press, Cambridge
Chen Z, Huan G, Li B (2004) An improved IMPES method for two-phase flow in porous media. Transp Porous Media 54(3):361–376. https://doi.org/10.1023/B:TIPM.0000003667.86625.15
Davletbaev A, Kovaleva L, Babadagli T (2011) Mathematical modeling and field application of heavy oil recovery by radio-frequency electromagnetic stimulation. J Petrol Sci Eng 78(3–4):646–653. https://doi.org/10.1016/j.petrol.2011.07.006
de la Cruz LM, Monsivais D (2014) Parallel numerical simulation of two-phase flow model in porous media using distributed and shared memory architectures. Geofísica Int 53(1):59–75
de Souza G, Amaral Souto HP (2016) A comparative study of non-Darcy flows in naturally fractured gas reservoirs. J Brazil Soc Mech Sci Eng 38(6):1701–1715. https://doi.org/10.1007/s40430-016-0486-x
do Rosário RCD, de Souza G, Amaral Souto HP (2020) A comparative study of some well-reservoir coupling models in the numerical simulation of oil reservoirs. Int J Adv Eng Res Sci 7(9):126–148https://doi.org/10.22161/ijaers.79.16
Dumkwu FA, Akand IW, Carlson ES (2012) Review of well models and assessment of their impacts on numerical reservoir simulation performance. J Petrol Sci Eng 82–83:174–186. https://doi.org/10.1016/j.petrol.2011.12.005
de Freitas MM, de Souza G, Amaral Souto HP (2020) A Picard-Newton approach for simulating two-phase flow in petroleum reservoirs. Int J Adv Eng Res Sci 7(4):428–457. https://doi.org/10.22161/ijaers.74.53
Ertekin T, Abou-Kassem J, King G (2001) Basic applied reservoir simulation. Soc Petrol Eng
Gustafson JL (1988) Reevaluating Amdahl’s law. Commun ACM 31(5):532–533. https://doi.org/10.1145/42411.42415
Hager G, Wellein G (2010) Introduction to high performance computing for scientists and engineers. CRC Press, Florida
Hemstad J (2013) Modeling a non-uniform memory access architecture for optimizing conjugate gradient performance with sparse matrices. Master’s thesis, College of Saint Benedict and Saint John’s University, Minnessota, USA
Heringer JDS, Debossam JG, de Souza G, Amaral Souto HP (2019) Numerical simulation of non-isothermal flow in oil reservoirs using two-equation model. Coupled Syst Mech 8(2):147–168. https://doi.org/10.12989/csm.2019.8.2.147
Jaramillo A, Guiraldello RT, Paz S, Ausas RF, Sousa FS, Pereira F, Buscaglia GC (2022) Towards HPC simulations of billion-cell reservoirs by multiscale mixed methods. Comput Geosci 26:481–501. https://doi.org/10.1007/s10596-022-10131-z
Kovscek AR (2012) Emerging challenges and potential futures for thermally enhanced oil recovery. J Petrol Sci Eng 98–99:130–143. https://doi.org/10.1016/j.petrol.2012.08.004
Liu H, Tafti DK, Li T (2014) Hybrid parallelism in MFIX CFD-DEM using OpenMP. Powder Technol 259:22–29. https://doi.org/10.1016/j.powtec.2014.03.047
Maes J, Muggeridge AH, Jackson MD, Quintard M, Lapene A (2016) Modelling in-situ upgrading of heavy oil using operator splitting method. Comput Geosci 20:581–594. https://doi.org/10.1007/s10596-015-9495-6
Maly L, Zapletal J, Merta M, Riha L, Vondrak V (2018) Evaluation of the Intel Xeon Phi offload runtimes for domain decomposition solvers. Adv Eng Software 125:146–154. https://doi.org/10.1016/j.advengsoft.2018.06.011
Moyne C, Didierjean S, Amaral Souto HP, da Silveira OT (2000) Thermal dispersion in porous media: one-equation model. Int J Heat Mass Transf 43(20):3853–3867. https://doi.org/10.1016/S0017-9310(00)00021-1
Peaceman DW (1983) Interpretation of well-block pressures in numerical reservoir simulation with nonsquare grid blocks and anisotropic permeability. Soc Petrol Eng J 23(3):531–543
Quintard M, Kaviany M, Whitaker S (1997) Two-medium treatment of heat transfer in porous media: numerical results for effective properties. Adv Water Resour 20(2):77–94. https://doi.org/10.1016/S0309-1708(96)00024-3
Rousset M (2010) Reduced-order modeling for thermal simulation. Master’s thesis, University of Stanford, USA
Saad Y (2003) Iterative methods for sparse linear systems. SIAM
Terboven C, Spiegel A, an Mey D, Gross S, Reichelt V (2008) Experiences with the OpenMP parallelization of DROPS, a Navier-Stokes solver written in C++. In: OpenMP Shared Memory Parallel Programming, Springer Berlin Heidelberg, Berlin https://doi.org/10.1007/978-3-540-68555-5_8
Vennemo SB (2016) Multiscale simulation of thermal flow in porous media. Master’s thesis, Norwegian University of Science and Technology, Norway
Vladimirov A, Asai R, Karpusenko V (2019) Parallel programming and optimization with Intel Xeon Phi Coprocessors. Colfax Int
Werneck LF, de Freitas MM, Jatobá LFC, de Souza G, Amaral Souto HP (2019) An OpenMP parallel implementation using a coprocessor for numerical simulation of oil reservoirs. Comput Appl Math. https://doi.org/10.1007/s40314-019-0788-6
Zhu H, Wu Y, Li P, Whang D, Zhang Shi P W, Jiao L (2016) A parallel non-local means denoising algorithm implementation with OpenMP and OpenCL on Intel Xeon Phi coprocessor. J Comput Sci 17:591–598. https://doi.org/10.1016/j.jocs.2016.07.001
Acknowledgements
The authors gratefully thanks Rio de Janeiro State University, Coordination for the Improvement of Higher Education Personnel (CAPES)-Finance Code 001, and National Council for Scientific and Carlos Chagas Filho Foundation for Research Support of the State of Rio de Janeiro (FAPERJ) for their support.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no conflict of interest.
Additional information
Communicated by Maicon Ribeiro Correa.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Werneck, L.F., Heringer, J.D.d.S., de Souza, G. et al. Numerical simulation of non-isothermal flow in oil reservoirs using a coprocessor and the OpenMP. Comp. Appl. Math. 42, 365 (2023). https://doi.org/10.1007/s40314-023-02496-3
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s40314-023-02496-3