Skip to main content
Log in

An OpenMP parallel implementation using a coprocessor for numerical simulation of oil reservoirs

  • Published:
Computational and Applied Mathematics Aims and scope Submit manuscript

Abstract

The objective of this work is to parallelize, using the Application Programming Interface (API) OpenMP (Open Multi-Processing) and Intel Xeon Phi coprocessor based on Intel Many Integrated Core (MIC) architecture, the numerical method used to solve the algebraic system resulting from the discretization of the differential partial equation (PDE) that describes the single-phase flow in an oil reservoir. The set of governing equations are the continuity equation and the Darcy’s law. The Hydraulic Diffusivity Equation (HDE), for the unknown pressure, is obtained from these fundamental equations and it is discretized by means of the Finite Difference Method (FDM) along with a time implicit formulation. Different numerical tests were performed to study the computational efficiency of the parallelized versions of Conjugate Gradient, BiConjugate Gradient and BiConjugate Gradient Stabilized methods. Speedup results were considered to evaluate the performance of the parallel algorithms for the horizontal well simulation case. The methodology also included a sensibility analysis for different production scenarios including variations on the permeability, formation-value-factor, well length and production rate.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17

Similar content being viewed by others

Notes

  1. This means that even if all the steps of one core pipeline take 4 cycles to perform, at each cycle one of the threads will always ending a computational operation.

  2. Is a floating-point multiply–add operation performed in one step.

References

  • Abou-Kassem JH, Ertekin T (1992) An efficient algorithm for removal of inactive blocks in reservoir simulation. J Can Pet Technol 31:25–31

    Article  Google Scholar 

  • Al-Gosayir M, Babadagli T, Leung J, Al-Bahlani AM (2015) In-situ recovery of heavy-oil from fractured carbonate reservoirs: optimization of steam-over-solvent injection method. J Pet Sci Eng 130:77–85

    Article  Google Scholar 

  • Al-Mohannadi NS, Ozkan E, Kazemi H (2007) Pressure-transient responses of horizontal and curved wells in anticlines and domes. Soc Pet Eng Reserv Eval Eng 10(1):66–76

    Google Scholar 

  • Asibor E, Marongiu-Porcu M, Economides MJ (2013) Oil production optimization without natural gas constraints: the harvesting of upstream natural gas. J Nat Gas Sci Eng 15:59–68

    Article  Google Scholar 

  • Barree RD, Conway MW (2004) Beyond Beta factors: a complete model for Darcy, Forchheimer, and Trans-Forchheimer flow in porous media. In: SPE annual technical conference and exhibition. Society of Petroleum Engineers

  • Barrett R, Berry MW, Chan TF, Demmel J, Donato J, Dongarra J, Eijkhout V, Pozo R, Romine C, Van der Vorst H (1994) Templates for the solution of linear systems: building blocks for iterative methods, vol 43. Society of Industrial and Applied Mathematics

  • Barth M, Byckling M, Ilieva N, Saarinen S, Schlienphake M (2014) Best Practice Guide Intel Xeon Phi, v1.1 edn. LRZ Germany

  • Belhaj HA, Agha KR, Nouri AM, Butt SD, Islam MR (2003) Numerical and experimental modeling of non-Darcy flow in porous media. In: SPE Latin American and Caribbean petroleum engineering conference. Society of Petroleum Engineers

  • Biryukov D, Kuchuk FJ (2015) Pressure transient behavior of horizontal wells intersecting multiple hydraulic fractures in naturally fractured reservoirs. Transp Porous Media 110:369–408

    Article  MathSciNet  Google Scholar 

  • Cao J, Lai C-H (2015) Numerical experiments of some Krylov subspace methods for black oil model. Comput Math Appl 44(1–2):125–141

    MathSciNet  MATH  Google Scholar 

  • Chapman B, Jost G, VAN DER PAS R (2008) Using OpenMP: portable shared memory parallel programming, vol 10. MIT Press, Cambridge

    Google Scholar 

  • Chaudhry AU (2003) Gas well testing handbook. Elsevier, Burlington

    Google Scholar 

  • de Souza G, Amaral Souto HP (2016) A comparative study of non-Darcy flows in gas naturally fractured reservoirs. J Braz Soc Mech Sci Eng 38(6):1701–1715

    Article  Google Scholar 

  • de Souza G, Pires A, Abreu E (2014) Well-reservoir coupling on the numerical simulation of horizontal wells in gas reservoirs. In: Society of Petroleum Engineers Latin America and Caribbean petroleum engineering conference, Maracaibo

  • Dumkwu FA, Akand IW, Carlson ES (2012) Review of well models and assessment of their impacts on numerical reservoir simulation performance. J Pet Sci Eng 82–83:174–186

    Article  Google Scholar 

  • Ertekin T, Abou-Kassem JH, King GR (2001) Basic applied reservoir simulation. Society of Petroleum Engineers, Richardson

    Google Scholar 

  • Grama A, Karypis G, Kumar V, Gupta A (2003) Introduction to parallel computing, 2nd edn. Addison-Wesley, Boston

    MATH  Google Scholar 

  • He J, Durlofsky LJ (2013) Reduced-order modeling for compositional simulation using trajectory piecewise linearization. In: Society of petroleum engineers reservoir simulation symposium, The Woodlands

  • Hemstad J (2013) Modeling a non-uniform memory access architecture for optimizing conjugate gradient performance with sparse matrices. Dissertao de mestrado, College of Saint Benedict and Saint John’s University, Minnessota

    Google Scholar 

  • Hu J, Zhang C, Rui Z, Yu Y, Chen Z (2017) Fractured horizontal well productivity prediction in tight oil reservoirs. J Pet Sci Eng 151:159–168

    Article  Google Scholar 

  • Ishizawa Y, Matsumoto K, Sato K, Okatsu K, Miyake Y (2015) Accelerating of the reservoir simulator TOUGH2 by GPU. Energy Procedia 37:3764–3770

    Article  Google Scholar 

  • Islam MR, Moussavizadegan SH, Mustafiz S, Abou-Kassem JH (2010) Advanced petroleum reservoir petroleum, 1st edn. Wiley-Scrivener, Salem

    Book  Google Scholar 

  • Jmili A, Wilhite GP, Green D (2011) Modeling gas-phase mass transfer between fracture and matrix in naturally fractured reservoirs. Soc Pet Eng J 16(4):795–811

    Google Scholar 

  • Kardale M (2015) Efficient and accurate simulation of nonlinearly coupled multiphase flow in porous media, Master’s thesis. Delft University of Technology, Delft

    Google Scholar 

  • Moradi T, Rasaei M-R (2018) Automated reservoir management using multi-objective simulation optimization and SA model. J Pet Sci Eng 150:91–98

    Article  Google Scholar 

  • Moradidowlatabad M, Jamiolahmady M (2018) The performance evaluation and design optimisation of multiple fractured horizontal wells in tight reservoirs. J Nat Gas Sci Eng 49:19–31

    Article  Google Scholar 

  • Meister O, Bader M (2015) 2D adaptivity for 3D problems: parallel SPE10 reservoir simulation on dynamically adaptive prism grids. J Comput Sci 9:101–106

    Article  Google Scholar 

  • Nwachukwu A, Jeong H, Pyrcz M, Lake LW (2018) Fast evaluation of well placements in heterogeneous reservoir models using machine learning. J Pet Sci Eng 163:463–475

    Article  Google Scholar 

  • Peaceman DW (1978) Interpretation of well-block pressures in numerical reservoir simulation. Soc Pet Eng J 18(3):183–194

    Article  Google Scholar 

  • Redondo C, Rubio G, Valero E (2018) On the efficiency of the IMPES method for two phase flow problems in porous media. J Pet Sci Eng 164:427–436

    Article  Google Scholar 

  • Saad Y (2003) Iterative methods for sparse linear systems, 2nd edn. SIAM, Philadelphia

    Book  Google Scholar 

  • Shahbazi S, Maarefvand P, Gerami S (2015) Investigation on flow regimes and non-Darcy effect in pressure test analysis of horizontal gas wells. J Pet Sci Eng 129:121–129

    Article  Google Scholar 

  • Teng B, Li HA (2018) A semi-analytical model for characterizing the pressure transient behavior of finite-conductivity horizontal fractures. Transp Porous Media 123:367–402

    Article  MathSciNet  Google Scholar 

  • Torelli JC, Bruno OM (2004) Programação paralela em SMPs com OpenMP e POSIX Threads: um estudo comparativo. Anais do IV Congresso Brasileiro de Computação (CBComp) 1:486–491

    Google Scholar 

  • Vicente R, Sarica C, Ertekin T (2002) A numerical model coupling reservoir and horizontal well-flow dynamics: transient behavior of single-phase liquid and gas flow. Soc Petr Eng J 7(1):70–77

    Google Scholar 

  • Wang Y, Yan B, Killough J (2013) Compositional modeling of tight oil using dynamic nanopore properties. In: SPE annual technical conference and exhibition. Society of Petroleum Engineers, New Orleans

  • Wei X, Li W, Tian H, Li H, Xu H, Xu T (2015) THC-MP: high performance numerical simulation of reactive transport and multiphase flow in porous media. Comput Geosci 80:26–37

    Article  Google Scholar 

  • Zaydullin R, Voskov DV, James SC, Henley H, Lucia A (2014) Fully compositional and thermal reservoir simulation. Comput Chem Eng 63:51–65

    Article  Google Scholar 

Download references

Acknowledgements

The authors gratefully thank Rio de Janeiro State University, CAPES, CNPq and FAPERJ for their support.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to G. de Souza.

Additional information

Communicated by Abimael Loula.

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This work was supported in part by the National Council for Scientific and Technological Development (CNPq-Brazil) through Grant 306212/2015-3 and Carlos Chagas Filho Research Support Foundation (FAPERJ) through Grant E-26/210.378/2014.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Werneck, L.F., de Freitas, M.M., de Souza, G. et al. An OpenMP parallel implementation using a coprocessor for numerical simulation of oil reservoirs. Comp. Appl. Math. 38, 33 (2019). https://doi.org/10.1007/s40314-019-0788-6

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s40314-019-0788-6

Keywords

Mathematics Subject Classification

Navigation