Volume 531, July 2011
|Number of page(s)||11|
|Section||Numerical methods and codes|
|Published online||24 June 2011|
Comparisons of different codes for galactic N-body simulations
Université Pierre et Marie Curie, LIP6 UMR 7606, 4 place Jussieu, 75252 Paris Cedex 05, France
2 Laboratoire d’Astrophysique de Marseille (LAM), UMR6110, CNRS/Université de Provence, Technopôle de Marseille-Etoile, 38 Rue Frédéric Joliot Curie, 13388 Marseille Cedex 20, France
3 HiePACS Team (former ScAlApplix project), INRIA Bordeaux – Sud-Ouest/CNRS – LaBRI UMR 5800/PRES de Bordeaux, 351 cours de la Libération, 33405 Talence Cedex, France
Received: 14 October 2010
Accepted: 2 May 2011
Context.N-body simulations are widely used for galactic dynamics studies. Several different algorithms have been developed and a number of authors have made their codes public.
Aims. We wish to help potential users of these codes, particularly less experienced ones, to select the appropriate code by giving them relevant information.
Methods. We consider different implementations of three different algorithms, namely the Barnes-Hut tree-code algorithm (implemented both in GADGET-2 and as a NEMO program), the fast multipole method (implemented in the FMB code – Fast Multipole with BLAS) and W. Dehnen’s algorithm (implemented in falcON – force algorithm with complexity O(N)). We compare extensively the timing and memory comparisons of these different implementations and discuss other advantages and disadvantages of these codes.
Results. In terms of serial executions, falcON is clearly the fastest code, in many cases by a wide margin. In addition, it is much less sensitive to concentration than other codes, it conserves linear momentum, its computational costs depends roughly linearly on the number of particles, and it allows for manipulators. GADGET-2 is the second fastest and, being parallel, can outperform falcON if a sufficient number of processors is used, the number of which, in our tests is between three and ten. Its public version includes an SPH representation of the gas component. FMB is faster than the implementation of the Barnes-Hut algorithm in NEMO, as long as the particle distribution is not too concentrated, but remains considerably slower than falcON and GADGET-2. It has, nevertheless, the highest parallel efficiency and memory scalability.
Conclusions. We recommend falcON for pure N-body simulations with a relatively restricted number of particles (up to a few million). In cases of a larger number of particles, a number of processors being available, or studies including gas and its physics, we recommend GADGET-2. FMB provides the highest parallel efficiency and memory scalability, but is considerably slower in execution time and is ill-adapted to the concentrated distributions encountered in galactic work.
Key words: methods: numerical
© ESO, 2011
Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.