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.
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
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
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
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
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
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
Dalrymple RA, Rogers BD (2006) Numerical modelling of water waves with the SPH method. Coast Eng 53:141–147
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
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
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
Gingold RA, Monaghan JJ (1977) Smoothed particle hydrodynamics: theory and application to non-spherical stars. Mon Not R AstrSoc 181:375–389
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
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
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
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
Harada T, Koshizuka S, Kawaguchi Y, (2007) Smoothed particle hydrodynamics on GPUs. Comput Graph Intl 63–70
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
Liu GR (2003) Mesh free methods: moving beyond the infinite element method. CRC Press
Monaghan JJ (1992) Smoothed particle hydrodynamics. Annu Rev Astron Appl 30:543–574
Monaghan JJ (1994) Simulating free surface flows with SPH. J Comput Phys 110:399–406
Monaghan JJ (2005) Smoothed particle hydrodynamics. Rep Prog Phys 68:1703–1759
Monaghan JJ, Cas RF, Kos A, Hallworth M (1999) Gravity currents descending a ramp in a stratified tank. J Fluid Mech 379:39–70
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
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
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
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-3-319-27965-7_34
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-27964-0
Online ISBN: 978-3-319-27965-7
eBook Packages: Earth and Environmental ScienceEarth and Environmental Science (R0)