[Wien] A question about the implementation of XSPEC
John McLeod
john.mcleod at usask.ca
Mon Sep 26 22:35:42 CEST 2011
Hello all,
In an attempt to learn more about how the WIEN2k code works, I have started by reading through the source code for XSPEC. I have also studied the paper: A. Neckel, K. Schwarz, R. Eibler, et al. Mikrochimica Acta Supplementum, 6 (1975) 257, where the algorithm for calculating XES from an APW standpoint is discussed.
I have two questions about the implementation of XSPEC, I realize that the code is rather old so these questions may seem obscure.
1. Does XSPEC use only the APW basis? In Neckel et al.'s paper the APW basis is used, and it seems like only the normalized regular solution to the radial relativistic Dirac equation (namely the quantities A and B) are used in SRC_txspec/txspec.f (returned by outwin.f at line 282 in txspec.f). If the LAPW basis was used to converge the SCF cycle, is any information lost by ignoring the derivatives of these solutions? Or due to the local nature of XES is it more correct to just use the APW basis?
2. The radial component of the transition matrix for XES is described in equation 18 of Neckel et al.'s paper as involving an r^3 term (where r is the radial distance); i.e. An r^2 term from the volume element r^2dr and an additional r term from the dipole operator. However in SRC_txspec/txspec.f on line 305 it seems to me that the radial integral is calculated (using rint13.f) by only considering the r-weighted APW and core wave functions... this only give a total of r^2. Shouldn't one of the wave functions be multiplied by an additional factor of r before passing to rint13()?
In regards to my latter question, I did modify the txspec code so that the APW wave function was multiplied by an additional factor of r prior to calling rint13(). Although I only tested this code on a limited number of cases, it seems that this factor has no effect on the spectral shape (although it does modify the absolute intensity) for K-edge spectra and has a small but possibly significant effect on L3-edge spectra (usually a relative increase in the amplitude of the spectrum at lower energies).
Thanks,
John McLeod
More information about the Wien
mailing list