Although much has been written about relativity, little delves into its actual equations. Even rarer does one find relativity used in any sort of computation, such as one would find in a computer simulation. This is sad. it is hoped to be shown here not just the problems one might encounter in writing such a simulation, but also that one can perform a simulation of general relativity without too much effort. In fact, our experience has been that a program simulating geodesic motion in general relativity requires no more lines of code than a corresponding program to simulate planetary motion using Newton's laws. The relativity program is straightforward and general, but slow. However, by mechanically substituting the equations for the gravitational time-dilation metric of the Schwarzchild metric, and then performing algebraic simplifications, one can obtain a program whose simulation time is as fast as a corresponding Newtonian motion simulation. The resulting customized relativity programs are again short and simple. Customization does, however, obscure a little relation between the general equations and those actually used.
Skip Nav Destination
Article navigation
Research Article|
September 01 1992
Taking the generality out of general relativity
R. Bernstein
R. Bernstein
IBM T.J. Watson Research Center, P.O. Box 218, Yorktown Heights, New York 10598
Search for other works by this author on:
R. Bernstein
IBM T.J. Watson Research Center, P.O. Box 218, Yorktown Heights, New York 10598
Comput. Phys. 6, 463–468 (1992)
Article history
Received:
January 23 1990
Accepted:
April 29 1990
Citation
R. Bernstein; Taking the generality out of general relativity. Comput. Phys. 1 September 1992; 6 (5): 463–468. https://doi.org/10.1063/1.168431
Download citation file: