ArticleslgStudy

computer science

Gravity Pipe

Gravity Pipe is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Gravity Pipe rather than just read about it. In short: Gravity Pipe (abbreviated GRAPE) is a project which uses hardware acceleration to perform gravitational computations. Integrated with Beowulf-style commodity computers, the GRAPE system calculates the force of gravity that a given mass, such as a star, exerts on others.

Gravity Pipe — main illustration
Gravity Pipe — illustration

Key takeaways

  • Gravity Pipe belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Gravity Pipe to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Gravity Pipe from memory before moving on to harder problems.

Reference excerpt

Gravity Pipe (abbreviated GRAPE) is a project which uses hardware acceleration to perform gravitational computations. Integrated with Beowulf-style commodity computers, the GRAPE system calculates the force of gravity that a given mass, such as a star, exerts on others. The project resides at University of Tokyo. The GRAPE hardware acceleration component "pipes" the force computation to the general-purpose computer serving as a node in a parallelized cluster as the innermost loop of the gravitational model. The GRAPE project designed an ASIC component with mathematical logic and operations to generate the required computations. This means the latter generations of GRAPE supercomputers, despite not providing a Turing complete computational processing power, are powerful for heavily mathematical super-computing usages. The MD-GRAPE 3 supercomputer was also used in protein folding simulations. Its shortened name, GRAPE, was chosen as an intentional reference to the Apple Inc. line of computers.

Method The primary calculation in GRAPE hardware is a summation of the forces between a particular star and every other star in the simulation. Several versions (GRAPE-1, GRAPE-3 and GRAPE-5) use the logarithmic number system (LNS) in the pipeline to calculate the approximate force between two stars and take the antilogarithms of the x, y and z components before adding them to their corresponding total. The GRAPE-2, GRAPE-4 and GRAPE-6 use floating-point arithmetic for more accurate calculation of such forces. The advantage of the logarithmic-arithmetic versions is that they allow more and faster parallel pipes for a given hardware cost because all but the sum portion of the GRAPE algorithm (1.5 power of the sum of the squares of the input data divided by the input data) is easy to perform with LNS. GRAPE-DR consists of a large number of simple processors, all operating in the SIMD fashion.

Application

GRAPE computes approximate solutions to the historically intractable n-body problem, which is of interest in astrophysics and celestial mechanics. n refers to the number of celestial bodies in a given problem. While the 2-body problem was solved by Kepler's laws in the 17th century, any calculation where n > 2 has historically been a nigh-impossible challenge. An analytical solution exists for n = 3, although the resulting series converges too slowly to be of practical use. For n > 2, solutions are generally calculated numerically by determining the interaction between all particles. Thus, the calculation scales as n2. GRAPE assists in calculations of interactions between particles where the interaction scales as r−2. This dependence is hardwired, drastically improving calculation times. These problems include the evolution of galaxies (gravitation force scales as r−2). Similar problems exist in molecular chemistry and biology, where the force considered would be electrical rather than gravitational. In 1999, Marseilles Observatory published a study on simulating the formation of proto-planets and plantessimals with a large planetary body. This simulation used the GRAPE-4 system.

Prizes The LNS-based GRAPE-5 architecture won the Price Performance category of the Gordon Bell Prize in 1999, at about $7 per MegaFLOPS. This category measures the price efficiency of a particular machine in terms of the price in dollars per megaFLOPS. The particular implementation "Grape-6" also won prizes in 2000 and 2001 (see external links). Grape-DR was ranked first in the June 2010 Little Green500 List, a ranking of supercomputer's performance per unit power consumption published by the Green500.org.

See also The Gordon Bell Prize, named in honor of Gordon Bell, is administered by the Association for Computing Machinery. Supercomputer and High-performance computing are main articles on the general subject. gravitySimulator is a cluster containing 32 GRAPEs.

References

External links The GRAPE site at the University of Tokyo Gordon Bell prize history Archived 2015-09-26 at the Wayback Machine The Top 500 List The GRAPE-6 Implementation Brief historical overview of the GRAPE Archived 2009-05-08 at the Wayback Machine

Worked examples

Example 1 — a first encounter with Gravity Pipe

Start with the simplest possible case. Write down what Gravity Pipe claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Gravity Pipe before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Gravity Pipe ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Gravity Pipe

In research
Gravity Pipe appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Gravity Pipe in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Gravity Pipe is common in secondary-school and first-year university syllabi. It links to neighbouring topics Supercomputers, Supercomputing in Japan, so understanding it makes those chapters shorter.
In everyday life
Look for Gravity Pipe outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Gravity Pipe” →

How to study Gravity Pipe in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Gravity Pipe means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Gravity Pipe out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Gravity Pipe in simple terms?

Gravity Pipe (abbreviated GRAPE) is a project which uses hardware acceleration to perform gravitational computations. Integrated with Beowulf-style commodity computers, the GRAPE system calculates the force of gravity that a given mass, such as a star, exerts on others.

Why does Gravity Pipe matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Gravity Pipe?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Gravity Pipe.

Tags

  • Supercomputers
  • Supercomputing in Japan

Keep exploring