Spectral line observations are an indispensable tool to remotely probe the physical and chemical conditions throughout the universe. Modelling their behaviour is a computational challenge that requires dedicated software. In this paper, we present the first long-term stable release of Magritte, an open-source software library for line radiative transfer. First, we establish its necessity with two applications. Then, we introduce the overall design strategy and the application/programmer interface (API). Finally, we present three key improvements over previous versions: (1) an improved re-meshing algorithm to efficiently coarsen the spatial discretisation of a model; (2) a variation on Ng-acceleration, a popular acceleration-of-convergence method for non-LTE line transfer; and, (3) a semi-analytic approximation for line optical depths in the presence of large velocity gradients.
SPECULATE: A synthetic spectral library, emulator and fitting package for accretion disc winds -- Infrastructure and application to CVs
University of Southampton(南安普顿大学);University of Cambridge(剑桥大学);University of Oxford(牛津大学);Space Telescope Science Institute(太空望远镜科学研究所);Eureka Scientific Inc(尤里卡科学公司);Queen’s University Belfast(贝尔法斯特女王大学);ComplyAdvantage;Univ. Grenoble Alpes CNRS IPAG(格勒诺布尔阿尔卑斯大学CNRS IPAG)