Summary
In the smoothed particle hydrodynamics (SPH) method, the forces between all particles are efficiently summed up in a serial environment as follows. Each pair of particles is considered once. The resulting inter-particle force is computed and then the contributions to both particles are updated, taking into account the symmetry of the problem. This algorithm is difficult to parallelise when concurrently accessing the same memory location in a multi-threaded process. We develop a parallel 1D summation algorithm consisting of two passes on a Cartesian grid of cells in which particles move freely. In a first pass, we consider all cells with an even index n. We compute the inter-particle forces for all pairs of particles located in cell n and those pairs where a particle is located in cell n and another particle is located in cell n + 1. Each cell n is handled by a different thread since no data race can occur. In a second pass, we do the same for cells with odd n. This way, all interparticle forces are computed. We generalise this algorithm to 2D, 3D, and arbitrarily high dimensions and report performance results on three different shared-memory platforms using the OpenMP programming paradigm.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
B. Chapman, G. Jost, and R. van der Pas, Using OpenMP: Portable Shared Memory Parallel Programming, The MIT Press, 2007.
J. A. Faber and F. A. Rasio, Post-Newtonian SPH calculations of binary neutron star coalescence: Method and first results, Phys. Rev. D 62 (2000), no. 6, 064012.
A. Ferrari, M. Dumbser, E. F. Toro, and A. Armanini, A new 3D parallel SPH scheme for free surface flows, Computers & Fluids 38 (2009), no. 6, 1203–1217.
R. A. Gingold and J. J. Monaghan,Smoothed particle hydrodynamics — Theory and application to non-spherical stars, Mon. Not. Roy. Astron. Soc. 181 (1977), 375–389.
M. Gómez-Gesteira, B. D. Rogers, R. A. Dalrymple, A. J. C. Crespo, and M. Narayanaswamy, User guide for the SPHysics code v1.2, 2008.
G. R. Liu and M. B. Liu, Smoothed Particle Hydrodynamics, Singapore, World Scientific Publishing Co. Pte. Ltd, 2003.
L. B. Lucy, A numerical approach to the testing of the fission hypothesis, Astronomical Journal 82 (1977), 1013–1024.
P. Maruzewski, D. Le Touzé, G. Oger, and F. Avellan, SPH high-performance computing simulations of rigid solids impacting the free-surface of water, Journal of Hydraulic Research 48 (2010), in Press.
J. J. Monaghan, Simulating free surface flows with SPH, J. Comput. Phys. 110 (1994), no. 2, 399–406.
I. F. Sbalzarini, J. H. Walther, M. Bergdorf, S. E. Hieber, E. M. Kotsalis, and P. Koumoutsakos, PPM: a highly efficient parallel particle-mesh library for the simulation of continuum systems, J. Comput. Phys. 215 (2006), no. 2, 566–588.
R. Speith, E. Schnetter, S. Kunze, and H. Riffert,Distributed implementation of SPH for simulations of accretion disks, Molecular Dynamics On Parallel Computers, Proceedings of the NIC-Workshop, Jülich, February 8–10, 1999 (Singapore), World Scientific Publishing Co., 2000, pp. 276–285.
V. Springel, The cosmological simulation code GADGET-2, Monthly Notices of the Royal Astronomical Society 364 (2005), no. 4, 1105–1134.
S. Vanaverbeke, R. Keppens, S. Poedts, and H. Boffin, GRADSPH: A parallel smoothed particle hydrodynamics code for self-gravitating astrophysical fluid dynamics, Computer Physics Communications 180 (2009), no. 7, 1164–1182.
D. W. Walker and J. J. Dongarra, MPI: a standard Message Passing Interface, Supercomputer 12 (1996), no. 1, 56–68.
J. Willkomm and H. M. Bücker, A shared-memory parallel smoothed particle hydrodynamics simulation, Proceedings of the 28th International Conference of the Chilean Computing Science Society, Santiago de Chile, Chile, November 9–14, 2009, 2009, pp. 41–48.
Acknowledgement
The collaboration with the Institute for Hydraulic Engineering and Water Resources Management is carried out within the Flowrun project funded by the section Simulation Sciences of the Jülich-Aachen Research Alliance (JARA-SIM).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2011 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Willkomm, J., Bücker, H.M. (2011). Parallel summation of symmetric inter-particle forces in smoothed particle hydrodynamics. In: Griebel, M., Schweitzer, M. (eds) Meshfree Methods for Partial Differential Equations V. Lecture Notes in Computational Science and Engineering, vol 79. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-16229-9_15
Download citation
DOI: https://doi.org/10.1007/978-3-642-16229-9_15
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-16228-2
Online ISBN: 978-3-642-16229-9
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)