Magritte documentation

Welcome to the Magritte documentation! Magritte is an open-source software library for simulating radiation transport, developed at University College London (UCL, UK) and KU Leuven (Belgium).

Magritte is currently mainly used for post-processing hydrodynamical simulations by creating synthetic observations, but the techniques could also be applied more general. It can either be used as a Python package or as a C++ library. Magritte uses a deterministic ray-tracer with a formal solver that currently focusses on line radiative transfer (see De Ceuster et al. 2019 for more details). The plot below shows synthetic observations made with Magritte at three different inclinations for a hydro simulation of the stellar wind around an asymptotic giant branch (AGB) star as it is perturbed by a companion.

The hydro model was created by Jan Bolte using MPI-AMRVAC. See the examples to learn how these synthetic observations were created with Magritte.

Papers about Magritte

The following list of papers might provide further insights in the inner workings of Magritte:

  • Magritte: Adaptive ray-tracing, mesh construction and reduction, F. De Ceuster, J. Bolte, W. Homan, S. Maes, J. Malfait, L. Decin, J. Yates, P. Boyle, J. Hetherington, 2020 (arXiv, MNRAS);

  • Magritte: Non-LTE atomic and molecular line modelling, F. De Ceuster, W. Homan, J. Yates, L. Decin, P. Boyle, J. Hetherington, 2019 (arXiv, MNRAS);

Please note that some features presented in these papers might not yet be implemented and documented in the latest release of Magritte.

Issues & Contact

Please report any issues with Magritte or its documentation here. If you need any further help, please contact Frederik De Ceuster.

Developers & Contributors


  • Frederik De Ceuster

  • Thomas Ceulemans

  • Atulit Srivastava

Scientific & Technical advisors

  • Ward Homan

  • Jan Bolte

  • Jeremy Yates

  • Leen Decin

  • Peter Boyle

  • James Hetherington


  • Silke Maes

  • Jolien Malfait


FDC is supported by the EPSRC iCASE studentship programme, Intel Corporation and Cray Inc. FDC, JB, WH, and LD acknowledge support from the ERC consolidator grant 646758 AEROSOL.