4 minute read

N-Body Problem

Computers To The Rescue?



The N-body problem is one ideally suited to a computer—a machine that can repeat a prescribed string of commands with blazing speed. So the task now seems simple: plug Newton's law of gravitation into a gigahertz computer, specify the initial positions and velocities of the objects under study, hit return, and sit back with a cool drink to watch the fun. Of course, nothing is ever that easy.



Even the fastest computer in the world cannot overcome the fact that direct numerical computation of the evolution of a large system of objects is not feasible. Consider a star cluster. Because every star acts gravitationally on every other star, the number of calculations required to determine all the gravitational force components in a system of N objects goes roughly as N squared. For a modest-sized globular cluster of 500,000 stars, the computer would need to do 25 billion calculations—and that's just for the first force computation. Remember that after a certain time interval, usually called the timestep, the forces must all be recalculated. Globular clusters are long-lived objects; the ones orbiting the Milky Way Galaxy are probably 10 billion years old. Millions of timesteps would be required to trace the entire history of the cluster, and the total number of calculations runs into the quintillions.

Even worse, early N-body calculations showed that a very common occurrence in star clusters was the formation of close binary stars—two stars orbiting one another so closely that in some cases they share a common atmosphere. The timestep for the force calculation for these stars has to be very short, because the stars change their positions relative to one another quite rapidly. Additionally, the very small distance between these stars leads to singularities—places where the computations produce values going to infinity. (This happens because when stars are nearly touching, the distance between them is almost zero relative to the size of the entire cluster or galaxy, and this value appears in the denominator of the force equation.)

The manifold difficulties with performing explicit N-body calculations have led researchers since 1960 to construct increasingly complex computer codes to deal with them. Codes have been developed that can apply different time steps to different objects, prevent the formation of close binaries, and effectively reduce the number of particles in a calculation by determining the average force imparted by groups of particles, rather than calculating them all explicitly. Many codes get rid of singularities by applying what is usually called "softening" to the system; this effectively means changing the force equation so that the troublesome zero never appears. Still other methods leave the realm of direct N-body calculations altogether and apply statistical methods to estimate the behavior of the entire system. Although these approximate methods have represented the best compromise available in the face of limited computing power, they are clearly not fully satisfactory, since different methods applied to the same N-body system do not always yield the same results. Since reproducibility of results is a cornerstone of science, the various methods summarized above have sometimes been sharply criticized, and there is widespread agreement that so far, no method yet devised is fully capable of correctly addressing the evolution of stellar and galactic systems.

This ongoing difficulty is the source of the question mark in the title of this part of this essay. It is possible to write a complex computer program that runs without crashing and generates page after page of results—and yet have those results bear no resemblance at all to reality. Computers are very fast, but very literal-minded: they will do exactly what you tell them to, even if what you tell them is riddled with errors. Most (but not all) researchers realize that, and qualify their work with appropriate statements about the limitations of their code and their machines. Any aspiring scientist would do well to follow this lead, which is almost nowhere more important than in the arena of N-body calculations.


Resources

Periodicals

Murphy, Brian W. A Thousand Blazing Suns: The Inner Life of Globular Clusters 1999, Mercury, Vol 28, No. 4, p. 27.

Sellwoord, J. A. The Art of N-body Building 1987, Annual Review of Astronomy and Astrophysics, Vol 25, p. 151.


Jeffrey Hall

KEY TERMS

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Law of universal gravitation

—The law developed by Isaac Newton that describes the motion of objects moving under the influence of their mutual gravitational force, which is proportional to the product of their masses and the inverse square of the distance between them.

N-body problem

—The problem of computing the motions over time of a system of some number of objects moving under the influence of their mutual gravitational attraction; this problem does not have an analytic solution and must be tackled by numerical or statistical methods.

Singularity

—In general, a situation in which a mathematical computation fails due to its value approaching infinity; in N-body computations, a singularity occurs where the distance between two particles approaches zero and the gravitational force imparted by one to the other approaches infinity.

Star cluster

—The targets of extensive N-body computations, these are collections of several hundred (open clusters) or several hundred thousand (globular clusters) stars held together by their mutual gravity. Much has been learned about their long-term evolution from N-body computations.

Two-body problem

—A fundamental problem of classical mechanics, the description of the motion of two objects moving under the influence of their mutual gravity; this problem has an explicit analytic solution.

Additional topics

Science EncyclopediaScience & Philosophy: Mysticism to Nicotinamide adenine dinucleotideN-Body Problem - Newtonian Gravitation, Solving The Problem, Computers To The Rescue?