Skip to main content

Parallel CPU/GPU Computing for Smoothed Particle Hydrodynamics Models

  • Conference paper
  • First Online:
Recent Advances in Fluid Dynamics with Environmental Applications

Abstract

Smoothed Particle Hydrodynamics (SPH) is a numerical method particularly suitable to describe a variety of complex free-surface flows with large discontinuities. However, SPH simulations are computationally expensive and typical runtimes are too high to study real problems with high resolution. The proposed solution is the parallel computation to accelerate the SPH executions. This work introduces several high performance techniques applied to SPH to allow simulation of real problems at reasonable time. In this way, OpenMP was used to exploit all cores in the classical CPUs. On the other hand, CUDA language was used to take advantage of the high parallel computing power of GPUs (Graphics Processing Units). Finally, Message Passing Interface (MPI) was implemented to combine the power of several machines connected by network. These parallelization techniques are implemented in the code DualSPHysics and results are shown in terms of performance, efficiency and scalability using different CPU and GPU models.

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

Access this chapter

Institutional subscriptions

References

  • Altomare C, Crespo AJ, Rogers BD, Domínguez JM, Gironella X, Gómez-Gesteira M (2014) Numerical modelling of armour block sea breakwater with smoothed particle hydrodynamics. Comput Struct 130:34–45

    Article  Google Scholar 

  • Altomare C, Crespo AJC, Domínguez JM, Gómez-Gesteira M, Suzuki T, Verwaest T (2015) Applicability of smoothed particle hydrodynamics for estimation of sea wave impact on coastal structures. Coast Eng 96:1–12. doi:10.1016/j.coastaleng.2014.11.001

    Article  Google Scholar 

  • Barreiro A, Crespo AJC, Domínguez JM, Gómez-Gesteira M (2013) Smoothed particle hydrodynamics for coastal engineering problems. Comput Struct 120(15):96–106. doi:10.1016/j.compstruc.2013.02.010

    Article  Google Scholar 

  • Crespo AJC, Gómez-Gesteira M, Dalrymple RA (2007) Boundary conditions generated by dynamic particles in SPH methods. CMC: Comput Mater Contin 5(3):173–184

    Google Scholar 

  • Crespo AJC, Domínguez JM, Barreiro A, Gómez-Gesteira M, Rogers BD (2011) GPUs, a new tool of acceleration in CFD: efficiency and reliability on smoothed particle hydrodynamics methods. PLoS ONE 6(6):e20685

    Article  Google Scholar 

  • Crespo AJC, Domínguez JM, Rogers BD, Gómez-Gesteira M, Longshaw S, Canelas R, Vacondio R, Barreiro A, García-Feal O (2015) DualSPHysics: open-source parallel CFD solver on smoothed particle hydrodynamics (SPH). Comput Phys Commun 187:204–216. doi:10.1016/j.cpc.2014.10.004

    Article  Google Scholar 

  • Dalrymple RA, Rogers BD (2006) Numerical modelling of water waves with the SPH method. Coast Eng 53:141–147

    Article  Google Scholar 

  • Domínguez JM, Crespo AJC, Gómez-Gesteira M, Marongiu JC (2011) Neighbour lists in smoothed particle hydrodynamics. Int J Numer Meth Fluids 67(12):2026–2042

    Article  Google Scholar 

  • Domínguez JM, Crespo AJC, Gómez-Gesteira M (2013a) Optimization strategies for CPU and GPU implementations of a smoothed particle hydrodynamics method. Comput Phys Commun 184(3):617–627

    Article  Google Scholar 

  • Domínguez JM, Crespo AJC, Rogers BD, Gómez-Gesteira M (2013b) New multi-GPU implementation for smoothed particle hydrodynamics on heterogeneous clusters. Comput Phys Commun 184:1848–1860

    Article  Google Scholar 

  • Gingold RA, Monaghan JJ (1977) Smoothed particle hydrodynamics: theory and application to non-spherical stars. Mon Not R AstrSoc 181:375–389

    Article  Google Scholar 

  • Gómez-Gesteira M, Dalrymple RA (2004) Using a 3D SPH method for wave impact on a tall structure. J Waterway Port Coast Ocean Eng 130(2):63–69

    Google Scholar 

  • Gómez-Gesteira M, Rogers BD, Dalrymple RA, Crespo AJC (2010) State-of-the-art of classical SPH for free surface flows. J Hydraul Res 48:6–27. doi:10.3826/jhr.2010.0012

    Article  Google Scholar 

  • Gómez-Gesteira M, Rogers BD, Crespo AJC, Dalrymple RA, Narayanaswamy M, Domínguez JM (2012a) SPHysics—development of a free-surface fluid solver-Part 1: theory and formulations. Comput Geosci 48:289–299

    Article  Google Scholar 

  • Gómez-Gesteira M, Crespo AJC, Rogers BD, Dalrymple RA, Domínguez JM, Barreiro A (2012b) SPHysics—development of a free-surface fluid solver-Part 2: efficiency and test cases. Comput Geosci 48:300–307

    Article  Google Scholar 

  • Harada T, Koshizuka S, Kawaguchi Y, (2007) Smoothed particle hydrodynamics on GPUs. Comput Graph Intl 63–70

    Google Scholar 

  • Kleefsman KMT, Fekken G, Veldman AEP, Iwanowski B, Buchner B (2005) A volume-of-fluid based simulation method for wave impact problems. J Comput Phys 206:363–393

    Article  Google Scholar 

  • Liu GR (2003) Mesh free methods: moving beyond the infinite element method. CRC Press

    Google Scholar 

  • Monaghan JJ (1992) Smoothed particle hydrodynamics. Annu Rev Astron Appl 30:543–574

    Article  Google Scholar 

  • Monaghan JJ (1994) Simulating free surface flows with SPH. J Comput Phys 110:399–406

    Article  Google Scholar 

  • Monaghan JJ (2005) Smoothed particle hydrodynamics. Rep Prog Phys 68:1703–1759

    Article  Google Scholar 

  • Monaghan JJ, Cas RF, Kos A, Hallworth M (1999) Gravity currents descending a ramp in a stratified tank. J Fluid Mech 379:39–70

    Article  Google Scholar 

  • Narayanaswamy MS, Crespo AJC, Gómez-Gesteira M, Dalrymple RA (2010) SPHysics-funwave hybrid model for coastal wave propagation. J Hydraul Res 48:85–93. doi:10.3826/jhr.2010.0007

    Article  Google Scholar 

  • Rogers BD, Dalrymple RA, Stansby PK (2010) Simulation of caisson break water movement using SPH. J Hydraul Res 48:135–141. doi:10.3826/jhr.2010.0013

    Article  Google Scholar 

  • Valdez-Balderas D, Domínguez JM, Rogers BD, Crespo AJC (2013) Towards accelerating smoothed particle hydrodynamics simulations for free-surface flows on multi-GPU clusters. J Parallel Distrib Comput 73(11):1483–1493. doi:10.1016/j.jpdc.2012.07.010

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to J. M. Domínguez .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this paper

Cite this paper

Domínguez, J.M., Barreiro, A., Crespo, A.J.C., García-Feal, O., Gómez-Gesteira, M. (2016). Parallel CPU/GPU Computing for Smoothed Particle Hydrodynamics Models. In: Klapp, J., Sigalotti, L.D.G., Medina, A., López, A., Ruiz-Chavarría, G. (eds) Recent Advances in Fluid Dynamics with Environmental Applications. Environmental Science and Engineering(). Springer, Cham. https://doi.org/10.1007/978-3-319-27965-7_34

Download citation

Publish with us

Policies and ethics