Skip to main content

Parallel summation of symmetric inter-particle forces in smoothed particle hydrodynamics

  • Conference paper
  • First Online:
Book cover Meshfree Methods for Partial Differential Equations V

Part of the book series: Lecture Notes in Computational Science and Engineering ((LNCSE,volume 79))

  • 1321 Accesses

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.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. B. Chapman, G. Jost, and R. van der Pas, Using OpenMP: Portable Shared Memory Parallel Programming, The MIT Press, 2007.

    Google Scholar 

  2. 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.

    Google Scholar 

  3. 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.

    Article  Google Scholar 

  4. 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.

    MATH  Google Scholar 

  5. 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.

    Google Scholar 

  6. G. R. Liu and M. B. Liu, Smoothed Particle Hydrodynamics, Singapore, World Scientific Publishing Co. Pte. Ltd, 2003.

    Book  MATH  Google Scholar 

  7. L. B. Lucy, A numerical approach to the testing of the fission hypothesis, Astronomical Journal 82 (1977), 1013–1024.

    Article  Google Scholar 

  8. 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.

    Google Scholar 

  9. J. J. Monaghan, Simulating free surface flows with SPH, J. Comput. Phys. 110 (1994), no. 2, 399–406.

    Article  MATH  Google Scholar 

  10. 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.

    Article  MATH  Google Scholar 

  11. 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.

    Google Scholar 

  12. V. Springel, The cosmological simulation code GADGET-2, Monthly Notices of the Royal Astronomical Society 364 (2005), no. 4, 1105–1134.

    Article  Google Scholar 

  13. 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.

    Article  Google Scholar 

  14. D. W. Walker and J. J. Dongarra, MPI: a standard Message Passing Interface, Supercomputer 12 (1996), no. 1, 56–68.

    Google Scholar 

  15. 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.

    Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Johannes Willkomm .

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics