betaFeedback

WorksPhysics and Astronomy

The OpenMULTI3D stellar analysis package. A 3D non-LTE spectrum synthesis code for AFGKM-type stars within the DISPATCH framework

Abstract

Upcoming large spectroscopic surveys such as WEAVE, 4MOST, and SDSS-V will provide millions of high-resolution stellar spectra. This motivates the development of efficient codes to perform three-dimensional (3D) non-local thermodynamic equilibrium (non-LTE) radiative transfer (RT) calculations, in order to meet the requirements on efficiency and data analysis quality set by these surveys. We present a new open access 3D non-LTE spectrum synthesis code OpenMULTI3D, based on its predecessor MULTI3D, which was never released. This code can be used to compute large grids of spectra of AFGKM-type stars and will aid the exploitation of large-scale spectroscopic surveys such as 4MOST. We summarise the main input micro- and macro-physics of the code, describe its numerical implementation and provide selected test cases. The outputs of the code are compared with standard results in the literature, including the NLTE departure coefficients in 1D and 3D, the 3D NLTE abundance corrections, 3D synthetic spectral energy distributions for three types of stars, and 3D NLTE Balmer-line profiles of a metal-poor red giant. We also demonstrate how the code can be used to compute time-dependent spectra of stars, which may be relevant in precision stellar physics and analyses of exoplanet spectra. OpenMULTI3D offers an accessible and efficient platform for high-fidelity stellar analysis in the era of large-scale spectroscopic surveys.

Introduction

Physically-realistic models of stellar spectra are central to many areas of astrophysics, including the determination of stellar chemical composition, interpretation of exoplanet transit light curves, and studies of stellar populations in the context of Galactic evolution [65, 8, 52, 159, 23] (Oh et al. 2005).

Most studies in astronomy still rely on simple spectral models computed under the assumptions of 1D geometry, hydrostatic equilibrium (HE), and Local Thermodynamic Equilibrium (LTE). While the past decade has seen major advances in sophisticated radiative transfer methods [72, 145, 5] (Štěpán & Trujillo Bueno 2013), their computational complexity continues to restrict their large-scale applicability. Modern astronomical surveys, such as 4MOST [16, 18], will observe millions of stars. These surveys require tens to hundreds of thousands of synthetic spectra to encompass the dimensionality of the observed data and the associated astrophysical diagnostics [112, 138, 50, 136, 150, 151]. For example, in the analysis of the APOGEE spectra, over 808 thousand atmospheric models and synthetic spectra were utilised in the calculations of stellar parameters and abundances [112]. Furthermore, high-resolution instruments like ESPRESSO and ANDES provide spectra of exquisite quality, enabling the tracing of stellar convection signatures through line bisectors [46, 48], which further necessitates the transition beyond 1D LTE frameworks.

This creates a discrepancy between the high-fidelity spectroscopic data provided by modern facilities and standard astrophysical codes, which are necessary to convert observed fluxes into fundamental stellar parameters, such as effective temperature, surface gravity, and detailed chemical abundances [120, 80]. On the one hand, reliance on 1D LTE models severely limits the accuracy and precision of these derived parameters [7, 99, 23]. On the other hand, the use of such highly-parametrised 1D static stellar models precludes studying quantitatively and from first principles, many physical phenomena which are dynamic in nature. This is particularly evident in investigations of stellar convection [44, 110, 45] and its subsequent influence on the analysis of exoplanet spectra [35 b]. To fully exploit the potential of upcoming astronomical observations, the community requires open-access 3D non-LTE (NLTE)-capable stellar spectrum synthesis codes that rely on realistic, time-dependent stellar physics. In this paper, we introduce OpenMULTI3D, an open-access code, designed to compute NLTE synthetic spectra using 3D radiation-hydrodynamics (RHD) stellar model atmospheres for AFGKM-type stars. It is an OpenMP-parallelised Fortran code integrated into the task-based DISPATCH framework [122, 50]. The code has been optimised and carefully tested with the goal to synthesise spatially-resolved and integrated flux spectra of stars using the M3DIS 3D RHD models, which share the same micro-physics. But our code is also compatible with other model atmospheres, such as 3D STAGGER [104, 135], MURAM [155, 156] and CO5BOLD [54], as well as average <3D> [26, 88, 20], and classical 1D HE models [92, 68]. Most importantly, our code directly computes the statistical equilibrium for ions and molecules, and therefore self-consistent NLTE level populations for the full 3D cube can be employed in the multi-element 3D NLTE spectrum synthesis calculations for any stellar model in the AFGKM parameter space.

We in particular emphasise the high efficiency of the code. A broad-band detailed high-resolution spectrum (from 4000 to 9000 Å) of a typical G-type solar-metallicity star can be computed with a resolution of R=100 000R = 100\,000 in 3.2 seconds on a laptop (MacBook Pro, M1, 2020). This benchmark was done using a filtered line list with 325 923 atomic and molecular lines (ftol=10−4f_{\mathrm{tol}} = 10^{-4}). The line filtering method is outlined in Sect. 2.3. Using the same line list, we computed the spectrum from a 3D snapshot with 30×30×9630 \times30 \times96 spatial points in 17 minutes on a medium-sized compute node (32× Intel Xeon E5-2683, 2.1 GHz). We further benchmarked the synthesis of departure coefficients for a small model atom such as oxygen (41 energy levels, 278 transitions, 3869 radiative frequency points) and an large atom like Fe (607 levels, 13 241 transitions, 138 604 radiative frequency points) for the same star on both machines. The benchmarks are presented in Table 5.

We organise the paper as follows. In Sect. 2, we detail the underlying microphysics, the numerical implementation and the radiative transfer methods for NLTE calculations and spectrum synthesis. In Sect. 3, we compare our results with established codes and discuss 3D NLTE effects on SEDs, Balmer lines and Mg i abundances, alongside time-variable spectra. We present our conclusions in Sect. 4.

Methods

In this section, we outline the components and methods used in OpenMULTI3D in detail. Most critically, however, OpenMULTI3D supports NLTE treatment for bound-bound and bound-free transitions. The code computes the full statistical equilibrium for a system of energy states, which may represent a single ion or multiple ionisation stages of a chemical element or molecule. It employs the assumption of a trace ion, that is, no impact of the NLTE energy state populations on the model atmosphere structure or the equation of state (EOS). OpenMULTI3D comes with the NLTE model atoms and molecules from our previous dedicated studies, and these models are provided in Table 3 and described in Sect. 2.6.

AtomLiterature study
HMashonkina et al. [107]
OBergemann et al. [24]
NaEzzeddine et al. [53]
MgBergemann et al. [20]
AlEzzeddine et al. [53]
SiBergemann et al. [25]a
CaMashonkina et al. [106]b
TiBergemann [17]
CrBergemann & Cescutti [19]
MnBergemann et al. [21]
FeBergemann et al. [26]b
CoBergemann et al. [28]c
NiBergemann et al. [24]d
SrBergemann et al. [22]
BaGallagher et al. [56]
YStorm & Bergemann [149]
EuStorm et al. [148]
CHHoppe et al. [75]

Table 3. Adopted sources of NLTE model atoms and molecules distributed with the code.

OpenMULTI3D relies on a wealth of atomic and molecular data, including ionisation/dissociation energies, partition functions, absorption cross-sections and damping constants. All of these parameters can be updated in dedicated text files and multiple input sets exist for backward compatibility. Input atmosphere models, NLTE atomic/molecular models, line lists, chemical abundances and isotopic fractions are flexible and can be customised to a given science problem.

In the following we will discuss our standard and carefully vetted, and therefore default inputs. Following the classification of Pecaut & Mamajek [127], we tailor our treatment of the underlying microphysics to the atmospheric parameters of late-B and AFGKM-type stars. This includes all evolutionary phases covered by these spectral types: main-sequence, subgiants, red giants, AGB, and red supergiants. In particular, the line lists and opacity sources cover the ions and molecules that represent the conditions in those systems (Sect. 2.1). According to our tests with M3DIS model atmospheres [50, 51] and 1D hydrostatic model atmospheres, such as M1DIS, MAFAGS-OS [66 b] and MARCS [69], our code is suitable for the calculation of synthetic stellar spectra in the following space of stellar parameters:

2500 K≲Teff≲8000 K2500\ \mathrm{K} \lesssim T_{\mathrm{eff}} \lesssim8000\ \mathrm{K}

−1.0≲log⁡g≲5.5-1.0 \lesssim\log g \lesssim5.5

−10≲[Fe/H]1≲+1-10 \lesssim[\mathrm{Fe}/\mathrm{H}]^{1} \lesssim+1

Consequently, the code is intended for diagnostic spectroscopy applications within this space of stellar parameters.

Equation of state

The EOS was taken over from MULTI3D, but features a novel implementation in modern Fortran 2018. Here, we present the code that runs and compiles with GNU Fortran Compiler (gfortran) 10 and Intel Fortran Compiler Classic (ifort) 2021.

We have added the option to use polynomial partition functions and extended the molecular equilibrium to handle an arbitrary number of molecules. The default files include data for the first 92 elements of the periodic table going up to C iv, N v, O vi, Ne vi, Al iv and X iii for all other elements. The following 26 molecules are included: non-polar molecules H2_2, H2+_2^+, C2_2, N2_2, O2_2, as well as dipolar molecules (those with a permanent dipole moment), H2_2O, CH, NH, OH, CN, CO, NO, MgH, AlH, SiH, CaH, CrH, FeH, SiO, TiO, VO, ZrO, SiS, MgO, AlO and CaO.

The partition functions for all atoms are adopted from Irwin [78]. The partition functions and dissociation energies for all above-mentioned molecules, with the exception of H2_2O, are from Barklem & Collet [11], which only provides data for diatomic molecules. The H2_2O partition function is adopted from Barber et al. [9], and it is consistent with the adopted H2_2O line list and the dissociation energy is taken from Irwin [79], as in TurbospectrumNLTE, for backward compatibility. Molecular equilibrium constants are computed directly from these partition functions and dissociation energies, rather than interpolated in tabulated equilibrium constants. The partition functions entering the equilibrium constants are thereby identical to those used to convert number densities into level populations for the opacities, as required for consistency [78]. Neutral hydrogen level populations are determined using the occupation probability formalism [77] following the implementation of HLINOP [10].

The reference set of solar abundances is taken from Magg et al. [103]. In that study, the solar abundances were derived using different <3D><3\mathrm{D}> solar model atmospheres and NLTE line formation for C, N, O, Mg, Si, Ca, Fe and Ni computed using TurbospectrumNLTE and MULTI2.3 [58], with model atoms of the kind described in Sect. 2.6, and this dataset also includes NLTE values of abundances of other chemical elements (Na, Al, S, K, Sc, Ti, V, Cr, Mn, and Co) adopted from previous studies. We use this solar data set because it maximises internal consistency with our model atmosphere calculations with the M3DIS code [50, 51], which are the standard inputs to our code, sharing the same micro-physics as OpenMULTI3D for full consistency. We note that these solar abundances fulfil helioseismic constraints on the solar interior [141, 103] and latest comprehensive neutrino results for the pp chain and CNO cycle [6, 13, 61], but the user may flexibly choose any other solar composition because it is tabulated in a single text file. The isotopic weights and fractions are compiled from Bergemann et al. [27].

Opacity package

The continuum opacities employed by OpenMULTI3D are provided alongside their references in Table 1.

SpeciesTypeSource
Hbf, ffKarzas & Latter [87]a^{a}
H−^{-}bfMcLaughlin et al. [111]
He, C, N, O, MgbfTOPbase [139]
Al, Si, Ca, FebfTOPbase [139]
CH, OHbfKurucz et al. [94]
H−^{-}ffBell & Berrington [14]
He, C, Mg, SiffPeach [126]
other metalsffPeach [126]
He−^{-}ffJohn [83]
H2−_2^{-}, O−^{-}, CO−^{-}ffJohn (1975a,b)
H2_2O−^{-}ffJohn (1975a,b)
N−^{-}ffRamsbottom et al. [133]
H+^{+}ffMihalas [116]
H+^{+} + HciaDoyle [43]
H + HeciaGustafsson & Frommhold [70]
H2_2 + HciaGustafsson & Frommhold [71]
H2_2 + H2_2ciaBorysow et al. [30]
H2_2 + HeciaJørgensen et al. [86]
e−^{-}scatMihalas [117]
HscatDalgarno as in Gingrich (1964)
H2_2scatDalgarno & Williams [41]
HescatBues & Wehrse [32]

Table 1. Default continuum opacities and their sources.

We have updated all absorption cross-sections to match those used by MARCS and TurbospectrumNLTE. The input formats and interpolation procedures are based on the Uppsala Opacity Package [68] for backward compatibility. Additionally, we have implemented the occupation probability formalism for H i bound-free transitions following HLINOP [10].

Notes. Opacity types are bound-free (bf), free-free (ff), collision-induced or quasi-molecular absorption (cia) and scattering (scat). These sources have been compiled by the authors of MARCS and TURBOSPECTRUM [69, 131, 58]. a^{a} Modified using the occupation probability formalism following Barklem & Piskunov [10].

Line opacities

The opacities due to radiative bound-bound transitions are computed using atomic and molecular line lists sorted by isotope/isotopologue. The code reads the TurbospectrumNLTE format natively as well as a second simplified format presented in Table 2. Common line list formats, including VALD, MOOG and LINEMAKE can be converted into the required format using Python scripts which are shipped as part of the distribution. However, we strongly recommend our carefully curated line lists published alongside our work in Gerber et al. [58] for scientific use2^{2}.

λ0\lambda_0 [Å]EiE_i [eV]log⁡(gf)\log(gf)γvdw\gamma_{\mathrm{vdw}}γrad\gamma_{\mathrm{rad}}γstk\gamma_{\mathrm{stk}}ij
7771.949.1460.369453.2343.89e+07000

Table 2. Example of a line list entry.

The linear absorption coefficient χν\chi_{\nu} and the emissivity ην\eta_{\nu} are computed according to equations 1 and 2.

χν=hν4πϕνniLTEBij(bi−βνbj),(1)\chi_{\nu} = \frac{h\nu}{4\pi}\phi_{\nu}n_i^{\mathrm{LTE}}B_{ij}(b_i-\beta_{\nu}b_j), \tag*{(1)}
ην=2hν3c2hν4πϕνniLTEBijβνbj,(2)\eta_{\nu} = \frac{2h\nu^3}{c^2}\frac{h\nu}{4\pi}\phi_{\nu}n_i^{\mathrm{LTE}}B_{ij}\beta_{\nu}b_j, \tag*{(2)}

where ϕν\phi_{\nu} is the line profile, niLTEn_i^{\mathrm{LTE}} is the number density of the lower energy level, BijB_{ij} is the absorption Einstein coefficient, bi=ni/niLTEb_i=n_i/n_i^{\mathrm{LTE}} is the departure coefficient and βν=exp⁡(−hν/kT)\beta_{\nu}=\exp(-h\nu/kT) is the Boltzmann factor. The other symbols have their usual meanings. The assignment of departure coefficients to individual lines is described in Sect. 2.6. For more details on the chosen formalism see Appendix B.

We avoid computationally expensive calculations in the distant line wings, where contributions to the total opacity are negligible. The code initiates the calculation of the line opacity χλ\chi_{\lambda} at λ0\lambda_0 and verifies if χλ>ftolχcont\chi_{\lambda} > f_{\mathrm{tol}}\chi_{\mathrm{cont}}, where ftolf_{\mathrm{tol}} is a user-defined tolerance and χcont\chi_{\mathrm{cont}} is the continuum opacity at λ0\lambda_0. Each wing is then computed by stepping outwards, terminating the process once the line opacity falls below the threshold ftolχcontf_{\mathrm{tol}}\chi_{\mathrm{cont}}. Where the line opacity already accumulated at λ0\lambda_0 exceeds χcont/ftol\chi_{\mathrm{cont}}/f_{\mathrm{tol}}, the threshold is raised to ftol2f_{\mathrm{tol}}^2 times that opacity, so that weak lines inside saturated band cores are skipped. All calculations in this paper use the default ftol=10−4f_{\mathrm{tol}}=10^{-4}. The code records max⁡(χλ/χcont)\max(\chi_{\lambda}/\chi_{\mathrm{cont}}) of each line over all grid points and writes a filtered line list after each synthesis, which contains only the lines for which this ratio exceeds ftolf_{\mathrm{tol}}. The filter therefore depends on the physical conditions of the model atmosphere and on the wavelength range. We use it to reduce the master line lists using a 1D model atmosphere before running a 3D synthesis. The default ftol=10−4f_{\mathrm{tol}}=10^{-4} is the value adopted in TurbospectrumNLTE [131, 58] and SYNSPEC [76], and a factor of three below the default of Korg [160]. At this tolerance, the temperature differences between 1D and 3D models are not critical for the line selection in spectroscopic diagnostics. Diagnostic lines lie well above the threshold, and lines close to Notes. The columns are the central wavelength λ0\lambda_0, lower excitation potential EiE_i, log⁡(gf)\log(gf) value and damping parameters γvdw\gamma_{\mathrm{vdw}}, γrad\gamma_{\mathrm{rad}}, and γstk\gamma_{\mathrm{stk}} for van der Waals, radiative, and Stark broadening, respectively. Additionally, indices i and j may be specified to connect the lower and upper energy levels to precomputed departure coefficient data.

it only contribute to a weak pseudo-continuum that is removed by local renormalisation of both observed and synthetic spectra.

Table 2 provides an example of an entry in a line list file for a radiative bound-bound transition. The minimal requirement is the central wavelength λ0\lambda_0, lower excitation potential EiE_i, the transition probability log⁡(gf)\log(gf), a product of an f-value and the statistical weight of the lower energy level. All other columns are optional, so that γvdw\gamma_{\mathrm{vdw}} is only read if a 4th column is provided and γrad\gamma_{\mathrm{rad}} if there is a 5th column and so on.

Intrinsic line broadening is included through a Voigt profile resulting from the convolution of the Gaussian thermal (and optionally microturbulence) broadening profile with the radiative and collisional broadening Lorentz profile. The damping coefficients are computed according to various implemented recipes, which typically scale with NH IN_{\mathrm{H\,I}} in the case of van der Waals broadening and NeN_e in the case of Stark broadening (see Appendix § 9).

For H i lines we use dedicated profiles that include linear Stark broadening. For the Balmer lines up to n=20n = 20 and the Paschen lines up to n=21n = 21 we interpolate the tabulated profiles of Stehlé & Hutcheon [146], computed with the Model Microfield Method, which includes ion dynamics. For the Brackett lines we interpolate the VCS (Vidal et al. [154]) profiles of Lemke [97], whose tables were taken over from the SIU code (Reetz [134]). The tables include thermal Doppler broadening. The other broadening mechanisms are added to the tabulated profile as a single Lorentzian outside the line core. These are radiative damping, broadening by neutral helium, and self-broadening by neutral hydrogen, the latter from Barklem & Piskunov [10] for Hα\alpha, Hβ\beta and Hγ\gamma and from Ali & Griem [1] for all other lines. For lines outside the tables, including the Lyman series, we represent quasistatic ion perturbations using a Holtsmark profile, and we model electron impact effects as an additional Lorentzian contribution. Furthermore, we transition from a convolved Voigt profile in the line core to a direct summation of the independent Gaussian, Lorentzian, and Holtsmark profiles in the line wings following the implementation by Barklem & Piskunov [10]. An application to the Balmer series of a metal-poor red giant is shown in Sect. 3.4.

Input model atmospheres

OpenMULTI3D can take different types of stellar model atmospheres as input, including 1D, 2D, and 3D models.

The basic information required from the 3D cube are the spatial xx, yy, zz coordinates, velocities vxv_x, vyv_y, vzv_z, temperature TT and one of the following: electron number density nen_e, electron pressure pep_e or mass density ρ\rho. The missing quantities out of nen_e, pep_e and ρ\rho are determined via the EOS. The code works in CGS units. Natively supported formats for 3D radiation-hydrodynamics model atmospheres consist of M3DIS (Eitner et al. [50]), STAGGER (Magic et al. [104]), STAGGER2.0 (Rodríguez Díaz et al. [135]) and MULTI3D (Leenaarts & Carlsson [96]).

Notes. a With Si+H collisional data from Belyaev et al. [15] and updates to the radiative data as described in Magg et al. [103]. b Updates described in Semenova et al. [140]. c With Co+H collisional data from Yakovleva et al. [161]. d With Ni+H collisional data from Voronov et al. [157].

Radiative transfer

The code employs a short-characteristics solver (Mihalas et al. [118]; Kunasz & Auer [90]) during NLTE iterations and a long-characteristics solver (Jones & Skumanich [85]; Jones [84]) for spectrum synthesis. Both linear and monotonic quadratic solvers are provided adopting a plane-parallel configuration for all calculations.

In the current version, the boundary condition at the top of the atmosphere is zero incoming radiation (I=0I = 0). At the bottom boundary, we extrapolate the Planck function assuming Iν=BνI_\nu= B_\nu. Horizontal boundary conditions are periodic, following the properties of 3D radiation-hydrodynamics model atmospheres. Consequently, the atmosphere is not split horizontally to avoid circular dependencies between RT patches.

NLTE model atoms

The NLTE model atoms can be used in the same format as those developed for MULTI (Carlsson [37]) and MULTI3D (Leenaarts & Carlsson [96]). Our standard version of the code already includes the following published well-tested NLTE model atoms for 17 elements: H, O, Ne, Na, Mg, Al, Si, Ca, Ti, Cr, Mn, Fe, Co, Ni, Sr, Ba, Y, Eu. See Table 3 for references. These NLTE model atoms were released as part of TurbospectrumNLTE and new models, including CH, can be retrieved from the same open-access database maintained by MPIA3.

Where a level of the model atom combines several fine-structure levels or terms, all lines of these levels share its departure coefficient. This assumes that the combined levels are populated relative to one another according to the Boltzmann distribution. However, we note that this is a very rare case, as for all atomic models (Table 3) used in the code and released by our group, direct fine-structure levels are used in the model atom for the energies that are representative of UV, optical, and IR transitions. Only states close to the ionisation limit are combined into terms or superlevels, which in the Fe and Ni model atoms applies above about 6.8 ([26, 103]) and 6.2 eV ([24]), respectively. The only exception to our standard approach is the CH molecule ([75]), whose 1981 states were grouped by excitation energy into 294 superlevels using K-means clustering.

The departure coefficients computed by the statistical equilibrium solver (Sect. 2.7), either in 1D or in 3D, are stored in a separate file and can be associated with individual spectral lines in a line list. This is done via the use of energy state indices ii and jj, which can be supplied in the line list file. These indices refer to the levels of a specific model atom, so a line list has to be matched to the model atom it is used with.

For line lists without these indices, the code can optionally assign them with the procedure developed for TurbospectrumNLTE and TSFitPy ([58]), which is not ideal, but provides a starting point for further improvements. See a more careful and rigorous approach used in the SIU code (e.g. [89, 28, 107]). In the TSFitPy approach, a line takes the levels of the model atom transition within 0.02 Å of its wavelength whose lower-level energy agrees to within a factor of 1.0005, and otherwise the nearest level within that tolerance. Lines without a match remain in LTE. Indices given in the line list are always kept. We emphasise that no attempt is made in this paper to provide a more physically correct and elaborate approach, in which the upper and lower energy levels, including their properties (such as total angular momentum, energies) are used to ensure the correct states are identified with the radiative bound-bound transition, and this is essential for any careful stellar spectroscopic NLTE analysis.

Statistical equilibrium solver

We evaluate convergence by tracking the maximum relative change in the departure coefficients between iterations, ei=bi/biold−1e_i = b_i/b_i^{\mathrm{old}} - 1. By default, we consider the solution converged when the maximum absolute value of eie_i falls below 10−310^{-3}.

One advantage of the task-based parallelisation scheme of DISPATCH is the possibility to apply asynchronous updates to individual subregions. We give the user the option to exclude subregions from the iterative updates once their populations converge below an independent, customisable threshold. Optically thick subregions typically converge within a few iterations and are unaffected by changing populations in upper atmospheric layers. Excluding them reduces the computational cost of subsequent lambda iterations, as the solver focuses strictly on the optically thin regions that require further iterations to reach statistical equilibrium.

Notes. a^{a} vmicv_{\mathrm{mic}} was only used for the 1D spectrum synthesis utilising corresponding MARCS model atmospheres. b^{b} In the validation against MULTI3D we employed the STAGGER model as the M3DIS format is not supported in the legacy code. c^{c} Only used with the 1D MARCS model in the validation against MULTI.

MULTI3D originally used the full-preconditioning scheme ([137], Sect. 2.3) of the rate equations, which eliminates cross-terms in the transition matrix when overlapping lines are present. We note that preconditioning serves strictly to accelerate the convergence rate of the iterative solver and does not alter the final converged solution. Because calculating all cross-terms is computationally expensive and generally not required to achieve convergence, we implement the simpler auto-preconditioning scheme (Sect. 2.4 of the same paper). This method isolates the feedback in the radiative rates of each line with itself, which reduces memory and computation costs while yielding identical physical results to the full scheme. Other 3D NLTE codes, such as BALDER ([4]), also use this approach. Optionally, Ng acceleration ([119]) can be enabled, which may significantly speed up the convergence.

Atmosphere projection

To reduce numerical interpolation errors associated with evaluating inclined rays in downsampled 3D atmospheres, we implement a pre-tilting atmosphere projection scheme for our long characteristics solver. This method has previously been suggested by Peck et al. [128] for interpolating stellar atmosphere models. They have discussed and tested the concept of angle-aligning the grid prior to computing radiative transfer to reduce intensity diffusion in short-characteristics solvers. While long-characteristics solvers do not suffer from diffusion due to interpolation in the intensity, they do suffer from diffusion when interpolating the source function and especially the opacity onto the inclined photon paths. Interpolating the hydrodynamic quantities prior to downsampling onto tilted grids may also introduce interpolation errors, but it is still favourable, since one may interpolate in the full-resolution snapshot, rather than in the already downsampled version used during the radiative transfer calculations. The same method is in fact briefly mentioned in Hayek et al. [73] as part of the 3D LTE radiative transfer code SCATE; however, no comparisons against other methods are presented in said paper. This pre-tilting approach only comes with one additional complexity in the case of NLTE line formation. Since we typically compute the departure coefficients on a downsampled non-tilted grid, we then have to interpolate the departure coefficients onto the ray-aligned grid.

Results and discussion

Atmosphere projection validation

In order to test the properties of the atmosphere projection method, we have selected 9 spectral lines of various species, ionisation stages, lower excitation potentials and oscillator strengths, hence a selection of lines covering a broad range of formation depths within the photosphere. The employed line data are listed in Table C.2. We compute 3D LTE line profiles for 12 different inclinations employing one solar atmosphere snapshot. We carry out this calculation using the full-resolution snapshot with horizontal resolution of 240×240240 \times240 points and progressively downsampled versions of the same snapshot. During the radiative transfer, the source function and opacity are linearly interpolated onto the photon path in this setup. Alternatively, we compute the same line profiles, but by interpolating the hydrodynamic quantities prior to downsampling and prior to the radiative transfer calculation onto tilted grids with a horizontal resolution of 30×3030 \times30 points.

We present the results in Figure 1, where we show the error in the equivalent widths WeqW_{\mathrm{eq}} of each spectral line with respect to the full-resolution solution. We show

Figure 1. Equivalent widths as a function of inclination angle μ\mu for varying horizontal resolutions, comparing results with and without pre-tilting of the hydrodynamical model atmosphere snapshots. The values are expressed relative to the equivalent widths of the full-resolution (240 × 240) result. In all cases, the pre-tilted (projected) approach reproduces the full-resolution equivalent width to within 0.5%, despite its relatively low horizontal resolution of 30 × 30.

ΔWeq=Weq,nx×nyWeq,240×240−1(3)\Delta W_{\mathrm{eq}} = \frac{W_{\mathrm{eq},n_x \times n_y}}{W_{\mathrm{eq},240 \times240}} - 1 \tag*{(3)}

as a function of inclination angle μ=cos⁡θ\mu= \cos\theta, where θ\theta is the inclination of the ray with respect to the zz-axis. μ=1\mu=1 corresponds to the vertical ray, where no interpolation is needed as the ray aligns with the grid. Any differences in Weq(μ=1)W_{\mathrm{eq}}(\mu=1) are from probing the stellar granulation pattern more or less often. Interestingly, even a downsampled snapshot with a resolution of 30×3030 \times30 shows very little deviation in Weq(μ=1)W_{\mathrm{eq}}(\mu=1) compared to the full-resolution result. However, for slightly inclined rays, i.e. μ=0.99\mu=0.99 and μ=0.95\mu=0.95, WeqW_{\mathrm{eq}} can deviate up to ∼7%\sim7\%, in the case of the Ti ii line. We also note that the WeqW_{\mathrm{eq}} tends to be overestimated near the vertical, but in some cases can also be underestimated, as is seen in the Na i line.

As expected, the interpolation error is reduced at higher resolution, with typically ΔWeq<1%\Delta W_{\mathrm{eq}} < 1\% at a resolution of 120×120120 \times120. In contrast, the full-resolution WeqW_{\mathrm{eq}} is reproduced to within 0.5% for every benchmark line when using a reduced horizontal resolution of 30×3030 \times30 in combination with the projection approach. This clearly demonstrates the superior efficiency of this method as the horizontal resolution has a large impact on the computational cost of the radiative transfer calculation. For the interpolation of bib_i in NLTE, we found that linear interpolation in log⁡bi\log b_i with subsequent normalisation of the populations to reproduce the total number density of the analysed species reduces interpolation errors compared to linear interpolation in bib_i.

Code validation

We aim to employ OpenMULTI3D both as a reliable source of NLTE departure coefficients and as a spectrum synthesis code for 1D and 3D stellar atmospheres. This requires validation against other established codes commonly used for either application.

The successful validation of our code against MULTI, MULTI3D and TurbospectrumNLTE is presented in Appendix C. First we compare 1D LTE and 1D NLTE line profiles against MULTI to validate the formal radiative transfer solver and ensure that the statistical equilibrium solver works reliably for simple atoms, Mg from Bergemann et al. [20], as well as complex model atoms, Fe from Bergemann et al. [26]. The utilised atomic line data for the validation is presented in Table C.1. Then we compare 3D LTE and 3D NLTE line profiles against MULTI3D to test the atmospheric sampling, the short-characteristics and the long-characteristics solver in the case of 3D radiative transfer. And finally, we compare 1D LTE spectral energy distributions (SEDs) of multiple stellar types against TurbospectrumNLTE to demonstrate the applicability of the code to various stellar regimes. Table 6 specifies the line list sources used for all SEDs presented in this paper. The molecular line lists were taken from the TurbospectrumNLTE distribution4, because TurbospectrumNLTE is the validation target for our 1D SED calculations (Appendix C.3). We have not adopted line lists from the ExoMol database [152], because ExoMol does not provide broadening by atomic hydrogen and a validation of its data for stellar atmospheres is beyond the scope of this paper. For specific applications, users can convert ExoMol or other custom line lists to one of the supported formats.

SpeciesReference
AtomsVALD ([129], and refs. therein); VALD-2 ([91], and refs. therein)
H2_2OBarber et al. [9]
CHMasseron et al. [108]
NHKurucz [93]
OHGoldman et al. [60]; HITRAN (Gordon et al. [63])
MgHSkory et al. [143]
AlHPlez [130, 131]
SiHKurucz [93]
CaHPlez [130, 131]
CrHBurrows et al. [33]
FeHPlez [131]
C2_2Querci et al. [132]
CNHedrosa et al. [74]; Plez [131]
COGoorvitch [62]; Li et al. (2015)
SiOLanghoff & Bauschlicher [95]
TiOPlez [130, 131]
VOPlez [130, 131]
ZrOPlez [130, 131]
SiSCami et al. [34]

Table 6. Sources of atomic and molecular line lists used for the SED calculations presented in this paper.

In the following sections we present the 3D LTE SEDs and their differences from the 1D counterparts (Sect. 3.3). We then show a synthetic near-UV spectrum computed with NLTE departure coefficients for H i and Fe i, and examine how 3D granulation affects the wings of the Balmer series (Sect. 3.4). We also investigate the time variability of line profiles across the 3D snapshot series, which 1D hydrostatic models cannot produce (Sect. 3.5). Finally, we compute 3D NLTE–1D LTE and 1D NLTE–1D LTE abundance corrections for three Mg i lines in a metal-poor turn-off atmosphere and compare them with literature values (Sect. 3.6). Table 4 lists the properties of the model atmospheres.

StarTeffT_{\mathrm{eff}}log⁡g\log g[Fe/H]vmicav_{\mathrm{mic}}^{a}3D Model
Sun57774.40.01STAGGER
M Dwarf40004.50.01M3DIS
Metal-poor RGB50002.0-3.02M3DIS
Metal-poor RGBb^{b}50002.0-3.02STAGGER
Metal-poor Turn-off65004.0-2.01STAGGER
Metal-poor Turn-offc^{c}65004.0-3.01--
Red Supergiant40001.00.05CO5BOLD

Table 4. Stellar parameters of the employed model atmospheres.

3D SEDs

For the hydrodynamic vs. hydrostatic (3D – 1D) comparison of the spectral energy distributions (SEDs), we interpolated spectra from multiple 1D MARCS model atmospheres spanning a range of effective temperatures in order to match the TeffT_{\mathrm{eff}} of the 3D snapshots. For all models, TeffT_{\mathrm{eff}} was computed by direct integration of the emergent flux over ∼100 000\sim100\,000 wavelengths in the range 1300–200 000 Å, using exactly the same wavelength grid as adopted in the MARCS code (flx_wavelengths.vac)5. The spectra are shown convolved to a resolving power of R=100R = 100.

Despite differences in stellar parameters, the three cases presented in Figure 2 display a consistent trend. Compared to 1D counterparts, 3D SEDs are systematically cooler at the H−^{-} opacity minimum near 1.6 µm and moderately hotter in the optical range (0.4 µm to 0.8 µm). Noticeable differences are seen in the red supergiant, in particular for the red CN band system (0.8 µm to 2.0 µm), the first overtone band of CO (2.3 µm to 2.7 µm) and optical Fe lines (0.3 µm to 0.8 µm). For demonstration purposes we show the impact of these species on the SED of a red supergiant using a 1D MARCS models atmosphere in Figure 3. The CO band, for example, is considerably weakened in the 3D model, counteracting the offset caused by the H−^{-} opacity minimum. The 3D − 1D discrepancies are generally smallest in the M dwarf.

Figure 2. SED test calculation of a typical M dwarf, metal-poor red giant and red supergiant computed in 1D and 3D LTE using OpenMULTI3D. The spectra have been convolved to a resolution of R=100R = 100 for easier visual comparison. The legend states the effective temperature of the spectra from direct integration.

Figure 3. SED test calculation of a typical red supergiant with and without CO, CN and Fe lines. This comparison was done using a hydrostatic MARCS model atmosphere.

The reduced flux around the H−^{-} opacity minimum aligns with findings by Davies et al. [42] (see their Fig. 6, right panel). Furthermore, the redistribution of emission from the infrared into the optical range when adopting hydrodynamical models was observed by Bonifacio et al. [29]. They noted that 3D-corrected colours are redder for hotter models and bluer for cooler models, regardless of metallicity. Their Figure 4 demonstrates bluer V−KV-K colours from 3D models for all instances with Teff<5250T_{\mathrm{eff}} < 5250 K, a condition met by the models shown in Figure 2.

Figure 4. Synthetic spectra of a metal-poor red giant. The 3D spectra are computed from a single snapshot of an M3DIS model atmosphere, and the 1D LTE spectra come from MARCS models. (a) The 3700–3900 Å region at the synthesis resolution, computed with the line lists from Table 6 in 1D LTE (red) and 3D NLTE (black) where only H and Fe are treated in NLTE. The labels give the principal quantum numbers of the lower and upper levels of the Balmer lines. (b) The same spectra convolved to R=5000R = 5000, with 3D LTE added (blue). (c–e) H10, Hγ and Hα at R=5000R = 5000, computed with hydrogen lines only. 3D NLTE (black) and 3D LTE (blue) are compared with 1D LTE on MARCS models of 5000, 5500 and 6000 K (red).

Balmer series

We present an example of a 3D NLTE spectrum synthesis, compared with the corresponding 1D LTE result, in Figure 4. The 3D NLTE spectrum was computed from a single snapshot of the metal-poor red giant M3DIS model of Table 4 in two steps. First, we computed departure coefficients for H I and Fe I separately, using the H and Fe model atoms of Table 3. We then ran a final synthesis with the line lists of Table 6, applying the precomputed departure coefficients to the line opacities and emissivities of both species. This requires each line-list transition to be associated with the levels of the model atom, for which we use the optional level matching described in Sect. 2.

Panel (a) of Figure 4 shows the resulting 1D LTE and 3D NLTE spectra at the synthesis resolution (sampled at R=200 000R = 200\,000).

The Balmer lines have much stronger wings in 3D NLTE than in 1D LTE. Panel (b) shows the same spectra convolved to R=5 000R = 5\,000, together with the 3D LTE spectrum. The strong wings are equally present in 3D LTE, so they arise from the 3D atmospheric structure rather than from departures from LTE. NLTE effects are, however, visible in the many Fe i lines in this window, which are weaker in 3D NLTE than in 3D LTE. In panels (c)–(e) we isolate the TeffT_{\rm eff} sensitivity of H10, Hγ and Hα by comparing the 3D NLTE and 3D LTE profiles with 1D LTE profiles computed from MARCS models of increasing TeffT_{\rm eff}. NLTE affects these lines mainly in the line core, and the effect decreases towards the higher series members. At R=5 000R = 5\,000 it deepens the core of Hα by 5 % of the continuum flux and changes those of Hγ and H10 by less than 0.4 %. Beyond about 1 Å from the centre of Hα, the 3D NLTE and 3D LTE profiles differ by less than 1 %. The MARCS models were computed with a mixing length of αMLT=1.5\alpha_{\rm MLT} = 1.5 which is their default value [69]. At 3 Å from the line centre, the 3D NLTE wings correspond to a 1D model that is about 450 K hotter for H10, 430 K for Hγ and 340 K for Hα. This ordering agrees with Martins et al. (2018), who found that the outer Balmer-line wings are stronger in 3D than in 1D because the line forms in the upflowing granules, whose temperature gradients are steeper than those of the 1D models, and that this effect grows towards the higher series members, which form deeper in the atmosphere. Our conclusion is that the analysis of H I lines using 1D models would overestimate TeffT_{\rm eff} by up to a few hundred K (from about 340 K for Hα to 450 K for H10 at 3 Å from the line centre) for metal-poor red giants, but the details will depend on the choice of line and fitting method.

Time-variable spectra

We performed 3D NLTE calculations of the 5183.6 Å Mg I line for a sequence of snapshots representing a typical M dwarf and a metal-poor RGB star. Figs. 5 and 6 illustrate the intensity fluctuations surrounding and within the line core for each model. Each time series comprises approximately 100 snapshots but spans different intervals of stellar time, reflecting the disparate convective timescales of the dwarf and giant.

The intensity fluctuations were computed as:

ΔIλ(t)=Iλ(t)⟨Iλ(t)⟩−1,(4)\Delta I_{\lambda}(t) = \frac{I_{\lambda}(t)}{\langle I_{\lambda}(t) \rangle} - 1, \tag*{(4)}

where IλI_{\lambda} denotes the un-normalised disk-centre intensity and the angle brackets indicate averaging over the time series.

The intensity fluctuations comprise two categories, most clearly distinguished in Figure 5. The first consists of fluctuations that remain nearly uniform across the line wings and the continuum, forming a horizontal barcode-like pattern. The second category corresponds to blue- or redshifts of the line core, appearing as jitter around the centre. Both phenomena arise from the balance between upward and downward flows within stellar photospheric granulation. This convective surface is composed of bright rising convection cells and dim, turbulent inter-granular lanes where cooled material sinks rapidly.

Figure 5. The left panel shows the time-variability of a 3D NLTE Mg line profile for a series of ∼100\sim100 snapshots, presented for a typical metal-poor red giant. The starting time is past the relaxation time (TeffT_{\mathrm{eff}} convergence) of the atmospheric model. The intensity fluctuations are measured with respect to the time averaged mean. The first grey inset in the left panel shows the intensity fluctuation of the continuum only. The second grey inset shows the Doppler shift of the line core, which is also shown in wavelength space by the black solid line in the centre of the plot. The right panel shows the mean line profile and highlights the line profiles from two selected snapshots responsible for the minimum and maximum Doppler shifts.

Figure 6. Same as Fig. 5, but for a typical M dwarf. We have omitted the results for individual snapshots in the right panel as the differences were hardly noticeable when zooming out to show the wings of this strong line.

Continuum fluctuations occur because the surface area ratio between cells and lanes varies around a mean value, causing certain snapshots to appear brighter than others. The first grey inset in the left panel of Figure 5 shows the intensity fluctuations of the continuum alone. These amount to approximately 5% for the metal-poor RGB and ∼1%\sim1\% for the M dwarf.

The convective blue- or redshifts result from a non-zero average line-of-sight momentum in the photosphere. Even when the simulation box perfectly conserves mass and momentum, balancing upward and downward flows, an imbalance typically exists in the observable fraction of the material. Consequently, the line centres appear shifted by different amounts in different snapshots (e.g. [121, 49]). The second grey inset in the left panel of Figure 5 shows the derived Doppler shift vdopv_{\mathrm{dop}} of the line core for each snapshot. The solid black line in the centre represents vdopv_{\mathrm{dop}} in wavelength space. The Doppler shift was measured by fitting a parabola to the line core and determining its analytical minimum. Alternatively we tested using the maximum displacement of the C-shaped line bisectors, but both methods returned consistent results in our case. The average Doppler shift velocity of the 5183.6 Å Mg line is vdop=−317±134v_{\mathrm{dop}}=-317 \pm134 m/s in the case of the metal-poor RGB and −43±26-43 \pm26 m/s in the case of the M dwarf. This is in good agreement with the TeffT_{\mathrm{eff}}-vdopv_{\mathrm{dop}} trend observed in FGKM-type stars predicting larger shifts for hotter stars [2, 55, 115, 142]. The line core intensity fluctuations peak at approximately 7% for the M dwarf and 35% for the metal-poor RGB star.

Figure 7. 1D LTE, 1D NLTE and 3D NLTE Mg i line profiles as well as their corresponding abundance corrections with respect to 1D LTE.

We note that the presented intensity fluctuations only correspond to the variability of the modelled surface area when viewed face on and it does not represent the expected variability of the integrated stellar disk. The amplitude of these fluctuations relative to the mean decreases as the horizontal extent of the simulation box increases; however, the finite stellar radius ultimately limits this reduction (see e.g. Ludwig 2006). The dwarf simulation box covers a horizontal area of 5.08 Mm × 5.08 Mm, whereas the giant spans 2.13 Gm × 2.13 Gm. We designed the horizontal dimensions of our simulation box to cover approximately 10–20 convection cells. This scale is generally considered sufficient to capture the statistical properties of the atmosphere [39, 26, 104, 3], as smaller scales typically remain spatially correlated.

Mg abundance corrections

Figure 7 shows example calculations of 1D LTE, 1D NLTE and 3D NLTE line profiles for three Mg i lines (4703.0 / 5183.6 / 5528.4) Å in a metal-poor turn-off atmosphere (Teff=6500T_{\mathrm{eff}} = 6500 K, log⁡g=4.0\log g = 4.0, [Fe/H] = −2-2). We have chosen this model atmosphere, because for this model there are four independent literature sources providing NLTE abundance correction for the Mg i lines [20, 125, 105, 100]. Hence this combination of inputs (spectral lines, stellar parameters) offers an excellent validation test.

To compute the 1D and 3D NLTE abundance corrections, we used the MARCS model atmospheres in 1D and STAGGER models from Rodríguez Díaz et al. [135] in the case of 3D. We employ the NLTE Mg model atom from Bergemann et al. [20], also presented in Magg et al. [103] and Gerber et al. [58]. The atomic parameters of the Mg i lines are provided in Table C.1. We have also accounted for the effects of line blanketing in the background opacities through the use of a line list assembled and compiled by the Munich group [57, 17, 21]. The resulting 1D NLTE – 1D LTE abundance corrections are +0.09, +0.04, +0.09 dex for the Mg i lines at 4703.0, 5183.6 and 5528.4 Å, respectively. The literature results on 1D NLTE abundance corrections for these optical Mg i lines are generally in good agreement [see 23]. For this set of stellar parameters, Lind et al. [100] find 1D NLTE corrections of (+0.05/+0.03/+0.04), while results based on DETAIL/SIU6 employing the model from Bergemann et al. [20] predict the corrections (+0.07/+0.03/+0.06). The NLTE abundance correction database from Matsuno et al. [109] tabulates 1D NLTE – 1D LTE abundance corrections of (+0.06/−0.07/+0.04). We note that the abundance correction of the 5183.6 Å line is particularly sensitive to the inclusion of line blanketing and it can become negative in 1D NLTE if no line blanketing is accounted for. We consider the agreement satisfactory given that the three sources are employing various synthesis codes (PySME, SIU and BALDER) with some differences in microphysics and opacities to be expected. For the same stellar parameters, our 3D NLTE – 1D LTE corrections are (+0.16/+0.02/+0.17) dex. For comparison, the 3D NLTE – 1D LTE results from Matsuno et al. [109] are (+0.14/+0.06/+0.13), which agrees well with our results.

Conclusions

The standard approach to determine astrophysical parameters of stars, including atmospheric parameters and detailed chemical composition of stars, relies on highly physically simplified synthetic stellar spectra. These spectra are typically computed using 1D hydrostatic equilibrium model atmospheres and NLTE taken into account using grids of departure coefficients, for example GALAH [31], GAIA-ESO [144] and APOGEE [124]. However, these models – by construction – do not have any time dependence and lack realistic gas motions due to convection and pulsations, the

{{sup}}6nlte.mpia.de latter being ubiquitous over the entire Hertzsprung-Russell diagram [38].

In this paper, we present the open-access code OpenMULTI3D to compute 3D NLTE radiation transfer and synthetic stellar spectra for AFGKM-type cool stars. The code is applicable to the following conditions: 2500 K ≲Teff≲\lesssim T_{\mathrm{eff}} \lesssim 8000 K, −1.0≲log⁡g≲5.5-1.0 \lesssim\log g \lesssim5.5, and −10≲[Fe/H]≲+1-10 \lesssim[\mathrm{Fe}/\mathrm{H}] \lesssim+1, following primarily the micro-physics (partition functions, atomic and molecular line lists with a given number of ions and their line data, radiative cross-sections for continuum opacities, and temperature ranges of collisional data in the NLTE atomic and molecular models). The code can directly use 3D snapshots from 3D radiation-hydrodynamics calculations of stellar models atmospheres, such as CO5BOLD, STAGGER, and M3DIS. OpenMULTI3D is also capable of solving statistical equilibrium equations and spectrum synthesis (one or more atoms and molecules in NLTE at a time) with the departure coefficient datasets (Sect. 3.4). This code is the successor of MULTI3D [96], but our code includes improved opacity calculations, updated microphysics, such as the EoS and partition functions, as well as improved interpolation and discretisation methods for solving long-characteristics radiative transfer for inclined rays. Most importantly, backward compatibility is maintained for both MULTI and MULTI3D. OpenMULTI3D also provides interfaces for interpolating in atmosphere grids, such as the MARCS grid, in order to provide customised synthetic spectral calculations (for individual values of TeffT_{\mathrm{eff}}, log⁡g\log g, [Fe/H][\mathrm{Fe}/\mathrm{H}], abundances) for realistic observed parameter space.

In this paper, we present the validation of the data products of OpenMULTI3D against the synthetic spectra, SEDs, and abundance corrections computed using other widely-used codes in the literature, such as MULTI [37], TurbospectrumNLTE v.20 [58] and MULTI3D [96]. We show that the code provides excellent agreement with previous results, if the same input physical setup is used, e.g. the same 1D HE model atmospheres, NLTE atomic models, and stellar parameters. Also we provide some examples of the 1D NLTE and 3D NLTE abundance corrections and compare them with the literature to validate the code. We find that 3D NLTE effects are important both for modelling the stellar SEDs [42, 29] and for individual spectroscopic diagnostic lines of different chemical elements [20, 24, 109, 99]. We find that, for example, for metal-poor red giant model atmospheres (Teff=5000T_{\mathrm{eff}} = 5000 K, log⁡g=2.0\log g = 2.0, [Fe/H]=−3[\mathrm{Fe}/\mathrm{H}] = -3), the 1D LTE MARCS models vastly overestimate the TeffT_{\mathrm{eff}} inferred from the Balmer lines by 300–400 K. This is consistent with previous values reported in Ludwig et al. [102] and Amarsi et al. [5]. We also show the predictions of the code in terms of stellar intensities computed for time-dependent series of 3D atmospheric cubes, and we briefly summarise the main features of these calculations. Specifically we find that for K-type giants (Teff=5000T_{\mathrm{eff}} = 5000 K, log⁡g=2.0\log g = 2.0, [Fe/H]=−3[\mathrm{Fe}/\mathrm{H}] = -3) vdopv_{\mathrm{dop}} is around 300 m s−1^{-1}, whereas for low-mass main-sequence M dwarf (Teff=4000T_{\mathrm{eff}} = 4000 K, log⁡g=4.5\log g = 4.5, [Fe/H]=0[\mathrm{Fe}/\mathrm{H}] = 0) the convective line shifts and asymmetries are much smaller in amplitude and are around 40 m s−1^{-1}. Therefore OpenMULTI3D enables comparison to time-dependent signals induced by planets or stellar activity, which are of similar amplitude [113, 114]. However, an in depth analysis of the variability of the convective signals in the here presented simulations is beyond the scope of this paper.

Data availability

The source code of OpenMULTI3D is publicly available at https://github.com/Bergemann-Group-development/dispatch.

Acknowledgements

We thank the anonymous referee for constructive comments that helped to improve the manuscript. MB, RH, and NS are supported through the Lise Meitner grant from the Max Planck Society and through the ERC grant of the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (Grant agreement No. 949173). RH thanks Bertrand Plez for patiently responding to numerous emails regarding TurbospectrumNLTE and MARCS opacities. RH implemented the OpenMULTI3D code and developed the Python package. MB initiated the study, provided project supervision, and contributed to tests, validation, and architecture of the OpenMULTI3D code, and its data products. PE contributed to the code testing, validation and provided DISPATCH stellar atmosphere snapshots. NS assisted with code testing and consistency checks with TurbospectrumNLTE through TSFitPy. AN and AP developed the DISPATCH framework and assisted with integration into the framework. JL authored the proprietary predecessor MULTI3D and accepted the public release of this latest version alongside this paper. All authors contributed to the final manuscript and approved its submission. We analysed the outputs of OpenMULTI3D using NumPy, SciPy and Astropy, and generated figures using Matplotlib. Additionally, we utilised Gemini for text editing regarding readability and style and Claude Code to help identify and resolve technical inconsistencies and bottlenecks within the codebase.

The DISPATCH framework

The DISPATCH high-performance simulation framework (Nordlund et al. [122]) utilises a task-based parallelisation scheme designed for 3D astrophysical applications. This framework organises computations, such as hydrodynamics or radiative transfer solvers, into discrete tasks.

To maintain the correct execution order, DISPATCH defines neighbour relations between these tasks. Two tasks are neighbours if the execution of one depends on the status of the other. A task becomes ready for execution once all its neighbours are ahead in time, indicating they have either finished or are scheduled for a later execution. The framework updates the time attribute of each task by adding a specific step after every execution. In this study, where the post-processing involves single frozen hydrodynamic snapshots or 1D hydrostatic atmospheres, the time attribute serves as a proxy for the number of lambda iterations.

Atmosphere interpolation

Figure A.1. Visualisation of the atmosphere interpolation routine. Each atmosphere is split in regular intervals of the horizontally averaged logarithmic electron pressure. The resulting intervals are considered as individual subregions. Each subregion finally features regular equidistant meshes.

DISPATCH is tailored for regular grids within individual subregions, but it natively handles subregions of non-uniform sizes due to its focus on adaptive mesh-refinement. To ensure sufficient sampling of photospheric layers and to homogenise various input atmospheres while meeting DISPATCH grid requirements, OpenMULTI3D processes all input atmospheres as follows:

  1. For atmospheres on an optical depth scale, χ500\chi_{500} is determined at each point using the EOS and opacity package to convert the optical depth to a height scale.

  2. The logarithmic electron pressure, log⁡(Pe)\log(P_{\mathrm{e}}), is determined using the EOS.

  3. For 3D atmospheres, the horizontal average of log⁡(Pe)\log(P_{\mathrm{e}}) is computed.

  4. The resulting 1D atmosphere is divided into NsubN_{\mathrm{sub}} equal intervals of log⁡(Pe)\log(P_{\mathrm{e}}).

  5. Height intervals corresponding to these log⁡(Pe)\log(P_{\mathrm{e}}) intervals are determined.

  6. These height intervals serve as subregion boundaries. A regular grid with a resolution of nx×ny×nz/Nsubn_x \times n_y \times n_z/N_{\mathrm{sub}} is created for each subregion, where nx,ny,nzn_x,n_y,n_z are specified as input (with nx=ny=1n_x=n_y=1 for 1D atmospheres). If nz/Nsubn_z/N_{\mathrm{sub}} is not a natural number, one or more subregions have one extra xy-plane.

  7. The original atmosphere is interpolated onto the new subregion grids using piecewise cubic monotonic Hermite interpolation.

Figure A.1 illustrates steps 4–6, where equal intervals in log⁡(Pe)\log(P_{\mathrm{e}}) are represented by blue shaded areas on the y-axis, and the resulting non-uniform height intervals are shown as grey shaded areas on the x-axis. Logarithmic electron pressure is used as a reference because it yields low resolution below the photosphere, high resolution near τ500=1\tau_{500}=1, and intermediate resolution in regions of low optical depth.

Organising NLTE radiative transfer in tasks

Figure A.2. DISPATCH patch dependencies. Arrows point towards needed patches. Circular dependencies give rise to iterations.

Consistent with other 3D NLTE spectrum synthesis codes, the stellar atmosphere is divided into multiple spatial subregions. During opacity calculations and radiative transfer, the frequency domain is further partitioned into multiple intervals. Figure A.2 illustrates the organisation of the NLTE spectrum synthesis problem into patches and their respective relationships. Within the DISPATCH context, a patch is a task associated with a specific subregion.

  • Experiment patch: This patch stores the state variables and velocities for a single subregion of the model atmosphere. Executed once at the start, it crops and interpolates data from the original model atmosphere onto a regular grid covering the subregion.

  • Composition patch: This patch handles microphysics and calculates partial pressures for all ions and molecules within the subregion defined by the Experiment patch. It also computes several frequency-independent intermediate quantities used during opacity calculations. This patch is executed once after state variables are loaded into the Experiment patch.

  • NLTE patch: This optional patch is required when employing or computing NLTE level populations. During

the first update, it either reads precomputed departure coefficients or initialises LTE populations for trace particles (atoms or molecules) specified in the input file. The patch subsequently solves the statistical equilibrium equations and updates level populations once radiative rates are determined for all frequency intervals in the subregion.

– RT patch: Two RT patches exist for each frequency interval per subregion. The UP type propagates radiation from the bottom to the top of the subregion, while the DOWN type propagates it from top to bottom. The latter is only initialised if NLTE departure coefficients are computed or if scattering is enabled. Each patch loops over the angles in a chosen quadrature and performs the following steps:

  1. Calculating continuum opacities from the opacity package.

  2. Adding line opacities from the opacity table.

  3. Adding line opacities from the line list.

  4. Adding continuum opacities from trace particles.

  5. Adding line opacities from trace particles.

  6. Solving the radiative transfer from one end of the subregion to the other.

  7. Calculating radiative transition rates for trace particles.

Steps 1 and 6 are always executed, while others are included only if the necessary input data is provided. RT patches require the prior execution of the Experiment, Composition, and optionally NLTE patches. They also connect different subregions, depending on RT patches for the same frequency interval located in the upstream direction (the UP patch below for UP patches, or the DOWN patch above for DOWN patches).

For completeness, initialising RT patches is optional; the code may also be used solely to read and process input atmosphere models, as described in the following section.

Parallelisation

OpenMULTI3D currently only uses the OpenMP (Open Multi-Processing) capabilities of DISPATCH, which also supports MPI (Message Passing Interface) parallelisation across multiple nodes. Due to the reduced accuracy losses from downsampling (see Sect. 2.8), the memory requirements are much reduced and even our largest NLTE models, for example Fe, run comfortably on a single node (see Table 5). While OpenMP allows for a shared memory layout, the code has been specifically designed to have a self-contained memory layout for each interval in the spatial-frequency domain, in case of switching to MPI later on. Global communication is only necessary for the convergence criterion. Arrays of data, needed for the radiative transfer, are only "downloaded" from the upstream neighbours of the RT patches. The only exception occurs if scattering is enabled. The mean intensity has to be stored for each spatial-frequency point. The user can decide whether to store this data on disk between iterations or keep it in memory.

TaskLaptop (M1) TimeLaptop (M1) MemoryNode (32 CPUs) TimeNode (32 CPUs) Memory
Hi-res optical 1D3.2 s0.5 GB5.0 s0.8 GB
Hi-res optical 3D——17 min28 GB
Dep. coeff. 1D (O)0.3 s0.1 GB1.3 s0.4 GB
Dep. coeff. 1D (Fe)19 s1.3 GB18 s1.8 GB
Dep. coeff. 3D (O)12 min1.5 GB6.2 min2.7 GB
Dep. coeff. 3D (Fe)——10 h39 GB

Table 5. Performance benchmarks for various synthesis tasks. Notes. Times are wall-clock times, and memory is the peak resident set size measured by the operating system.

Optimised computational framework for line opacity

The calculation of the monochromatic linear absorption coefficient χν\chi_\nu and emissivity ην\eta_\nu represents the primary computational burden in 3D NLTE spectrum synthesis with many lines. For a transition from a lower level ii to an upper level jj and under the approximation of complete redistribution, these are defined as:

χν=hν4π(niBij−njBji)ϕν(5)\chi_\nu= \frac{h\nu}{4\pi}(n_iB_{ij}-n_jB_{ji})\phi_\nu \tag*{(5)}
ην=hν4πnjAjiϕν(6)\eta_\nu= \frac{h\nu}{4\pi}n_jA_{ji}\phi_\nu \tag*{(6)}

To achieve high performance, we transform these expressions to isolate frequency-independent terms. We define a dimensionless intensity Iν=Iν/SνI_\nu=I_\nu/S_\nu, where the scaling factor Sν=2hν3/c2S_\nu=2h\nu^3/c^2 corresponds to the photo-emissive capacity. Under this scaling, the emissivity transforms to:

ην∗=ηνSν=hν4πnjBjiϕν(7)\eta_\nu^*=\frac{\eta_\nu}{S_\nu}=\frac{h\nu}{4\pi}n_jB_{ji}\phi_\nu \tag*{(7)}

where we have utilised the Einstein relation Aji=2hν3c2BjiA_{ji}=\frac{2h\nu^3}{c^2}B_{ji}. The factor SνS_\nu is eventually multiplied to the final output spectrum. Incorporating the departure coefficients bi=ni/niLTEb_i=n_i/n_i^{\mathrm{LTE}} and the Boltzmann factor βν=exp⁡(−hν/kT)\beta_\nu=\exp(-h\nu/kT), we may reformulate

χν=hν4πϕνniLTEBij(bi−βνbj)(8)\chi_\nu=\frac{h\nu}{4\pi}\phi_\nu n_i^{\mathrm{LTE}}B_{ij}(b_i-\beta_\nu b_j) \tag*{(8)}
ην∗=hν4πϕνniLTEBijβνbj,(9)\eta_\nu^*=\frac{h\nu}{4\pi}\phi_\nu n_i^{\mathrm{LTE}}B_{ij}\beta_\nu b_j, \tag*{(9)}

where we have made use of the relation of the LTE populations

[njni]LTE=gjgiβν=BijBjiβν.(10)\left[\frac{n_j}{n_i}\right]^{\mathrm{LTE}}=\frac{g_j}{g_i}\beta_\nu=\frac{B_{ij}}{B_{ji}}\beta_\nu. \tag*{(10)}

Separation of variables

The normalised Voigt profile ϕν\phi_\nu is typically expressed as:

ϕν=1πΔνDH(a,v)(11)\phi_\nu=\frac{1}{\sqrt{\pi}\Delta\nu_D}H(a,v) \tag*{(11)}

where the Doppler width ΔνD\Delta\nu_D and the dimensionless frequency v=(ν−ν0)/ΔνDv=(\nu-\nu_0)/\Delta\nu_D vary spatially. We introduce the dimensionless inverse Doppler width, WD=ν0/ΔνDW_D=\nu_0/\Delta\nu_D. This is very convenient as WDW_D is only isotope dependent, hence can be computed once in the outermost loop. By defining scaled Einstein coefficients Bij∗=h4πBijB_{ij}^*=\frac{h}{4\pi}B_{ij}, we define a line-specific opacity kernel Kij\mathcal{K}_{ij} at each spatial point:

Kij=niLTEBij∗WD(12)\mathcal{K}_{ij}=n_i^{\mathrm{LTE}}B_{ij}^*W_D \tag*{(12)}

This kernel represents the integrated opacity of the line in LTE, scaled by the Doppler factor. Here we have replaced ν\nu by ν0\nu_0, which is a perfectly reasonable approximation for the small wavelength windows covered by each line. Then we define the pre-factors:

Uij=Kijbi(13)\mathcal{U}_{ij}=\mathcal{K}_{ij}b_i \tag*{(13)}
Uji=Kijbj(14)\mathcal{U}_{ji}=\mathcal{K}_{ij}b_j \tag*{(14)}

Inner loop minimisation

The innermost loop over frequency ν\nu now computes the reduced variables χ^\hat{\chi} and η^\hat{\eta}:

χ^ν=∑isotopes∑linesUijH∗(a,v)(15)\hat{\chi}_\nu=\sum_{\mathrm{isotopes}}\sum_{\mathrm{lines}}\mathcal{U}_{ij}H^*(a,v) \tag*{(15)}
η^ν=∑isotopes∑linesUjiH∗(a,v)(16)\hat{\eta}_\nu=\sum_{\mathrm{isotopes}}\sum_{\mathrm{lines}}\mathcal{U}_{ji}H^*(a,v) \tag*{(16)}

where H∗(a,v)=H(a,v)/πH^*(a,v)=H(a,v)/\sqrt{\pi}. The physical coefficients are recovered via a final frequency-dependent correction to account for stimulated emission:

ην∗=η^νβν(17)\eta_\nu^*=\hat{\eta}_\nu\beta_\nu \tag*{(17)}
χν=χ^ν−ην∗(18)\chi_\nu=\hat{\chi}_\nu-\eta_\nu^* \tag*{(18)}

This formulation ensures that the transcendental Voigt function is only multiplied by two pre-calculated scalars per frequency point, and the frequency-dependent exponential βν\beta_\nu is applied only once to the sum of all lines, rather than per line.

Code validation

NLTE comparison with MULTI

speciesλ0\lambda_0 [Å]EiE_i [eV]log⁡10(gf)\log_{10}(gf)γvdw\gamma_{\mathrm{vdw}}γrad\gamma_{\mathrm{rad}}
Mg I4571.100.00-5.397222.2536.70e+02
Mg I4702.994.35-0.4562806.2695.01e+08
Mg I5172.682.71-0.363729.2389.77e+07
Mg I5183.602.71-0.168729.2389.77e+07
Mg I5528.424.35-0.5471461.3105.25e+08
Fe I4235.942.43-0.247739.2401.51e+08
Fe I4250.791.56-0.591310.2629.12e+07
Fe I5269.540.86-1.060237.2491.51e+07
O I6300.300.00-9.7201.02.110e-05
O I7771.949.150.369453.2343.890e+07
O I7775.399.150.002453.2343.890e+07

Table C.1. Atomic data for the Mg, Fe and O lines used in the model atoms for the code validation.

Notes. Van der Waals damping coefficients γvdw\gamma_{\mathrm{vdw}} of order unity refer to scaling factors of the Unsöld [153] recipe, while the other values correspond to the recipe from Barklem et al. [12].

We compare NLTE effects predicted by MULTI (version 2.3) and OpenMULTI3D for three Mg I lines in a metal-poor red giant (Teff=5000T_{\mathrm{eff}} = 5000 K, log⁡g=2.0\log g = 2.0, [Fe/H] = −3-3) and three Fe I lines in a metal-poor turn-off star (Teff=6500T_{\mathrm{eff}} = 6500 K, log⁡g=4.0\log g = 4.0, [Fe/H] = −3-3). The resulting 1D LTE and 1D NLTE line profiles are presented in Fig. C.1. We selected these specific elements as the Mg I model from Bergemann et al. [20], containing 86 energy levels and 327 transitions, corresponds to one of our smaller NLTE models, while the Fe I & II model from Bergemann et al. [26], having 607 energy levels and 13 241 transitions, is our largest atomic NLTE model. Our line and atmosphere selection is based on previous high-resolution studies of abundances of Galactic stars [26, 20]. The three Fe I lines were chosen as they are observable in spectra of metal-poor stars of turn-off, RGB and red supergiant type (e.g. Table A1 in Bergemann et al. [26]). The same holds for the selected Mg I lines (e.g. Table 5 in Bergemann et al. [20]). The Mg lines are shown for a representative metal-poor RGB model, while the Fe lines are displayed for a metal-poor turn-off star. The OpenMULTI3D configuration was carefully matched to the MULTI setup, meaning that outdated atomic and molecular data have been used in this comparison.

In all cases, the agreement between the two codes is excellent. Any residual differences are negligible and remain well within the expected numerical precision of the radiative transfer calculations. These results demonstrate that OpenMULTI3D reproduces the NLTE line formation predicted by MULTI with high fidelity across different stellar parameters and atomic species.

3D NLTE comparison with MULTI3D

During our code validation we have identified three issues with the original MULTI3D code.

  1. When downsampling the full-resolution snapshots, the implemented interpolation routine is fixed to match the first and last point along each dimension. This is counterproductive in the case of periodic boundary conditions in the horizontal as downsampling from 240 to 120 points along the x or y directions does not simply probe every 2nd point for regularly spaced grids. Instead the new spacing is slightly larger than double the original spacing as it always includes the last point. This introduces artefacts at the horizontal boundaries as the first and last point are incorrectly assumed to have the same spacing as the other points after downsampling. The correct approach is to fix the first point and determine the position of the last point from the new spacing which is consistent across the boundary.

  1. The temperature, mass density and electron density are interpolated linearly onto the downsampled grid. This tends to overestimate the interpolated densities and defeats the purpose of using a non-linear formal radiative transfer solver. Instead we propose to use higher-order interpolation in logarithmic quantities as is done during the hydrodynamic simulations themselves [e.g. 147].

  1. The horizontal velocities are incorrectly flipped when being projected onto the direction of the photon path for outgoing rays. This results in the interpolations and the projection of the velocities to the photon path using inconsistent angles with respect to one another. This inconsistency, however, only produces subtle errors in the flux line profiles, therefore it most likely did not affect previous abundance calculations noticeably.

Figure C.2 presents the comparison of 3D LTE and 3D NLTE line profiles computed with OpenMULTI3D and MULTI3D, after fixing 1 and 3 of the aforementioned issues, for three Mg I lines and three O I lines. For the Mg I lines we reuse the same stellar parameters for a typical metal-poor red giant as before while for the O I line we have chosen a solar atmosphere model. In both cases we employ a single STAGGER snapshot as the STAGGER format is natively supported by both codes.

The presented spectral lines have been computed with a downsampled snapshot resolution of 80×80×23080 \times80 \times230 spatial points. This is the recommended resolution by the STAGGER community as it provides an optimal trade-off between computational efficiency and precision in the normalised line flux Rodríguez Díaz et al. [135], assuming one does not pre-tilt the atmospheres. We further use the Carlsson A4 angle quadrature (12 rays per hemisphere) for the short-characteristics solver, which is the default setting in MULTI3D, and choose a Lobatto quadrature with 4 inclinations and 4 azimuthal directions (13 rays per hemisphere) for the long-characteristics solver which is a common choice in 3D NLTE spectrum synthesis [23]. The results from each code agree well across both stellar types. As in Sect. C.1, this test has been carried out by matching the OpenMULTI3D inputs to the MULTI3D inputs, meaning that outdated atomic and molecular data have been used.

SED comparison with TurbospectrumNLTE

Figure C.3 compares the 1D LTE spectral energy distributions computed with OpenMULTI3D and TurbospectrumNLTE over the wavelength range 3000 Å to 20 000 Å. The comparison is shown for the stellar model atmospheres from Table 4, including a typical M dwarf, a metal-poor red giant, and a red supergiant. The spectra are overplotted after convolution to a resolving power of R=100R = 100 to enable an easier visual comparison between both codes.

The 1D LTE SEDs computed with TurbospectrumNLTE and OpenMULTI3D are in excellent agreement across the full spectral range. The overall continuum shapes, as well as the detailed structure of molecular and atomic features, are reproduced consistently by both codes. The level of agreement confirms the consistency of the radiative transfer implementation, line list, and continuous opacity treatment in OpenMULTI3D relative to TurbospectrumNLTE.

Figure C.1. NLTE Mg and Fe line profile test calculations using 1D MARCS atmospheres comparing MULTI (version 2.3) and OpenMULTI3D with matching settings. The extra line blend in the right wing of the bottom centre panel does not show up in the MULTI 2.3 results, as it does not take into account overlapping lines.

Figure C.2. 3D NLTE O and Mg line profile test calculations using 3D STAGGER atmospheres comparing MULTI3D and OpenMULTI3D with matching settings.

speciesλ0\lambda_0 [Å]EiE_i [eV]log⁡(gf)\log(gf)
CH4218.710.413-1.315
4218.730.413-1.337
4218.741.484-4.377
4218.780.413-3.410
Ca I6162.171.899-0.170
Fe I6151.622.176-3.295
6151.695.012-3.761
Fe II4923.922.891-1.260
Mg I5528.404.346-0.547
Na I5889.950.0000.108
Ni I6767.771.826-2.140
O I7774.179.1460.203
Ti II5336.791.582-1.600

Table C.2. Optical benchmark lines used in the projection scheme validation.

Figure C.3. Line list test calculation of a typical M dwarf, metal-poor red giant and red supergiant computed in 1D LTE using OpenMULTI3D and TurbospectrumNLTE. Grey lines in the background show the raw fluxes from OpenMULTI3D, while the solid black shows the same flux, but convolved to a resolution of R=100R = 100. The dashed red line shows the analogous TurbospectrumNLTE result.

Line damping recipes

Currently supported broadening mechanisms cover radiative broadening, Stark broadening and pressure broadening from collisions with neutral hydrogen (van der Waals broadening). The normalised Voigt profile ϕν\phi_\nu is typically expressed as:

ϕν=1πΔνDH(a,v),(19)\phi_\nu= \frac{1}{\sqrt{\pi}\Delta\nu_{\mathrm{D}}}H(a,v), \tag*{(19)}

where H is the Voigt function and Doppler width ΔνD\Delta\nu_{\mathrm{D}} and damping parameter aa are given by

ΔνD=ν0c2kTm+vmic2(20)\Delta\nu_{\mathrm{D}} = \frac{\nu_0}{c}\sqrt{\frac{2kT}{m}+v_{\mathrm{mic}}^2} \tag*{(20)}
a=14πΔνD(Γradiative+Γvdw+Γstark).(21)a = \frac{1}{4\pi\Delta\nu_{\mathrm{D}}}\left(\Gamma_{\mathrm{radiative}}+\Gamma_{\mathrm{vdw}}+\Gamma_{\mathrm{stark}}\right). \tag*{(21)}

The widths Γradiative\Gamma_{\mathrm{radiative}}, Γvdw\Gamma_{\mathrm{vdw}} and Γstark\Gamma_{\mathrm{stark}} in Eq. (D.3) are full widths at half maximum in angular frequency (rad s−1\mathrm{rad}\ \mathrm{s}^{-1}). They are evaluated in every grid cell from the local temperature TT, electron number density NeN_{\mathrm{e}} and number density of neutral hydrogen NH IN_{\mathrm{H\,I}}. The van der Waals broadening is due to collisions with neutral hydrogen atoms and Stark broadening is due to electron impacts. Each line list record carries three broadening entries, γrad\gamma_{\mathrm{rad}}, γvdw\gamma_{\mathrm{vdw}} and γstk\gamma_{\mathrm{stk}} (Table 2). The value of each entry selects the recipe in Table D.1 that converts it into the corresponding Γ\Gamma, so that line lists from different sources can be combined without conversion. The same recipes apply to the bound-bound transitions of the model atoms.

For γrad=0\gamma_{\mathrm{rad}}=0 we adopt the estimate of Wheeler et al. [160], gjAjig_jA_{ji}, which requires only gifijg_if_{ij}. TurbospectrumNLTE divides it by the statistical weight gjg_j of the upper level, giving AjiA_{ji}. Both forms are rough lower limits, since the radiative width is the sum of the radiative decay rates out of both levels, and most line lists do provide γrad\gamma_{\mathrm{rad}}. As this estimate would be the only use of gjg_j in the line opacity calculation, we have decided to adopt the Wheeler et al. [160] approach and kept gjg_j out of the line list format.

EntryMeaning of the entryWidthReference
Radiative broadening
γrad>0\gamma_{\mathrm{rad}} > 0radiative damping rate Γradiative\Gamma_{\mathrm{radiative}} in rad s−1^{-1}γrad\gamma_{\mathrm{rad}}
γrad=0\gamma_{\mathrm{rad}} = 0classical estimate8π2e2v02gifij/(mec3)=gjAji8\pi^{2}e^{2}v_{0}^{2}g_{i}f_{ij}/(m_{\mathrm{e}}c^{3}) = g_{j}A_{ji}Wheeler et al. [160]
van der Waals broadening
γvdw≥20\gamma_{\mathrm{vdw}} \ge20packed σ.α\sigma.\alphaa,bNH I 2Kα v0 σ (vˉ/v0)1−αN_{\mathrm{H\,I}}\,2K_{\alpha}\,v_{0}\,\sigma\,(\bar{v}/v_{0})^{1-\alpha}Barklem et al. [12]
0<γvdw<200 < \gamma_{\mathrm{vdw}} < 20Unsöld enhancement factora,c, dimensionlessNH I γvdw 17C62/5 vˉ3/5N_{\mathrm{H\,I}}\,\gamma_{\mathrm{vdw}}\,17C_{6}^{2/5}\,\bar{v}^{3/5}Unsöld [153]
−20≤γvdw<0-20 \le\gamma_{\mathrm{vdw}} < 0log⁡10(Γvdw/NH I)\log_{10}(\Gamma_{\mathrm{vdw}}/N_{\mathrm{H\,I}}) at 10410^{4} Kf, with Γvdw/NH I\Gamma_{\mathrm{vdw}}/N_{\mathrm{H\,I}} in rad cm3^{3} s−1^{-1}NH I 10γvdw(T/104 K)0.3N_{\mathrm{H\,I}}\,10^{\gamma_{\mathrm{vdw}}}(T/10^{4}\,\mathrm{K})^{0.3}Unsöld [153]
γvdw<−20\gamma_{\mathrm{vdw}} < -20log⁡10C6\log_{10}C_{6}a, with C6C_{6} in cm6^{6} s−1^{-1}NH I 17C62/5 vˉ3/5N_{\mathrm{H\,I}}\,17C_{6}^{2/5}\,\bar{v}^{3/5}Unsöld [153], Gray [64]
γvdw=0\gamma_{\mathrm{vdw}} = 0–0
Quadratic Stark broadening
γstk>0\gamma_{\mathrm{stk}} > 0Γstark/Ne\Gamma_{\mathrm{stark}}/N_{\mathrm{e}} in rad cm3^{3} s−1^{-1}Ne γstkN_{\mathrm{e}}\,\gamma_{\mathrm{stk}}
−10≤γstk<0-10 \le\gamma_{\mathrm{stk}} < 0log⁡10(Γstark/Ne)\log_{10}(\Gamma_{\mathrm{stark}}/N_{\mathrm{e}}) at 10410^{4} Kf, with Γstark/Ne\Gamma_{\mathrm{stark}}/N_{\mathrm{e}} in rad cm3^{3} s−1^{-1}Ne 10γstk(T/104 K)1/6N_{\mathrm{e}}\,10^{\gamma_{\mathrm{stk}}}(T/10^{4}\,\mathrm{K})^{1/6}Unsöld [153]
γstk<−10\gamma_{\mathrm{stk}} < -10log⁡10C4\log_{10}C_{4}d, with C4C_{4} in cm4^{4} s−1^{-1}Ne 39 ve1/3 C42/3N_{\mathrm{e}}\,39\,v_{\mathrm{e}}^{1/3}\,C_{4}^{2/3}Unsöld [153], Gray [64]
γstk=0\gamma_{\mathrm{stk}} = 0Cowley approximationeNe cZ (n∗)4N_{\mathrm{e}}\,c_{Z}\,(n^{*})^{4}Cowley [40]

Table D.1. Damping recipes for metal and molecular lines.

Notes. The recipe is selected by the value of the line list entries γrad\gamma_{\mathrm{rad}}, γvdw\gamma_{\mathrm{vdw}} and γstk\gamma_{\mathrm{stk}}. Units are CGS and energies are in eV. All widths Γ\Gamma are full widths at half maximum in rad s−1^{-1}, and the number densities NH IN_{\mathrm{H\,I}} and NeN_{\mathrm{e}} are in cm−3^{-3}. EiE_{i} and EjE_{j} are the excitation energies of the lower and upper level, EionE_{\mathrm{ion}} is the ionisation energy of the absorbing species and ZZ its ionisation stage (Z=1Z = 1 for neutral atoms). (a) vˉ=[8kT/π (1/mH+1/m)]1/2\bar{v} = [8kT/\pi\,(1/m_{\mathrm{H}} + 1/m)]^{1/2} is the mean relative speed of a hydrogen atom and the absorber of mass mm. (b) The integer part is the cross-section σ\sigma in units of a02a_{0}^{2} and the fractional part the velocity exponent α\alpha, with Kα=(4/π)α/2 Γ(2−α/2)K_{\alpha} = (4/\pi)^{\alpha/2}\,\Gamma(2 - \alpha/2), where Γ(x)\Gamma(x) denotes the gamma function, and v0=104v_{0} = 10^{4} m s−1^{-1}. (c) C6=CUZ2[(Eion−Ej)−2−(Eion−Ei)−2]C_{6} = C_{\mathrm{U}}Z^{2}[(E_{\mathrm{ion}}-E_{j})^{-2}-(E_{\mathrm{ion}}-E_{i})^{-2}] with CU=3.22×10−31C_{\mathrm{U}} = 3.22 \times10^{-31} cm6^{6} s−1^{-1} eV2^{2}. (d) ve=(8kT/πme)1/2v_{\mathrm{e}} = (8kT/\pi m_{\mathrm{e}})^{1/2} is the mean electron speed. (e) n∗=Z [EH/(Eion−Ej)]1/2n^{*} = Z\,[E_{\mathrm{H}}/(E_{\mathrm{ion}}-E_{j})]^{1/2} is the effective principal quantum number of the upper level, with EH=13.6E_{\mathrm{H}} = 13.6 eV. The coefficient cZ=2.26×10−7c_{Z} = 2.26 \times10^{-7} rad cm3^{3} s−1^{-1} for Z=1Z = 1 and cZ=5.42×10−7c_{Z} = 5.42 \times10^{-7} rad cm3^{3} s−1(Z+1)−2^{-1}(Z + 1)^{-2} for Z>1Z > 1 follows from Cowley [40] evaluated at 10410^{4} K, which he recommends using at all temperatures. Γstark=0\Gamma_{\mathrm{stark}} = 0 for Ei≥EionE_{i} \ge E_{\mathrm{ion}}. (f) The temperature scaling follows from the impact widths Γvdw∝vˉ3/5\Gamma_{\mathrm{vdw}} \propto\bar{v}^{3/5} and Γstark∝ve1/3\Gamma_{\mathrm{stark}} \propto v_{\mathrm{e}}^{1/3} [153].

References

  1. [1]Ali, A. W. & Griem, H. R. 1966, Physical Review, 144, 366
  2. [2]Allende Prieto, C., Lambert, D. L., Tull, R. G., & MacQueen, P. J. 2002, ApJ, 566, L93
  3. [3]Amarsi, A. M. & Asplund, M. 2017, MNRAS, 464, 264
  4. [4]Amarsi, A. M., Barklem, P. S., Collet, R., Grevesse, N., & Asplund, M. 2019, A&A, 624, A111
  5. [5]Amarsi, A. M., Nordlander, T., Barklem, P. S., et al. 2018, A&A, 615, A139
  6. [6]Appel, S., Bagdasarian, Z., Basilico, D., et al. 2022, Phys. Rev. Lett., 129, 25701
  7. [7]Asplund, M., Grevesse, N., & Sauval, A. J. 2005, in Astronomical Society of the Pacific Conference Series, Vol. 336, Cosmic Abundances as Records of Stellar Evolution and Nucleosynthesis, ed. T. G. Barnes, III & F. N. Bash, 25
  8. [8]Asplund, M., Grevesse, N., Sauval, A. J., & Scott, P. 2009, ARA&A, 47, 481
  9. [9]Barber, R. J., Tennyson, J., Harris, G. J., & Tolchenov, R. N. 2006, MNRAS, 368, 1087
  10. [10]Barklem, P. & Piskunov, N. 2016, hlinop: April 2016 releaseDOI
  11. [11]Barklem, P. S. & Collet, R. 2016, A&A, 588, A96
  12. [12]Barklem, P. S., Piskunov, N., & O’Mara, B. J. 2000, A&AS, 142, 467
  13. [13]Basilico, D., Bellini, G., Benziger, J., et al. 2023, Phys. Rev. D, 108, 102005
  14. [14]Bell, K. L. & Berrington, K. A. 1987, Journal of Physics B Atomic Molecular Physics, 20, 801
  15. [15]Belyaev, A. K., Yakovleva, S. A., & Barklem, P. S. 2014, A&A, 572, A103
  16. [16]Bensby, T., Bergemann, M., Ryabizki, J., et al. 2019, The Messenger, 175, 35
  17. [17]Bergemann, M. 2011, MNRAS, 413, 2184
  18. [18]Bergemann, M., Bensby, T., Gerber, J., et al. 2026a, A&A, in press
  19. [19]Bergemann, M. & Cescutti, G. 2010, A&A, 522, A9
  20. [20]Bergemann, M., Collet, R., Amarsi, A. M., et al. 2017, ApJ, 847, 15
  21. [21]Bergemann, M., Gallagher, A. J., Eitner, P., et al. 2019, A&A, 631, A80
  22. [22]Bergemann, M., Hansen, C. J., Bautista, M., & Ruchti, G. 2012a, A&A, 546, A90
  23. [23]Bergemann, M. & Hoppe, R. 2026, Living Reviews in Computational Astrophysics, 12, 7
  24. [24]Bergemann, M., Hoppe, R., Semenova, E., et al. 2021, MNRAS, 508, 2236
  25. [25]Bergemann, M., Kudritzki, R.-P., W ürl, M., et al. 2013, ApJ, 764, 115
  26. [26]Bergemann, M., Lind, K., Collet, R., Magic, Z., & Asplund, M. 2012b, MNRAS, 427, 27
  27. [27]Bergemann, M., Lodders, K., & Palme, H. 2026b, in Encyclopedia of Astrophysics, Volume 2, Vol. 2, 387–418
  28. [28]Bergemann, M., Pickering, J. C., & Gehren, T. 2010, MNRAS, 401, 1334
  29. [29]Bonifacio, P., Caffau, E., Ludwig, H.-G., et al. 2018, A&A, 611, A68
  30. [30]Borysow, A., Jorgensen, U. G., & Fu, Y. 2001, J. Quant. Spectr. Rad. Transf., 68, 235
  31. [31]Buder, S., Kos, J., Wang, X. E., et al. 2025, PASA, 42, e051
  32. [32]Bues, I. & Wehrse, R. 1976, A&A, 51, 461
  33. [33]Burrows, A., Ram, R. S., Bernath, P., Sharp, C. M., & Milsom, J. A. 2002, ApJ, 577, 986
  34. [34]Cami, J., Sloan, G. C., Marwick-Kemper, A. J., et al. 2009, ApJ, 690, L122
  35. [35]Canocchi, G., Lind, K., Lagae, C., et al. 2024a, A&A, 683, A242
  36. [37]Carlsson, M. 1986, Uppsalа Astronomical Observatory Reports, 33
  37. [38]Christensen-Dalsgaard, J. 2004, Sol. Phys., 220, 137
  38. [39]Collet, R., Asplund, M., & Trampedach, R. 2007, A&A, 469, 687
  39. [40]Cowley, C. R. 1971, The Observatory, 91, 139
  40. [41]Dalgarno, A. & Williams, D. A. 1962, ApJ, 136, 690
  41. [42]Davies, B., Kudritzki, R.-P., Plez, B., et al. 2013, ApJ, 767, 3
  42. [43]Doyle, R. 1968, J. Quant. Spectr. Rad. Transf., 8, 1555
  43. [44]Dravins, D. 2008, A&A, 492, 199
  44. [45]Dravins, D. & Ludwig, H.-G. 2026, in IAU Symposium, Vol. 400, Solar and Stellar Multi-scale Activity, ed. S. Vargas-Domínguez & J. C. Buitrago-Casas (CUP), 18–25
  45. [46]Dravins, D., Ludwig, H.-G., Dahlén, E., & Pazira, H. 2017a, A&A, 605, A90
  46. [48]Dravins, D., Ludwig, H.-G., & Freytag, B. 2021, A&A, 649, A17
  47. [49]Dravins, D. & Nordlund, Å. 1990, A&A, 228, 184
  48. [50]Eitner, P., Bergemann, M., Hoppe, R., et al. 2024, A&A, 688, A52
  49. [51]Eitner, P., Bergemann, M., Hoppe, R., et al. 2025, A&A, 703, A199
  50. [52]Espinoza, N. & Jordán, A. 2016, MNRAS, 457, 3573
  51. [53]Ezzeddine, R., Merle, T., Plez, B., et al. 2018, A&A, 618, A141
  52. [54]Freytag, B., Steffen, M., Ludwig, H. G., et al. 2012, Journal of Computational Physics, 231, 919
  53. [55]Frutiger, C., Solanki, S. K., & Mathys, G. 2005, A&A, 444, 549
  54. [56]Gallagher, A. J., Bergemann, M., Collet, R., et al. 2020, A&A, 634, A55
  55. [57]Gehren, T., Shi, J. R., Zhang, H. W., Zhao, G., & Korn, A. J. 2006, A&A, 451, 1065
  56. [58]Gerber, J. M., Magg, E., Plez, B., et al. 2023, A&A, 669, A43
  57. [60]Goldman, A., Schoenfeld, W. G., Goorvitch, D., et al. 1998, J. Quant. Spectr. Rad. Transf., 59, 453
  58. [61]Gonzalez-Garcia, M. C., Maltoni, M., Pinheiro, J. P., & Serenelli, A. M. 2024, Journal of High Energy Physics, 2024, 64
  59. [62]Goorvitch, D. 1994, ApJS, 95, 535
  60. [63]Gordon, I. E., Rothman, L. S., Hill, C., et al. 2017, J. Quant. Spectr. Rad. Transf., 203, 3
  61. [64]Gray, D. F. 2005, The Observation and Analysis of Stellar Photospheres, 3rd edn. (Cambridge, UK: Cambridge University Press)
  62. [65]Grevesse, N. & Sauval, A. J. 1998, Space Sci. Rev., 85, 161
  63. [66]Grupp, F. 2004a, A&A, 420, 289
  64. [68]Gustafsson, B., Bell, R. A., Eriksson, K., & Nordlund, A. 1975, A&A, 42, 407
  65. [69]Gustafsson, B., Edvardsson, B., Eriksson, K., et al. 2008, A&A, 486, 951
  66. [70]Gustafsson, M. & Frommhold, L. 2001, ApJ, 546, 1168
  67. [71]Gustafsson, M. & Frommhold, L. 2003, A&A, 400, 1161
  68. [72]Hauschildt, P. H. & Baron, E. 2014, A&A, 566, A89
  69. [73]Hayek, W., Asplund, M., Collet, R., & Nordlund, Å. 2011, A&A, 529, A158
  70. [74]Hedrosa, R. P., Abia, C., Busso, M., et al. 2013, ApJ, 768, L11
  71. [75]Hoppe, R., Bergemann, M., Eitner, P., et al. 2026, MNRAS, 546, staf2085
  72. [76]Hubeny, I., Allende Prieto, C., Osorio, Y., & Lanz, T. 2021, arXiv e-prints, arXiv:2104.02829arxiv.org/abs/2104.02829
  73. [77]Hummer, D. G. & Mihalas, D. 1988, ApJ, 331, 794
  74. [78]Irwin, A. W. 1981, ApJS, 45, 621
  75. [79]Irwin, A. W. 1988, A&AS, 74, 145
  76. [80]Jofré, P., Heiter, U., & Soubiran, C. 2019, ARA&A, 57, 571
  77. [83]John, T. L. 1994, MNRAS, 269, 871
  78. [84]Jones, H. P. 1973, ApJ, 185, 183
  79. [85]Jones, H. P. & Skumanich, A. 1973, ApJ, 185, 167
  80. [86]Jørgensen, U. G., Hammer, D., Borysow, A., & Falkesgaard, J. 2000, A&A, 361, 283
  81. [87]Karzas, W. J. & Latter, R. 1961, ApJS, 6, 167
  82. [88]Klevas, J., Kučinskas, J., Steffen, M., Caffau, E., & Ludwig, H.-G. 2016, A&A, 586, A156
  83. [89]Korn, A. J., Shi, J., & Gehren, T. 2003, A&A, 407, 691
  84. [90]Kunasz, P. & Auer, L. H. 1988, J. Quant. Spectr. Rad. Transf., 39, 67
  85. [91]Kupka, F. G., Ryabchikova, T. A., Piskunov, N. E., Stempels, H. C., & Weiss, W. W. 2000, Baltic Astronomy, 9, 590
  86. [92]Kurucz, R. L. 1970, SAO Special Report, 309
  87. [93]Kurucz, R. L. 2011, Canadian Journal of Physics, 89, 417
  88. [94]Kurucz, R. L., van Dishoeck, E. F., & Tarafdar, S. P. 1987, ApJ, 322, 992
  89. [95]Langhoff, S. R. & Bauschlicher, Jr., C. W. 1993, Chemical Physics Letters, 211, 305
  90. [96]Leenaarts, J. & Carlsson, M. 2009, in Astronomical Society of the Pacific Conference Series, Vol. 415, The Second Hinode Science Meeting: Beyond Discovery-Toward Understanding, ed. B. Lites, M. Cheung, T. Magara, J. Mariska, & K. Reeve, 87
  91. [97]Lemke, M. 1997, A&AS, 122, 285
  92. [99]Lind, K. & Amarsi, A. M. 2024, ARA&A, 62, 475
  93. [100]Lind, K., Nordlander, T., Wehrhahn, A., et al. 2022, A&A, 665, A33
  94. [102]Ludwig, H.-G., Behara, N. T., Steffen, M., & Bonifacio, P. 2009, A&A, 502, L1
  95. [103]Magg, E., Bergemann, M., Serenelli, A., et al. 2022, A&A, 661, A140
  96. [104]Magic, Z., Collet, R., Asplund, M., et al. 2013, A&A, 557, A26
  97. [105]Mashonkina, L. 2013, A&A, 550, A28
  98. [106]Mashonkina, L., Korn, A. J., & Przybilla, N. 2007, A&A, 461, 261
  99. [107]Mashonkina, L., Zhao, G., Gehren, T., et al. 2008, A&A, 478, 529
  100. [108]Masseron, T., Plez, B., Van Eck, S., et al. 2014, A&A, 571, A47
  101. [109]Matsuno, T., Amarsi, A. M., Carlos, M., & Nissen, P. E. 2024, A&A, 688, A72
  102. [110]Maxted, P. F. 2018, A&A, 616, A39
  103. [111]McLaughlin, B. M., Stancil, P. C., Sadeghpour, H. R., & Forrey, R. C. 2017, Journal of Physics B Atomic Molecular Physics, 50, 114001
  104. [112]Mészáros, S., Allende Prieto, C., Edvardsson, B., et al. 2012, AJ, 144, 120
  105. [113]Meunier, N., Desort, M., & Lagrange, A.-M. 2010, A&A, 512, A39
  106. [114]Meunier, N., Lagrange, A.-M., Borgniet, S., & Rieutord, M. 2015, A&A, 583, A118
  107. [115]Meunier, N., Mignon, L., & Lagrange, A. M. 2017, A&A, 607, A124
  108. [116]Mihalas, D. 1965, ApJS, 9, 321
  109. [117]Mihalas, D. 1978, Stellar atmospheres, 2nd edn. (San Francisco: W. H. Freeman)
  110. [118]Mihalas, D., Auer, L. H., & Mihalas, B. R. 1978, ApJ, 220, 1001
  111. [119]Ng, K.-C. 1974, J. Chem. Phys., 61, 2680
  112. [120]Nissen, P. E. & Gustafsson, B. 2018, A&A Rev., 26, 6
  113. [121]Nordlund, Å. & Dravins, D. 1990, A&A, 228, 155
  114. [122]Nordlund, Å., Ramsey, J. P., Popovas, A., & Küffmeier, M. 2018, MNRAS, 477, 624
  115. [124]Osorio, Y., Allende Prieto, C., Hubeny, I., Mészáros, S., & Shetrone, M. 2020, A&A, 637, A80
  116. [125]Osorio, Y. & Barklem, P. S. 2016, A&A, 586, A120
  117. [126]Peach, G. 1970, MNRAS, 73, 1
  118. [127]Pecaut, M. J. & Mamajek, E. E. 2013, ApJS, 208, 9
  119. [128]Peck, C. L., Criscuoli, S., & Rast, M. P. 2017, ApJ, 850, 9
  120. [129]Piskunov, N. E., Kupka, F., Ryabchikova, T. A., Weiss, W. W., & Jeffery, C. S. 1995, A&AS, 112, 525
  121. [130]Plez, B. 1998, A&A, 337, 495
  122. [131]Plez, B. 2012, Turbospectrum: Code for spectral synthesis, Astrophysics Source Code Library, record ascl:1205.004
  123. [132]Querci, F., Querci, M., & Kunde, V. G. 1971, A&A, 15, 256
  124. [133]Ramsbottom, C. A., Bell, K. L., & Berrington, K. A. 1992, Journal of Physics B Atomic Molecular Physics, 25, 1443
  125. [134]Reetz, J. K. 1991, Diploma thesis, Ludwig-Maximilians-Universität München
  126. [135]Rodríguez Díaz, L. F., Lagae, C., Amarsi, A. M., et al. 2024, A&A, 688, A212
  127. [136]Różański, T., Ting, Y.-S., & Jabłońska, M. 2025, ApJ, 980, 66
  128. [137]Rybicki, G. B. & Hummer, D. G. 1992, A&A, 262, 209
  129. [138]Schönrich, R. & Bergemann, M. 2014, MNRAS, 443, 698
  130. [139]Seaton, M. J., Yan, Y., Mihalas, D., & Pradhan, A. K. 1994, MNRAS, 266, 805
  131. [140]Semenova, E., Bergemann, M., Deal, M., et al. 2020, A&A, 643, A164
  132. [141]Serenelli, A. M., Basu, S., Ferguson, J. W., & Asplund, M. 2009, ApJ, 705, L123
  133. [142]Sheminova, V. A. 2020, Kinematics and Physical Celestial Bodies, 36, 291
  134. [143]Skory, S., Weck, P. F., Stancil, P. C., & Kirby, K. 2003, ApJS, 148, 599
  135. [144]Smiljanic, R., Korn, A. J., Bergemann, M., et al. 2014, A&A, 570, A122
  136. [145]Steffen, M., Prakapavičius, D., Caffau, E., et al. 2015, A&A, 583, A57
  137. [146]Stehlé, C. & Hutcheon, R. 1999, A&AS, 140, 93
  138. [147]Stein, R. F., Nordlund, Å., Collet, R., & Trampedach, R. 2024, ApJ, 970, 24
  139. [148]Storm, N., Barklem, P. S., Yakovleva, S. A., et al. 2024, A&A, 683, A200
  140. [149]Storm, N. & Bergemann, M. 2023, MNRAS, 525, 3718
  141. [150]Storm, N., Bergemann, M., Eitner, P., et al. 2025, MNRAS, 538, 3284
  142. [151]Storm, N., Bergemann, M., Różański, T., et al. 2026, ApJ, 1003, 27
  143. [152]Tennyson, J., Yurchenko, S. N., Zhang, J., et al. 2024, J. Quant. Spectr. Rad. Transf., 326, 109083
  144. [153]Unsöld, A. 1955, Physik der Sternatmosphären, mit besonderer Berücksichtigung der Sonne, 2nd edn. (Berlin: Springer)
  145. [154]Vidal, C. R., Cooper, J., & Smith, E. W. 1973, ApJS, 25, 37
  146. [155]Vögler, A., Bruls, J. H. M. J., & Schüssler, M. 2004, A&A, 421, 741
  147. [156]Vögler, A., Shelyag, S., Schüssler, M., et al. 2005, A&A, 429, 335
  148. [157]Voronov, Y. V., Yakovleva, S. A., & Belyaev, A. K. 2022, ApJ, 926, 173
  149. [159]Watson, D., Hansen, C. J., Selsing, J., et al. 2019, Nature, 574, 497
  150. [160]Wheeler, A. J., Abruzzo, M. W., Casey, A. R., & Ness, M. K. 2023, AJ, 165, 68
  151. [161]Yakovleva, S. A., Belyaev, A. K., & Bergemann, M. 2020, Atoms, 8, 34

Paper details

vlnc:W_64udj3wz
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Gemini (multiple versions), Claude Code

View statement
Looking for related papers…
Contents