Abstract
Until recently the gravitational N-body problem has been modelled numerically either by direct integration, in which the computation needed increases as N2, or by an iterative potential method in which the number of operations grows as N log N. Here we describe a novel method of directly calculating the force on N bodies that grows only as N log N. The technique uses a tree-structured hierarchical subdivision of space into cubic cells, each of which is recursively divided into eight subcells whenever more than one particle is found to occupy the same cell. This tree is constructed anew at every time step, avoiding ambiguity and tangling. Advantages over potential-solving codes are: accurate local interactions; freedom from geometrical assumptions and restrictions; and applicability to a wide class of systems, including (proto-)planetary, stellar, galactic and cosmological ones. Advantages over previous hierarchical tree-codes include simplicity and the possibility of rigorous analysis of error. Although we concentrate here on stellar dynamical applications, our techniques of efficiently handling a large number of long-range interactions and concentrating computational effort where most needed have potential applications in other areas of astrophysics as well.
This is a preview of subscription content, access via your institution
Access options
Subscribe to this journal
Receive 51 print issues and online access
$199.00 per year
only $3.90 per issue
Buy this article
- Purchase on SpringerLink
- Instant access to full article PDF
Prices may be subject to local taxes which are calculated during checkout
Similar content being viewed by others
References
Aarseth, S. J. in Multiple Time Scales (ed Brackbill, J. U. & Cohen, B. I.) 377â418 (Academic Press, New York, 1985).
Hockney, R. W. & Eastwood, J. W. Computer Simulation using Particles (McGraw-Hill, New York, 1981).
Appel, A. SIAM J. Sei. statist. Comput. 6, 85â103 (1985).
Jernigan, J. G. I.A.U. Symp. 113, 275â284.
Porter, D. thesis, Physics Dept, Univ. California, Berkeley (1985).
Abelson, H., Sussman, G. J. & Sussman, J. Structure and Interpretation of Computer Programs (MIT Press, Cambridge, Massachusetts, 1985).
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Barnes, J., Hut, P. A hierarchical O(N log N) force-calculation algorithm. Nature 324, 446â449 (1986). https://doi.org/10.1038/324446a0
Received:
Accepted:
Issue Date:
DOI: https://doi.org/10.1038/324446a0
This article is cited by
-
3D mechanical analysis of geothermal reservoir operations in faulted sedimentary aquifers using MACRIS
Geothermal Energy (2024)
-
High-order asymptotic methods provide accurate, analytic solutions to intractable potential problems
Scientific Reports (2024)
-
HODLR3D: hierarchical matrices for N-body problems in three dimensions
Numerical Algorithms (2024)
-
Comparative Analysis of Direct Method and Fast Multipole Method for Multirotor Wake Dynamics
International Journal of Aeronautical and Space Sciences (2024)
-
Quantum simulation of exact electron dynamics can be more efficient than classical mean-field methods
Nature Communications (2023)