Theoretical Background
This document summarizes the conventions and equations implemented by Glassure for isotropic X-ray total-scattering data. Glassure uses the Faber–Ziman definition of the total structure factor. This convention matters for multicomponent samples, because other definitions (for example, Ashcroft–Langreth) use different partial structure factors and normalizations.
Processing overview and notation
Glassure performs the following main steps:
subtract a scaled background pattern;
normalize the corrected intensity and subtract incoherent scattering;
calculate the Faber–Ziman total structure factor \(S(Q)\);
extrapolate \(S(Q)\) to \(Q=0\) and optionally optimize it;
Fourier transform \(S(Q)\) to the reduced real-space function \(F(r)\); and
calculate \(g(r)\) and related real-space functions.
The magnitude of the scattering vector is
where \(2\theta\) is the scattering angle and \(\lambda\) is the incident X-ray wavelength. Glassure expects \(Q\) in \(\mathrm{\AA}^{-1}\) and distances in \(\mathrm{\AA}\).
The intensity supplied to the normalization routines should already contain any experiment-specific corrections that are not explicitly provided by Glassure, such as detector, polarization, absorption, and general sample-geometry corrections. The optional corrections implemented by Glassure are described below.
Atomic form factors
For a sample containing species \(i\) with atomic fractions \(c_i\), where \(\sum_i c_i=1\), Glassure calculates
and
Here \(f_i(Q)\) is the coherent atomic X-ray form factor in electron units. Notice the distinction between \(\langle f^2\rangle\) and \(\langle f\rangle^2\). The available sources provide real, neutral-atom form factors; Glassure does not currently add energy-dependent anomalous-dispersion terms \(f'\) and \(f''\).
Faber–Ziman structure factor
After normalization and incoherent-scattering subtraction, the coherent intensity per atom is related to the Faber–Ziman total structure factor by
Glassure therefore calculates
This is the normalization implemented by calculate_sq().
In the Faber–Ziman formalism, the total structure factor can be written as a weighted sum of partial structure factors:
with the ordered-pair weights
and
Equivalently, when summing only unique pairs \(i\leq j\), the weight numerator contains the factor \((2-\delta_{ij})\). For X-rays, the weights generally depend on \(Q\) because the atomic form factors depend on \(Q\).
Intensity normalization
Let \(I_{\mathrm{corr}}(Q)\) denote the background-subtracted and otherwise corrected experimental intensity in arbitrary units. Glassure provides two normalization methods.
Krogh–Moe–Norman integral normalization
The integral method uses the sum rule
For finite experimental data, Glassure applies \(A(Q)=\exp(-aQ^2)\), where \(a\) is the configured attenuation factor. The implemented normalization factor is
The numerical integrals run over the selected experimental \(Q\) range. The coherent intensity passed to the structure-factor calculation is
High-\(Q\) fit normalization
At sufficiently high \(Q\), structural oscillations become small and \(S(Q)\) tends to one. Glassure can therefore determine \(\alpha\) by fitting the measured intensity to the self-scattering plus incoherent scattering above a configured cutoff. In the most general implemented case, it minimizes residuals proportional to
where \(p=1\) or \(2\), \(m\) is an optional constant approximation to multiple scattering, and \(\beta\) scales an optional incoherent container contribution. Terms disabled in the configuration are omitted. This method depends on having a high-\(Q\) interval in which the slowly varying non-structural contributions can be separated reliably from the structural signal.
Fourier transform to real space
The reduced real-space pair-distribution function is
For measured data, Glassure evaluates the finite-range transform
after extrapolating the measured structure factor from \(Q_{\min}\) to zero.
Lorch modification function
The optional Lorch modification function is
with \(M(0)=1\) by continuity. It suppresses the discontinuity at \(Q_{\max}\) and therefore reduces termination ripples, at the cost of broader real-space peaks and reduced real-space resolution.
Glassure supports direct numerical integration and an FFT implementation. The FFT method requires uniformly spaced \(Q\) data; rebin irregularly spaced data before using it.
Real-space functions and their interpretation
Glassure defines
and hence
where \(\rho_0\) is the atomic number density in atoms/\(\mathrm{\AA}^3\).
For a single-component material, \(g(r)\) is the usual pair correlation function: it approaches zero in an excluded-volume region and approaches one at long range. For a multicomponent X-ray measurement, the total \(S(Q)\) and the derived real-space functions are scattering-weighted combinations of the partial correlations. Since the X-ray weights are \(Q\) dependent, the resulting total \(g(r)\) is not generally a simple number-weighted pair probability. Peak areas should therefore not be read as element-specific coordination numbers without partial-structure information or a structural model.
Radial distribution function
Glassure calculates
For a single-component system, integrating this function over a coordination shell gives the corresponding coordination number. For multicomponent X-ray totals it is an effective, scattering-weighted shell distribution with the caveat above.
Total correlation function
Glassure also calculates
Atomic number density
For atomic fractions \(c_i\), define the mean molar mass per atom as
The conversion from mass density \(\rho_m\) in g/cm\(^3\) to atomic number density is
where \(N_A\) is Avogadro’s constant and \(10^{-24}\) converts cm\(^{-3}\) to \(\mathrm{\AA}^{-3}\). Equivalently, for stoichiometric coefficients \(n_i\),
Structure-factor optimization
Optimization reduces slowly varying systematic errors by using the physically empty real-space region below the shortest interatomic distance. It should not be used to replace missing experimental corrections, and the cutoff must remain below the first physical pair-correlation peak.
Iterative Kaplow–Eggert method
The iterative method uses the condition \(g(r)=0\) for \(r<r_{\mathrm{cutoff}}\), or equivalently
Glassure repeatedly transforms \(S(Q)\) to \(F(r)\), back-transforms the discrepancy in the low-\(r\) interval, and updates \(S(Q)\). This reduces unphysical low-\(r\) oscillations but can also modify the structure factor if the cutoff, density, background, or correction model is inappropriate.
Polynomial fit method
The method inspired by PDFgetX3 fits a polynomial \(P_n(Q)\) through the origin to
and applies
Glassure chooses an effective degree near
and blends the fits for adjacent integer degrees when needed. The intent is to remove slowly varying reciprocal-space components whose Fourier signal is concentrated below \(r_{\mathrm{cutoff}}\), while retaining correlations at larger \(r\). This is an ad hoc correction and its stability should be checked by varying \(Q_{\max}\) and \(r_{\mathrm{cutoff}}\).
Incoherent scattering and optional corrections
Incoherent (Compton) scattering
For a mixture, Glassure uses
The default brown_hubbell source interpolates tabulated incoherent scattering
functions from Hubbell et al. (1975), together with Brown coherent form factors.
The hajdu source uses the analytic approximation
with element-specific parameters. An xraylib source is also available. The simple
expression \(Z-f^2/Z\) is only an independent-atom approximation; the incorrect
\(Z^2-f^2\) expression is not an incoherent intensity per atom.
Klein–Nishina correction
For high-energy X-rays, the optional Klein–Nishina correction accounts for photon recoil in the angular dependence of Compton scattering. Let
Glassure multiplies the incoherent scattering function by the Klein–Nishina to Thomson ratio
using \(Q=4\pi\sin\theta/\lambda\). This is distinct from the unpolarized Thomson polarization factor \((1+\cos^2 2\theta)/2\).
Soller-slit DAC correction
For the configured diamond-anvil-cell workflow, Glassure can apply separate angle-dependent transfer functions for scattering from the sample region and the additional diamond incoherent contribution. This correction is specific to the implemented DAC/Soller-slit geometry and is not a general absorption or geometry correction.
Extrapolation to \(Q=0\)
Because measurements normally begin at finite \(Q_{\min}\), Glassure supports:
a step extension at the target \(S(0)\);
a linear connection to \(S(0)\);
a polynomial extrapolation over a configurable overlap; and
a spline extrapolation over a configurable overlap.
Unless ExtrapolationConfig.s0 is set explicitly, these methods use the default
boundary value described above. Polynomial and spline extrapolations can optionally
replace measured points in the overlap region.
References
Faber, T. E., & Ziman, J. M. (1965). A theory of the electrical properties of liquid metals. III. The resistivity of binary alloys. Philosophical Magazine, 11(109), 153–173. https://doi.org/10.1080/14786436508211931
Krogh-Moe, J. (1956). A method for converting experimental X-ray intensities to an absolute scale. Acta Crystallographica, 9, 951–953. https://doi.org/10.1107/S0365110X56002655
Norman, N. (1957). The Fourier transform method for normalizing intensities. Acta Crystallographica, 10, 370–373. https://doi.org/10.1107/S0365110X57001085
Lorch, E. (1969). Neutron diffraction by germania, silica and radiation-damaged silica glasses. Journal of Physics C: Solid State Physics, 2, 229–237. https://doi.org/10.1088/0022-3719/2/2/305
Kaplow, R., Strong, S. L., & Averbach, B. L. (1965). Atomic arrangement in vitreous selenium. Physical Review, 138, A1336–A1345. https://doi.org/10.1103/PhysRev.138.A1336
Eggert, J. H., Weck, G., Loubeyre, P., & Mezouar, M. (2002). Quantitative structure factor and density measurements of high-pressure fluids in diamond anvil cells by X-ray diffraction. Physical Review B, 65, 174105. https://doi.org/10.1103/PhysRevB.65.174105
Juhás, P., Davis, T., Farrow, C. L., & Billinge, S. J. L. (2013). PDFgetX3: a rapid and highly automatable program for processing powder diffraction data into total scattering pair distribution functions. Journal of Applied Crystallography, 46, 560–566. https://doi.org/10.1107/S0021889813005190
Hubbell, J. H., Veigele, W. J., Briggs, E. A., Brown, R. T., Cromer, D. T., & Howerton, R. J. (1975). Atomic form factors, incoherent scattering functions, and photon scattering cross sections. Journal of Physical and Chemical Reference Data, 4, 471–538. https://doi.org/10.1063/1.555523
Hajdu, F. (1972). Revised parameters of the analytic fits for coherent and incoherent scattered X-ray intensities of the first 36 atoms. Acta Crystallographica Section A, 28, 250–252. https://doi.org/10.1107/S0567739472000671
Keen, D. A. (2001). A comparison of various commonly used correlation functions for describing total scattering. Journal of Applied Crystallography, 34, 172–177. https://doi.org/10.1107/S0021889800019993
Egami, T., & Billinge, S. J. L. (2012). Underneath the Bragg Peaks: Structural Analysis of Complex Materials (2nd ed.). Elsevier.
Peterson, P. F., Olds, D., McDonnell, M. T., & Page, K. (2021). Illustrated formalisms for total scattering data: a guide for new practitioners. Journal of Applied Crystallography, 54, 317–332. https://doi.org/10.1107/S1600576720015630
Brown, P. J., Fox, A. G., Maslen, E. N., O’Keefe, M. A., & Willis, B. T. M. (2006). Intensity of diffracted intensities. In International Tables for Crystallography, Volume C, 554–595. https://doi.org/10.1107/97809553602060000600