How jordydavelaar/raptor works
RAPTOR computes relativistic images and spectra from GRMHD simulation data or analytic plasma models. The main workflow reads model parameters and a simulation snapshot, traces photon paths, transports radiation, then writes image and spectrum products for analysis. The README also documents polarized and unpolarized transport, adaptive or static camera grids, multiple model and metric options, and Python tools for plotting, FITS conversion, time series, and parameter inference. Core wiring is inferred only where the README or sampled entry point supports it; unsampled module internals are not mapped in detail.
Main entry points: io.c Image and spectrum output · main.c Run entry point · core.c Image orchestration · gr_integrator.c Photon geodesics
Components 22
RAPTOR engine
- Run entry point
src/main.c - Image orchestration
src/core.c - Camera grid
src/camera.c - Photon geodesics
src/gr_integrator.c - Spacetime metric
src/metric.c - Frame transforms
src/tetrad.c - Radiative transfer
src/rte_integrator.c - Polarized transfer
src/pol_rte_integrator.c - Polarized emission
src/pol_emission.c
Plasma models
- HARM3D adapter
model/harm3d/model.c - BHAC adapter
model/bhac/model.c - HAMR adapter
model/HAMR/model.c
Analysis products
- Image and spectrum output
src/io.c - Plot and inspect
python/plotting/rapplot.py - FITS export
python/fits/fits-eht.py - Light curves
python/timeseries/lightcurve.py
Parameter inference
- MultiNest fitting
python/MultiNest/Multinest_CentaurusA.py - Flux bin search
python/binsearch/binsearch.py
Other components
- Run user
- GRMHD snapshot
- Run parameters
- Observations
Connections 22
- Run user → Run entry point: runs
- Run parameters → Run entry point: configures
- GRMHD snapshot → HARM3D adapter: loads as
- GRMHD snapshot → BHAC adapter: loads as
- GRMHD snapshot → HAMR adapter: loads as
- Run entry point → Image orchestration: computes blocks
- Run entry point → Camera grid: initializes
- Run entry point → Image and spectrum output: writes results
- HARM3D adapter → Image orchestration: provides plasma
- BHAC adapter → Image orchestration: provides plasma
- HAMR adapter → Image orchestration: provides plasma
- Image orchestration → Photon geodesics: traces photons
- Photon geodesics → Spacetime metric: uses metric
- Photon geodesics → Radiative transfer: transfers along paths
- Radiative transfer → Polarized transfer: polarized mode
- Polarized transfer → Polarized emission: computes emission
- Image and spectrum output → Plot and inspect: reads images
- Image and spectrum output → FITS export: reads uniform images
- Image and spectrum output → Light curves: reads spectra
- Image and spectrum output → Flux bin search: reads spectra
- Image and spectrum output → MultiNest fitting: supplies model results
- Observations → MultiNest fitting: constrains fit