GRTensor is a very handy Maple package for doing calculations in General Relativity. Given a specific metric, it’s great at calculating the components of tensors. You can define your own tensors or use the predefined ones. You can even define your own metrics.
The install instructions in the Readme file are fairly good if you’re a Windows or Linux user. As is often the case, however, there are one or two catches when installing on Mac OS X. With that in mind, the following instructions should help with the installation:
- Download GRTensor from from their website to your Desktop. For any recent version (since 6) of Maple and Mac OSX, you want the version “GRTensorII 1.79 for maple 6, 7, 8 (32 and 64 bit machines PCs Macs and UNIX boxes)(with metric files, examples, html help system)”
- If it doesn’t get unzipped automatically, double click the
grii-1.79.tar.gz
file on the desktop and it should create a folder calledgrii
- Open the Terminal application and change to the grii directory with the command:
cd Desktop/grii
- Still in the terminal, run the GRTensor installer as root:
sudo ./Install.unix
- Again in the terminal, copy the
mapleinit
file to your home directory:cp /usr/local/grii/mapleinit.sample ~/.mapleinit
- Quit Maple if it’s running and start it up again.
- When you want to load grtensor, just type
grtw();
into Maple and hitenter
. You can load metrics withqload(schw);
for Schwarzschild for example. - You can now safely delete the
grii
directory and file from your desktop.
If you have problems with loading the metric, have a look at this article and hopefully that will fix them.