In this paper, we describe the performance and accuracy of the P 2 M 2 tree code. The P 2 M 2 tree code is a high-accuracy tree code based on the pseudoparticle multipole method (P 2 M 2). P 2 M 2 is a method to express multipole expansion using a small number of pseudoparticles. The potential field of physical particles is approximated by the field generated by the pseudoparticles. The primary advantage of the P 2 M 2 tree code is that it can use Gravity Pipe (GRAPE) special-purpose computers efficiently for high-accuracy calculations. Although the tree code has been implemented on GRAPE, it could not handle terms of the multipole expansion higher than dipole, since GRAPE can calculate forces from point mass particles only. Thus, the calculation cost grows quickly when high accuracy is required. In the P 2 M 2 tree code, the multipole expansion is expressed by particles, and thus we can evaluate high-order terms on GRAPE. We implemented the P 2 M 2 tree code on both MDGRAPE-2 and a conventional workstation and measured the performance. The results show that MDGRAPE-2 accelerates the calculation by a factor between 20 (for low accuracy) and 200 (for high accuracy). Even on general-purpose programmable computers, the P 2 M 2 tree code offers the advantage that the mathematical formulae, and therefore the actual program, are much simpler than that of the direct implementation of multipole expansion, although the calculation cost becomes somewhat higher.
CITATION STYLE
Kawai, A., Makino, J., & Ebisuzaki, T. (2004). Performance Analysis of High‐Accuracy Tree Code Based on the Pseudoparticle Multipole Method. The Astrophysical Journal Supplement Series, 151(1), 13–33. https://doi.org/10.1086/381391
Mendeley helps you to discover research relevant for your work.