Skip to main content
Log in

Parallel OpenMP and OpenACC porous media simulation

  • Published:
The Journal of Supercomputing Aims and scope Submit manuscript

Abstract

According to estimates, between 10 and 25% of the grain crop is lost in the post-harvest. The correct drying of the beans is one of the actions to contain this loss. Drying grains is one of the most critical steps in grain processing for its proper conservation after harvest. As the grain mass is a set of solid and empty spaces (holes) through which a fluid can pass, its drying could be considered a problem of the coupled open-porous medium. In this paper, we propose a mathematical and computer simulation model which describes the convection in a free flow with a porous obstacle applied to the grain drying processing. A computational fluid dynamics scheme was implemented in FORTRAN using Finite Volume to simulate and compute the numerical solutions. The code is parallel implemented using OpenMP (loop and teams approach) and OpenACC programming interfaces. We use three case studies with different mesh sizes to evaluate the implementations. As a result, there was a reduction in processing time in the cases. The total simulation time for a multicore architecture (16 physical cores) was 6,14 times less using parallel loops and 8.5 using parallel teams, and 8.38 using a single GPU (Quadro M5000).

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

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

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

Similar content being viewed by others

Availability of data and materials

Not applicable.

References

  1. Krokida M, Marinos-Kouris D, Mujumdar AS (2006) Handbook of industrial drying. Rotary Dry 3:151–172

    Google Scholar 

  2. Cornelissen P (2016) Coupled free-flow and porous media flow: a numerical and experimental investigation. Ph.D. thesis, Faculty of Geosciences - Utrecht University (2016)

  3. Goyeau B, Lhuillier D, Gobin D, Velarde M (2003) Momentum transport at a fluid-porous interface. Int J Heat Mass Transf 46(21):4071–4081

    Article  MATH  Google Scholar 

  4. Lobato Gimenes T, Pisani F, Borin E (2018) Evaluating the performance and cost of accelerating seismic processing with CUDA, OpenCL, OpenACC, and OpenMP, 399–408

  5. Goyal A, Li Z , Kimm H (2017) Comparative study on edge detection algorithms using OpenACC and OpenMPI on multicore systems, 67–74

  6. Simanjuntak CA , Gunawan PH (2017) Computing two-layer SWE for simulating submarine avalanches on OpenMP, 190–195

  7. Juliati S, Gunawan PH (2017) OpenMP architecture to simulate 2D water oscillation on paraboloid, 1–5

  8. Gunawan PH (2016) Scientific parallel computing for 1D heat diffusion problem based on OpenMP, 1–5

  9. Raj A, Roy S, Vydyanathar N , Sharma B (2018) Acceleration of a 3D immersed boundary solver using OpenACC, 65–73

  10. Morishita M, Ohshima S, Katagiri T , Nagai T (2021) Parallelization of GKV benchmark using OpenACC, 723–729

  11. de Carvalho L, Werneck L, de Souza G, Amaral Souto H (2020) Uma implementação paralelizada via a API OpenMP para a simulação numérica de reservatórios de gás natural. Revista Brasileira de Computação Aplicada12 (2), 103–121 (2020). http://seer.upf.br/index.php/rbca/article/view/10158. https://doi.org/10.5335/rbca.v12i2.10158

  12. da Silva Almeida RAB (2021) Solução numérica do escoamento não-isotérmico em reservatórios de óleo pesado empregando computação paralela. Ph.D. thesis, Universidade do Estado do Rio de Janeiro - Instituto Politécnico

  13. 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 internacional53, 59–75 (2014). http://www.scielo.org.mx/scielo.php?script=sci_arttext &pid=S0016-71692014000100005 &nrm=iso

  14. De Rango A et al (2020) Opencal system extension and application to the three-dimensional richards equation for unsaturated flow. Comput Math Appl. https://doi.org/10.1016/j.camwa.2020.05.017

    Article  Google Scholar 

  15. Ho MT et al (2019) A multi-level parallel solver for rarefied gas flows in porous media. Comput Phys Commun 234:14–25. https://doi.org/10.1016/j.cpc.2018.08.009

    Article  Google Scholar 

  16. Le Breton P, Caltagirone JP, Arquis E (1991) Natural convection in a square cavity with thin porous layers on its vertical walls. J Heat Transfer 113(4):892–898. https://doi.org/10.1115/1.2911218

    Article  Google Scholar 

  17. Versteeg HK, Malalasekera W (2007) An introduction to computational fluid dynamics: the finite, vol method. Pearson Education, New Jersey

    Google Scholar 

  18. Leonard B (1979) A stable and accurate convective modelling procedure based on quadratic upstream interpolation. Comput Methods Appl Mech Eng 19(1), 59–98. https://www.sciencedirect.com/science/article/pii/0045782579900343. https://doi.org/10.1016/0045-7825(79)90034-3

  19. OpenMP (2023) The OpenMP API specification for parallel programming. https://www.openmp.org/. https://www.openmp.org

  20. Chapman B, Mehrotra P, Zima H (1998) Enhancing OpenMP with features for locality control. Austrian, Citeseer (PSU

    Google Scholar 

  21. Chandrasekaran S, Juckeland G (2017) OpenACC for programmers: concepts and strategies, 1st edn. Addison-Wesley Professional, Cambridge

    Google Scholar 

  22. OpenACC. What is OpenACC? (2022). https://www.openacc.org/. Accessed May, 20 2022

Download references

Acknowledgements

The authors acknowledge the Universidade Federal do Pampa for providing support and technological resources, which have contributed to the development of this project and the results reported within this research.

Funding

This study was partially funded by the Fundação de Amparo à Pesquisa do Estado do Rio Grande do Sul (FAPERGS): 07/2021 PqG project No 21/2551-0002055-5, PROBIC and PROBITI programs, Coordenação de Aperfeiçoamento de Pessoal de Nivel Superior - Brasil (CAPES) - Finance Code 001, and the Federal University of Pampa.

Author information

Authors and Affiliations

Authors

Contributions

HS and CS wrote the main manuscript text. HS, NL, and CS parallel implemented the application. CS runs the previous performance analysis. NL runs the tests and provides the graphics and the code snippets. HS produces the related work. DDO and CC provide the numerical simulation description, including equations, schematic and numerical output figures, and the algorithm. All authors reviewed the manuscript.

Corresponding author

Correspondence to Claudio Schepke.

Ethics declarations

Ethics approval and consent to participate

Not applicable.

Consent for publication

All authors have read and approved the final manuscript and agree with its submission to The Journal of Supercomputing.

Competing interests

The authors have no competing interests as defined by Springer or other interests that might be perceived to influence the results and/or discussion reported in this paper.

Additional information

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.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Silva, H.U.d., Lucca, N., Schepke, C. et al. Parallel OpenMP and OpenACC porous media simulation. J Supercomput 79, 8425–8446 (2023). https://doi.org/10.1007/s11227-022-05004-2

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11227-022-05004-2

Keywords