This is the public version of the RAPTOR code for radiative transfer in arbitrary spacetimes.
The polarized version of RAPTOR may now be found in a new branch within this repository:
https://github.com/tbronzwaer/raptor/blob/polarization/README.md
This version of RAPTOR is described in the following publication:
https://arxiv.org/abs/2007.03045
The polarized branch of RAPTOR is still under construction. Further updates and instructional materials are coming soon.
These instructions guide the user in downloading and compiling the source code, and then producing an image-data file with RAPTOR, which can be plotted with the included Python plotting script. Please note that these instructions expect the user to have a UNIX-like machine with a command terminal.
-The gcc compiler
-The OpenMP library
-The GNU Scientific computing Library (GSL)
-The CBLAS library
-Python (only needed for plotting)
Please download the repository, e.g., by typing:
git clone https://github.com/tbronzwaer/raptor.git
Next, it is necessary to compile the code using the included makefile. Please do so by typing:
make harm CPU=1
If everything goes correctly, RAPTOR will now have been compiled, and an executable named RAPTOR will have been created.
Please create an 'output' directory for RAPTOR (from the directory in which the RAPTOR executable resides):
mkdir output
Finally, one can run the included run.sh batch script, which will instruct RAPTOR to create a single image-data file and a spectrum-data file in the output folder. In order to plot the output, please run the included plotter.py Python script (making sure to edit plotter.py first, so that it points to the correct location for the image-data file):
python plotter.py
Q: RAPTOR failed to compile because the -fopenmp flag caused a compatibility issue.
A: A potential solution to this is to change the flag to -openmp instead. This ought to produce a fully functional executable, although I have not verified this. Thanks to user Saurabh for the feedback!
Updates to RAPTOR, as well as the documentation, will soon be coming. If you have any questions, please contact me at t.bronzwaer[at]astro(dot)ru(dot)nl.