Educational N-body integrator with a shared but variable time step (the same for all particles but changing in time), using the Hermite integration scheme (Hut, P. & Makino, M, 2003 in The art of Computer Science). The source code has been adapted for the GRAPE-6 special purpose computer.
nbody_sh1G6: a GRAPE-6 supported direct N-body code
download latest source code of nbody_sh1G6.tar.gzIf you use this code for your research we request you to refer to the following publications
Gualandris, A., Portegies Zwart, S., Tirado-Ramos, A., 2007, PARCO 33 159--173, Performance analysis of direct N-body algorithms for astrophysical sim ulations on distributed systems
and to Portegies Zwart, S, McMillan, S, Groen, D., Gualandris, A., Sipior, M., Vermin, W., New Astronomy, in press A parallel gravitational N-body kernel nbody_sh1G6.tar.gz contains the following files:
README This file Makefile Makefile (requires GRAPE-6 library) nbody_sh1G6.C The main N-body code. n24body.in An example input file for a 24-particle system n24body.out Output for the example input file (run on the baby GRAPE-6a in Amsterdam).
Typical command line (generates : n24body.out)
% nbody_sh1G6 < n24body.in > n24body.out
19 April 2004
Simon Portegies Zwart
Version log:
Version 1.0: Initial development by Put & Makino on 1 Jan 2002
Version 2.0: Adopted for GRAPE-6 by Portegies Zwart on 10 April 2004
In progress
Initial performance and timing analysis.