A HIERARCHICAL O(N-LOG-N) FORCE-CALCULATION ALGORITHM
A HIERARCHICAL O(N-LOG-N) FORCE-CALCULATION ALGORITHM
复制标题
DOI:
10.1038/324446a0
复制
发表时间:
1986-12-04
期刊:
影响因子:
64.8
通讯作者:
HUT, P
中科院分区:
文献类型:
--
作者:
BARNES, J;HUT, P
Until recently the gravitationalN-body problem has been modelled numerically either by direct integration, in which the computation needed increases asN2, or by an iterative potential method in which the number of operations grows asNlogN. Here we describe a novel method of directly calculating the force onNbodies that grows only asNlogN. 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.