A highly efficient Voigt program for line profile computation

Mofreh R. Zaghloul, Jacques Le Bourlot · 2024

Read A highly efficient Voigt program for line profile computation by Mofreh R. Zaghloul, Jacques Le Bourlot (2024) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2411-00917.txt.

Description

Abstract Evaluation of the Voigt function, a convolution of a Lorentzian and a Gaussian profile, is essential in various fields such as spectroscopy, atmospheric science, and astrophysics. Efficient computation of the function is crucial, especially in applications where the function may be called for an enormous number of times.

Catalog record

CREATORMofreh R. Zaghloul, Jacques Le Bourlot
YEAR2024
COLLECTIONPAPERS
FORMATTXT
FILE SIZE21 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2411-00917

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

A highly efficient Voigt program for line profile computation Mofreh R. Zaghloul, Jacques Le Bourlot Abstract Evaluation of the Voigt function, a convolution of a Lorentzian and a Gaussian profile, is essential in various fields such as spectroscopy, atmospheric science, and astrophysics. Efficient computation of the function is crucial, especially in applications where the function may be called for an enormous number of times. In this paper, we present a highly efficient novel algorithm and its Fortran90 implementation for the practical evaluation of the Voigt function with accuracy in the order of 10 − 6 10^{-6} . The algorithm uses improved fits based on Chebyshev subinterval polynomial approximation for functions in two variables. The algorithm significantly outperforms widely-used competitive algorithms in the literature, in terms of computational speed, making it highly suitable for real-time applications and large-scale data processing tasks. The substantial improvement in efficiency positions the present algorithm and computer code as a valuable tool in relevant scientific domains. The algorithm has been adopted and implemented in the Meudon PDR code at Paris Observatory and is recommended for similar applications and simulation packages. † † highlights: Highly efficient algorithm for evaluating the Voigt function with an accuracy of 10^{-6} . Chebyshev subinterval polynomial approximation enhances computational performance. Significant speed improvement over existing algorithms, suitable for real-time applications. Optimized for large-scale data processing. Adopted by the Meudon PDR code for its proven superior efficiency. 1 Introduction The Voigt function has broad applicability in many fields, including spectroscopy, astronomy, atmospheric science, and plasma physics (see [ 1 , 2 ] ). The function, which is the convolution of the Lorentzian and Gaussian profiles, is written mathematically as: V(x,y)=\frac{y}{\pi}\int_{-\infty}^{\infty}\frac{e^{-t^{2}}}{y^{2}+(x-t)^{2}}\,dt,\quad y>0 (1) The dimensionless variables x and y are defined in terms of the distance to line center (\nu-\nu_{0}) and of the Lorentzian and Doppler half-widths \gamma_{L} and \gamma_{D} : x=\sqrt{\ln 2}\,\frac{\nu-\nu_{0}}{\gamma_{D}},\quad y=\sqrt{\ln 2}\,\frac{\gamma_{L}}{\gamma_{D}} (2) In these equations, \nu_{0} is the frequency at the line center, and \nu is the frequency at the point of calculation. It is also easy to recognize that the function is even in x . Accurate and efficient evaluation of the Voigt function is essential for simulations and analyses in various fields. Many applications require evaluating the Voigt function over large datasets or a vast number of points making computational efficiency crucial for processing this volume within a reasonable timeframe. Moreover, in real-time data analysis or control systems, rapid evaluation of the Voigt function is necessary to deliver timely results. Efficient algorithms are also beneficial in environments with limited computational resources, such as embedded systems or mobile devices, where performance and energy consumption are critical factors. In addition to computational efficiency, considerable accuracy in evaluating the Voigt function is essential for the stability of simulations and minimizing error propagation in large-scale analyses and applications. For many practical applications in the aforementioned fields, an accuracy on the order of 10^{-5} or 10^{-6} is useful. The most efficient algorithm and computer code known to the present authors that achieves this level of accuracy is the HUMLIK code developed by [ 3 ] . This algorithm is compiled and adapted from various existing algorithms to produce a more efficient code for atmospheric line-by-line calculations. The HUMLIK code is adopted in many software packages, such as the Meudon PDR code [ 4 ] , developed at the Paris Observatory. The Meudon PDR code is used to study various interstellar environments including diffuse clouds, dark clouds, and photon-dominated regions, providing valuable insights into the physics and chemistry of these regions. The HUMLIK code builds on, and improves the methodologies used in [ 5 ] W4 and [ 6 ] CPF12 algorithms, computing the Voigt function using real arithmetic to an accuracy on the order of 10^{-6} and with greater efficiency. As mentioned above, the development of highly efficient codes for evaluating the Voigt function is driven by the need to handle the increasing volume and complexity of data in modern scientific research. The objective of the present work is to address this need by developing and introducing a highly efficient algorithm and associated Fortran90 code for evaluating the Voigt function. The present algorithm presents a significant efficiency improvement compared to the HUMLIK code while maintaining accuracy on the order of 10^{-6} . In Sect. 2 we provide a description of the proposed algorithm, highlighting the key new techniques that contribute to its superior efficiency. In Sect. 3 we present a comprehensive evaluation of the algorithm’s performance, including comparisons with Wells’ HUMLIK algorithm in terms of computational speed – CPU time – for different sets of data points. In Sect. 4 , the application of the present algorithm in modeling Photon Dominated Regions (hereafter PDR) using the so-called "Meudon PDR code" 1 1 1 Available at https://pdr.obspm.fr is described and discussed. Finally, in Sect. 5 , we conclude by summarizing our results and discussing the potential applications of our work. 2 Algorithm The Voigt function, which is the real part of the Faddeyva/Faddeeva function w(z=x+iy) , can be asymptotically approximated by a continued fraction [ 7 , 8 , 9 , 10 , 11 ] : w(z)\approx\frac{i}{\sqrt{\pi}}\,\frac{1}{z-}\,\frac{\frac{1}{2}}{z-}\,\frac{1}{z-}\frac{\frac{3}{2}}{z-}\,\frac{2}{z-}\dots (3) This continued fraction needs to be truncated at some convergent for practical evaluation. Using our recently published algorithm for calculating the Faddeyeva function to 14 significant digits [ 12 ] as a reference, we specify the regions of applicability corresponding to the number of convergents retained (up to five) for an accuracy on the order of 10^{-6} . However, since the CPU execution time increases with the number of convergents retained, we choose the minimum number necessary to achieve the specified accuracy wherever these regions overlap. The first five rows in Table 1 summarize the proposed regions of applicability and the equivalent rational approximation up to five convergents of Laplace continued fractions. Table 1: Regions of the proposed partitioning and the corresponding computational method used, where z=x+iy . Region Borders Method I (x^{2}+y^{2})\geq 1.6\times 10^{5} 1 convergent V(x,y)\approx\frac{y}{\sqrt{\pi}\,(x^{2}+y^{2})} II 1.6\times 10^{5}>(x^{2}+y^{2})\geq 510.0 2 convergents V(x,y)\approx\frac{y\,(0.5+x^{2}+y^{2})}{\sqrt{\pi}\,((x^{2}+y^{2})^{2}+y^{2}-x^{2}+0.25)} III 510.0>(x^{2}+y^{2})\geq 110.0 3 convergents 1 V(x,y)\approx\Re\left(\frac{i\,(z^{2}-1)}{z\,\sqrt{\pi}\,(z^{2}-1.5)}\right) IV 110.0>(x^{2}+y^{2})\geq 38.0 4 convergents 1,2 & y>10^{-8} V(x,y)\approx\Re\left(\frac{i\,z\,(z^{2}-2.5)}{\sqrt{\pi}\,(z^{2}\,(z^{2}-3)+0.75)}\right) V 38.0>(x^{2}+y^{2})\geq 25.0 5 convergents 1,2 & y>10^{-3} V(x,y)\approx\Re\left(\frac{i\,(z^{2}\,(z^{2}-4.5)+2.0)}{z\,\sqrt{\pi}\,(z^{2}\,(z^{2}-5.0)+3.75)}\right) VI 25>(x^{2}+y^{2})\geq 7.3916 Chebyshev subinterval & y>2\times 10^{-2} bivariate polynomial approximations 2 VII 7.3916>|z|^{2} Chebyshev subinterval bivariate polynomial approximations 1 Explicit expressions in real arithmetic are used for the real parts of the complex expressions for w(z) . 2 For the corresponding missing regions with small values of y , a few terms of the Taylor series of the Dawson integral are used to calculate the function to the sought accuracy. As shown in the table, the real part of these convergents can be used to approximate the Voigt function to an accuracy on the order of 10^{-6} for x^{2}+y^{2}\geq 25 , except for the narrow strips defined by 110>(x^{2}+y^{2})\geq 38 and y\leq 10^{-8} , and 38>(x^{2}+y^{2})\geq 25 and y\leq 10^{-3} . In these narrow strips, a few terms of the truncated Taylor series of the Dawson integral, Daw(z) (expansion near z_{0}=x ) [ 13 ] can be used, where: w\left(x+i\delta y\right)\approx e^{-\left(x+i\delta y\right)^{2}}+\frac{2i}{\sqrt{\pi}}\left[d_{0}+d_{1}\left(i\delta y\right)+d_{2}\left(i\delta y\right)^{2}+\cdots\right] (4) The expansion coefficients can be calculated recursively [ 1 , 13 ] : \displaystyle d_{0} \displaystyle=\mathrm{Daw}\left(x\right)\,;\quad d_{1}=1-2\,d_{0} \displaystyle d_{n+1}

Read the complete text