Selected Methods in N-body Simulations


  •  Aleksy Balazinski    

Abstract

This paper discusses the implementation of the particle-mesh (PM) and particle-particle particle-mesh (P3M) methods in the context of a spiral galaxy simulation. Simulations performed using both methods correctly predict the formation of characteristic spiral arms and demonstrate expected physical behavior, satisfying Newton’s second law and conserving energy and angular momentum. The PM code was written for both the CPU and GPU architectures, with the GPU version achieving threefold speedup compared to the multithreaded CPU implementation. We also describe and implement a method for lock-free parallelization of the short-range correction part of the P3M method on the CPU.



This work is licensed under a Creative Commons Attribution 4.0 License.
  • ISSN(Print): 1916-9639
  • ISSN(Online): 1916-9647
  • Started: 2009
  • Frequency: semiannual

Journal Metrics

Google-based Impact Factor (2017): 3.90
h-index (November 2017): 17
i10-index (November 2017): 33
h5-index (November 2017): 12
h5-median (November 2017): 19

Learn more

Contact