Elsevier Science Home
Computer Physics Communications Program Library
Full text online from Science Direct
Programs in Physics & Physical Chemistry
CPC Home

[Licence| Download | New Version Template] aefp_v2_0.tar.gz(1681 Kbytes)
Manuscript Title: GeodesicViewer - A tool for exploring geodesics in the theory of relativity
Authors: Thomas Müller
Program title: GeodesicViewer
Catalogue identifier: AEFP_v2_0
Distribution format: tar.gz
Journal reference: Comput. Phys. Commun. 182(2011)1382
Programming language: C++, Qt, OpenGL.
Computer: All platforms with a C++ compiler, Qt, OpenGL.
Operating system: Linux, Mac OS X, Windows.
RAM: 24 Mbytes
Keywords: general relativity, timelike and lightlike geodesics, Jacobi equation, Sachs basis.
PACS: 04.20.-q, 04.25.D-, 04.20.Ex..
Classification: 1.5.

External routines:
  • Motion4D (included in the package)
  • Gnu Scientific Library (GSL) (http://www.gnu.org/software/gsl/)
  • Qt (http://qt.nokia.com/downloads)
  • OpenGL (http://www.opengl.org/)

Does the new version supersede the previous version?: Yes

Nature of problem:
Illustrate geodesics in four-dimensional Lorentzian spacetimes.

Solution method:
Integration of ordinary differential equations. 3D-Rendering via OpenGL.

Reasons for new version:
The main reason for the new version was to visualize the parallel transport of the Sachs legs and to show the influence of curved spacetime on a bundle of light rays as is realized in the new version of the Motion4D library (http://cpc.cs.qub.ac.uk/summaries/AEEX_v3_0.html).

Summary of revisions:
  • By choosing the new geodesic type "lightlike_sachs", the parallel transport of the Sachs basis and the integration of the Jacobi equation can be visualized.
  • The 2D representation via Qwt was replaced by an OpenGL 2D implementation to speed up the visualization.
  • Viewing parameters can now be stored in a configuration file (.cfg).
  • Several new objects can be used in 3D and 2D representation.
  • Several predefined local tetrads can be choosen.
  • There are some minor modifications: new mouse control (rotate on sphere); line smoothing; current last point in coordinates is shown; mutual-coordinate representation extended; current cursor position in 2D; colors for 2D view.

Running time:
Interactive. The examples given take milliseconds.