Performance Comparison between Direct Method and Tree-code used in N-body Simulation using Python

Muhammad Isnaenda Ikhsan

Abstract


N-body simulation is a great tool to study the dynamics of many body system in astronomy. There a many method that could be used to perform N-body simulation. In this study, we compare two methods, direct method and tree-code to perform N-body simulation code written in Python. The advantages of direct method are it’s very straightforward and could be very accurate if we want to, the disadvantages are this method could take a lot of computational resources. In other hand, tree-code could perform much better in term of computational time, but lack of accuracy and limited to certain cases application. After performing N-body simulation using both method we found that simulation using both methods is very possible to be done in a computer with modest specification. The direct method and tree code perform similarly in small N (N<50) region, but tree-code is much faster as the number of N increase (N>100). In term of energy conservation, both methods perform well and similar.

Keywords


N-body, direct method, tree-code, python.

Full Text:

PDF

References


Holmberg, Eric. (1941). On The Clustering Tendencies Among The Nebulae. The Astrophysical Journal, Vol. 94, No. 3, p.285.

Aarseth, Sverre J. (1963). Dynamical evolution of clusters of galaxies, I. Monthly Notices of the Royal Astronomical Society, Vol. 126, p.223.

Aarseth, Sverre J. (1966). Dynamical evolution of clusters of galaxies, II. Monthly Notices of the Royal Astronomical Society, Vol. 132, p.35-65.

Aarseth, Sverre J. (1973). Computer Simulations of Star Cluster Dynamics. Vistas in Astronomy, vol. 15, Issue 1, pp.13-37.

Aarseth, Sverre J. (1974). Dynamical evolution of simulated star clusters. I. Isolated models. Astronomy and Astrophysics, vol. 35, no. 2, p. 237-250.

Arca Sedda, Manuel. (2020). Dissecting the properties of neutron star-black hole mergers originating in dense star clusters. Communications Physics, Volume 3, Issue 1(43).

Aarseth, Sverre J. (1971). Direct Integration Methods of the N-Body Problem. Astrophysics and Space Science, Volume 14, Issue 1, pp.118-132.

Barnes, Josh & Hut, Piet. (1986). A hierarchical O(N log N) force-calculation algorithm. Nature, Volume 324, Issue 6096, pp. 446-449.

Heggiew, D. C., Mathieu, R. D. (1986¬). Standardised Units and Time Scales. Lecture Notes in Physics, Vol. 267, edited by P. Hut and S. McMillan. Springer-Verlag, Berlin Heidelberg New York, p.233.

Makino, Junichiro; Aarseth, Sverre J. (1992). On a Hermite Integrator with Ahmad-Cohen Scheme for Gravitational Many-Body Problems. Publications of the Astronomical Society of Japan, v.44, p.141-151.

Plummer, H. C. (1911). On the problem of distribution in globular star clusters. Monthly Notices of the Royal Astronomical Society, Vol. 71, p.460-470


Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.


Supported by :







Indexed by :