Maxima Tools
Below I'll attach what helped me out in using Maxima for research in theoretical physics.
GRTensorToMaxima
This perl script turns a GRTensor compatible *.mpl file into a Maxima ctensor compatible *.mac.
Simply run the script and load it into a Maxima instance (without ctensor initialized).
It's at Github:
GRTensorToMaxima.
Maxima Tensor Files
In case you want to specify your own files for Maxima, you essentially
just need to define
lg
, the metric tensor. Here is a sample:
lg:matrix([a,0,0,0],[0,x^2,0,0],[0,0,x^2*sin(y)^2,0],[0,0,0,-d]);
;This is all that's needed for a tensor file in Maxima.
;However, we want to completely define the metric. So we want our
;files to set everything up for us!
;We will need to specify:
;dim:3;
;ct_coords:[x,y,z];
;lg:matrix(...);
;depends([coeffs],x);
;disp(lg);
;cmetric();