N-Body Simulation

Sverre Aarseth's research into numerical simulations of many-body (N-body) gravitational interactions spans over 40 years and is reported in several publications and his book. Sverre has developed a set of FORTRAN codes which describe the dynamics very closely, and these are regarded by many as the de facto standard.

Downloads

Sverre Aarseth's codes are available freely for download from the N-Body directory at ftp://ftp.ast.cam.ac.uk/pub/sverre/. Your browser should present you with an FTP viewer window when you click on this link and you should be able to copy whole code group directories at a time.

Use the links below to identify and download the specific files that you need.

The version nbody1.tar.Z is in full REAL*8.
The file nbody1_real4.tar.Z is the old version with mixed REAL*4/*8 precision which is kept for historical reasons.
The recent file nbody1h.tar.gz is the Hermite block-step formulation for workstations and (micro-)GRAPE, developed with Jun Makino in 1991.

Directory nbody2 contains the code NBODY2 and an article describing it. The whole file is called nbody2.tar.Z. Inside is the code, the article chap9.tex and also chap9.ps. The article may be produced in TeX using the enclosed macro
svnyp.sty (or see New Ast. 6, 277). The code NBODY2H is the Hermite block-step version of NBODY2.

The public GRAPE-6 or micro-Grape code NBODY4
and the equivalent brute force code for workstations or laptops
called BRUT4.
The current versions were updated 12 March 2006.
Introduction to running simulations.

README contains some past history of NBODY6.
Further practical info can be found in directory Docs.
nbody6.tar.gz holds the new standard code NBODY6.
The previous 2006 version has been renamed as old6.tar.gz.
The postscript file man6.pdf is the new manual.
The 2006 manual has been renamed as ps file old6.ps.
Rainer Spurzem's corresponding parallel code, nbody6++,
can be obtained here.
Introduction to running simulations.
README2 contains input file for using GPU with nbody6.
guide.pdf is guide for SSE and GPU with nbody6.

Tar file for the GPU directory and library.
Tar file for the new GPU2 directory and library.

Toy codes for unperturbed two-body motion.
Five different regularization methods are implemented.
A new version called hermit.tar.Z includes Post-Newtonian
perturbations derived from the 2005 paper of Mora and Will.

triple.tar.Z holds the three-body regularization code described in the manual.
chain0.tar.Z contains the basic chain regularization code as described in the manual manreg.ps.
chain.tar.Z gives the full version with many optional features and is described in the manual.
The postscript file manreg.ps is the manual for the three-body
and chain codes.
triple2.tar.Z contains the standard AZ method with an external
potential as well as optional movie facilities for PGPLOT and X11.
The code triple3.tar.Z contains GR example discussed in 2007 paper.
A version of standard TRIPLE called kozai.tar.Z was added 21/6/2012.