Selected Methods in N-body Simulations

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.

Authors

Publication Details

Journal
Applied Physics Research
Published
2025-05-20
DOI
https://doi.org/10.5539/apr.v17n1p225
Primary Topic
Astro and Planetary Science
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Selected Methods in N-body Simulations

Aleksy Balazinski
Applied Physics Research
Astro and Planetary Science
article

Selected Methods in N-body Simulations

Aleksy Balazinski
article en

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.

Applied Physics ResearchVol. 17(1)
Openalex Percentile: Top 93%
Astro and Planetary Science
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Selected Methods in N-body Simulations — Aleksy Balazinski · Applied Physics Research (2025) | TGRS Research Map | TGRS