Published online by Cambridge University Press: 26 May 2016
We invented the pseudoparticle multipole method (P2M2), a method to express multipole expansion by a distribution of pseudoparticles. We can use this distribution of particles to calculate high order terms in both the Barnes-Hut treecode and FMM. The primary advantage of P2M2 is that it works on GRAPE. Although the treecode has been implemented on GRAPE, we could handle terms only up to dipole, since GRAPE can calculate forces from point-mass particles only. Thus the calculation cost grows quickly when high accuracy is required. With P2M2, the multipole expansion is expressed by particles, and thus GRAPE can calculate high order terms. Using P2M2, we realized arbitrary-order treecode on MDGRAPE-2. Timing result shows MDGRAPE-2 accelerates the calculation by a factor between 20 (for low accuracy) to 150 (for high accuracy). We parallelized the code so that it runs on MDGRAPE-2 cluster. The calculation speed of the code shows close-to-linear scaling up to 16 processors for N ≳ 106.