N-body simulation N-body Simulation Testbed              NBodyLab.org

A laboratory for experimenting with small astrophysical N-body simulations,
using a desktop GRAPE-6a supercomputer.

Home Simulations NBODY4 GRAPE's NBodyLab More info

Overview of Nbodylab.org and the NBodyLab framework


Presentations of Nbodylab

NBodyLab has been demonstrated and presented at three Astronomical Data Analysis Software and Systems (ADASS) conferences:
  • ADASS Nov 2005: NBODY4 and GRAPE-6a version of NBodyLab (abstract, paper with graphics, poster).
  • ADASS Nov 2004: Makino Hermite integrator, NEMO tools and GRAPE-6a version of NBodyLab (paper, poster).
  • ADASS Nov 2002: Leap-frog and RK4 integators, NEMO tools and MD-GRAPE2 version of NBodyLab (paper, poster).
and at the


Overview of the Development of Nbodylab.org

The GRAPE family of special purpose computers has two branches, GRAPE's designed for astrophysics, and MD-GRAPE's, whose force-functions have been extended for molecular dynamics (MD) and biological applications. See the GRAPE History page for more information.

MD-GRAPE2grape-6aThe first version of Nbodylab.org was implemented using an MD-GRAPE2 board  (generously loaned to Vicki Johnson by RIKEN/Peta Computing), and the current (2nd) generation of Nbodylab.org was adapted for a GRAPE-6a board is on loan from Prof. Jun Makino. The MD-GRAPE2 board sells for under $20,000 and the GRAPE-6a board for under $10,000.

Development began when Vicki Johnson, an entrepreneur and software systems engineer, was given a small contract in 2002 by Pomona College to get a MD-GRAPE2 card working to enable students studying cosmology to run stellar dynamics simulations. This was a challenge. The MD-GRAPE2 hardware and software developers work in Japan; little documentation was available; no numerical integration program was available to access the MD-GRAPE libraries for the force calculations, and the astronomy professor was unfamiliar with the MD-GRAPE2 and software options for n-body simulations. Furthermore, most of the students didn't know Unix or X-windows, or even how to program.  Theft was a risk if the expensive MD-GRAPE2 server was physically accessible to students. The best solution seemed to be to develop server-side integrators to access the MD-GRAPE hardware, incorporate existing routines for analysis and visualization from an existing Nbody toolboxes like NEMO, and front the package with a web interface. Time and budget were quite limited.

With luck, perseverance, and assistance especially from Dr. Peter Tueben and Dr. Bruce Elmegreen, Vicki engineered a successful system. Dr. Tueben suggested the name "NBodyLab."

The MD-GRAPE2 NBodyLab system has been used by students for course assignments - in a cosmology course 1, 2, 3, a senior project, an AAS poster, and a master's thesis. The Pomona College NBodyLab MD-GRAPE2 system is usually accessible; Pomona College lacks funds to maintain it.  

Business prospects

After concluding the contract with Pomona College in 2002, Vicki explored R&D and business prospects. She visited Japan and met many (MD)GRAPE researchers, all experienced PhD's. She met Prof. Jun Makino at Tokyo University, designer of the GRAPE, and and during a visit to RIKEN scientists she installed her software on their demonstration MD-GRAPE2 machine. She was shown the large supercomputers with arrays of GRAPE (left photo below) and MD-GRAPE2 boards (right photo below) that have won the prestigious Gordon Bell Prizes:

GRAPE Jun Makino Vicki Johnson      MD-GRAPE Riken Vicki Johnson

Useful letters of recommendation were provided to Vicki: 1, 2, 3, 4, 5 .

In 2003 Vicki led the writing of a multi-million dollar proposal to the NSF for a GRAPE-based Nbody simulation facility, by an international interdisciplinary team. The proposal was not funded; one reviewer wrote that the hardware was not specified (!). It was an interesting process developing a large academic proposal.

On the business side, Vicki has discussed commercial applications of MD-GRAPE systems with senior managers at several leading US research laboratories specializing in hardware development and biotechnology. Concerns were expressed about the business viability of incorporating research-grade technology developed by the Japanese in commercial US products; uncertain service and support costs for research-grade technology (the MD-GRAPE2 was sensitive to voltage fluctuations, since resolved); limitations of the MD-GRAPE algorithms for efficient MD (e.g., neighbor list handling); difficulties quantifying the performance benefits of the MD-GRAPE hardware acceleration for applications such as drug design;  the high level of expertise required to adapt the MD-GRAPE2 into commercial packages used for biotech research; and the general conviction that general-purpose desktop and cluster computing performance will continue to rapidly improve and displace special-purpose hardware.

Vicki believes researchers and software developers will benefit from learning about current GRAPE technologies because Japan continues to fund GRAPE development at a high level, for more general applications and for biocomputing applications such as protein modeling with the MD-GRAPE family.

Recent Work

Vicki continues to discuss GRAPE applications with academic, business and government sectors. For the Nbodylab.org website, she has enjoyed improving the numerical integration algorithms and visualization options to demonstrate the new GRAPE-6a.

In 2004, Alper Ates completed his master's thesis using NbodyLab. Mr. Ates shared his love of astronomy in many discussions, some held in a local observatory on beautiful nights. A 2004 paper co-authored with Mr. Ates describes the second version of NBodyLab with the GRAPE-6a.

In 2005 and 2006, the focus of NBodyLab has been the development of a web accessible adaptation of Sverre Aarseth's NBODY4 and demonstrations of interesting classes of NBODY4 and NBODY6 simulations.

To sign up for news, get help or request permission for longer simulations, write to nbodylab@interconnect.com.