Accurate calculation of the neutron scattering function for light water from theoretical model is often limited due to the challenges associated with the incoherent and inelastic correction of hydrogen. Traditional correction methods rely on empirical formulas, which lack generality and accuracy. Although quantum correction methods for light water have been studied for a while, they have not yet been translated into practical, openly available tools for calculating the scattering function . In this paper, we present an open-source computational tool that provides a stable numerical implementation of the Gaussian approximation-assisted quantum correction (GAAQC) framework for light water. The tool applies quantum corrections to classical neutron scattering data derived from molecular dynamics (MD) simulations. It takes two inputs-both obtainable from standard MD trajectories: (a) the vibrational density of states (VDOS) and (b) the classical scattering function -and outputs the quantum-corrected scattering function . Our implementation overcomes the instabilities that previously limited the GAAQC method, enabling reliable calculation over a wide dynamic range of momentum and energy transfer.
Neutron scattering is widely used across various fields, such as materials science, chemistry, energy, and condensed matter physics. Compared to synchrotron radiation, neutrons have a unique advantage in detecting light elements such as hydrogen. However, the strong incoherent scattering signal from hydrogen dominates the total signal, obscuring the coherent scattering that carries structural information and complicating data analysis. As a result, materials containing hydrogen often require deuterium substitution in neutron experiments, which limits the range of samples that can be studied. Light water represents a particularly important and challenging case due to its ubiquity and the complexity of its hydrogen dynamics. To overcome these limitations and expand the application of neutron scattering, accurate theoretical calculations of the scattering function for light water materials are essential.
Theoretical approaches provide a foundation for developing robust data analysis and correction methods, enabling more precise interpretation of experimental results. Methods for calculating the neutron scattering function of solids have been developed for decades, primarily based on the harmonic model.1–3 Currently, NCrystal library4 is widely used to support a range of physical calculations, including coherent, incoherent, elastic, and inelastic scattering in solid materials. However, the development of methods for calculating neutron scattering functions in liquids has lagged behind. Unlike solids, there is no universal approach for liquids, and different models are adopted depending on specific applications.5–7 Due to the limited accuracy and uncertain applicability of these models, their selection often relies on empirical judgement.
Van Hove’s theory8 provides the fundamental framework for calculating the neutron scattering function through space–time correlation functions. For the computed scattering function to be physically meaningful, it must satisfy three fundamental conditions9: (a) the sum rule, (b) detailed balance, and (c) numerical stability over a large dynamic range to avoid Fourier-transform artifacts. Advances in molecular dynamics (MD) simulations have made it possible to perform calculation using ab initio methods.10–14 In 2014, the Granada team proposed the so-called Centro Atómico Bariloche (CAB) model,15 named after their institution, which utilizes the density of states as an input and employs a Gaussian approximation (GA) to describe the incoherent scattering function. This model addresses a series of numerical issues in Fourier transforms through three physical approximations and was adopted by the U.S. Nuclear Data Library in 2018.
However, the CAB model requires a significant number of experimental parameters, limiting its applicability to calculations for liquid materials other than light water. Additionally, the CAB model relies on classical MD simulations results as input, which are only valid at scales much larger than the quantum regime.
The need for quantum corrections in neutron scattering calculations has long been recognized. While several approaches have been proposed over the years,16–18 this paper focuses on the recent Gaussian approximation-assisted quantum correction (GAAQC) method introduced by Abe and Tasaki,19 which approximates the width function as Gaussian in time , offers a clear and efficient framework. However, Abe and Tasaki’s method exhibits significant limitations. First, its effective analysis window is restricted to only 10 ps, which is insufficient to capture the full temporal evolution of the diffusion process typically requiring windows of at least 50 ps. More critically, as pointed out by the Granada group,20 the direct calculation using two Gaussian models within Abe and Tasaki’s framework becomes numerically unstable in the high momentum transfer (large-) region. As a result, in Abe and Tasaki’s original work, only partial results within a limited range were presented, and the full scattering function could not be reliably reconstructed.
In this work, we build upon a recently developed high-precision Fourier transform technique to overcome these numerical limitations for light water. We achieve a complete and robust open-source tool that applies the GAAQC quantum correction to classical neutron scattering data. The tool takes two inputs—both obtainable from standard MD trajectories: (a) the vibrational density of states (VDOS) and (b) the classical scattering function . And it outputs the quantum-corrected over a wide range of . This work thus transform Abe and Tasaki’s theoretical formalism into a practical computational resource, providing a reliable foundation for future studies of hydrogenous materials.
Theory of quantum correction
The scattering function can be divided into coherent and incoherent components. In hydrogen-rich liquid materials such as light water, the contribution of coherent scattering between different atoms is less than 5% of the self-scattering.9 Therefore, the incoherent approximation is adopted, which neglects cross-correlations between distinct atoms. The scattering function is defined as
Where is the intermediate scattering function.
A classical approach to computing the scattering function involves utilizing data derived from MD simulations. Specifically, this function can be evaluated based on atomic trajectory information obtained from such simulations:
However, the computed scattering function is classical in nature, constituting a classical approximation to :
The detailed balance condition is a fundamental symmetry that should be satisfied by the dynamic structure factor in order to be consistent with quantum statistical mechanics:
In the classical limit (), the corresponding expression reduces to the classical detailed balance relation, which is satisfied by . However, does not satisfy the quantum detailed balance condition in equation (5) because quantum statistical effects are not included. Therefore, to properly obtain the quantum dynamic structure factor from the classical correlation function , an appropriate quantum correction must be applied.
For non-quantum liquids, the relationship between the quantum-mechanical and classical neutron scattering functions can be expressed as:18
where is the intermediate scattering function for quantum and classical states, respectively.
Using the Gaussian approximation (GA) framework, a complete computational pathway from molecular dynamics trajectories to the dynamic structure factor can be achieved. The physical justification for the GA is that the self-intermediate scattering function is exactly Gaussian in two important limiting cases: for recoil scattering from free atoms at large scattering vectors, and for quasi-elastic neutron scattering (QENS) from diffusing atoms at small scattering vectors.19 The can be defined as:
The classical and quantum states of width functions can be calculated using the density of states function:21
here is the Boltzmann constant and is the density of states, which is determined from the velocity autocorrelation function (VAF):
The VAF is calculated from MD, which describes the classical states of particles.
According these equations above, the entire computational workflow of the method is shown in Figure 1. The following section details the key steps within this workflow, along with the specific challenges encountered and the solutions developed to address them.
The workflow of quantum correction for light water.
Implementation and challenges
The GAAQC tool requires two inputs obtainable from classical MD: the VDOS and the classical scattering function . To generate the inputs used for validation in this work, we performed MD simulations of liquid water using LAMMPS22 with the TIP4P/2005 model. A system of 512 water molecules was simulated at 293 K in a cubic periodic box. After NPT equilibration, a 100 ps NVT production run was conducted with a 0.2 fs timestep. The VDOS was computed from the VAF, and was obtained via Fourier transform of the intermediate scattering function.
The computational workflow encounters two major challenges in evaluating the width function . To address the issues of high oscillations and the removable singularity at , a hybrid integration strategy is employed: (a) for the singular region near , the contribution is computed via a “Taylor limit” treatment, where the integrand at is evaluated using its analytic small-argument limit, and the integral over is approximated by the trapezoidal rule; (b) the remaining oscillatory integral () is evaluated using a custom implementation of Filon’s quadrature,23 following the formulas detailed in Appendix A of Du and Cai.24 The complete C++ source code for both the low-frequency handler (cal_limit) and the Filon routine (cal_integral) is provided in the accompanying repository under the GPL License. The calculated width function of light water for both quantum and classical regimes is shown in Figure 2.
The width function of light water in its classic and quantum state, calculated using equations (9) and (10). The insert highlights the differences in the real part, imaginary part, and amplitude over a short-time interval.
The second major challenge arises in the application of the Fourier transform to obtain the scattering function . Note that in this work, the energy transfer is defined as . Therefore, positive on the horizontal axis corresponds to neutron energy gain. At high momentum transfers, a Fast Fourier Transform (FFT) of becomes numerically unstable. As increases, the exponential factor causes to decay below the noise level for all but the shortest times (see in Figure 3), leading to severe artifacts in the resulting . These artifacts manifest as spectral aliasing and unphysical oscillations, rendering the standard FFT approach unreliable for large .
The intermediate scattering function for various momentum transfers , calculated using equation (8). At high values (e.g., Å−1), decays within a very short time.
To overcome this limitation, we exploit a key property of the Gaussian approximation: the convolution theorem allows us to express the Fourier transform of as a convolution of results computed at smaller values. Specifically,
where denotes the Fourier transform and represents convolution. This relationship, derived directly from the Gaussian approximation in equation (8), provides a computationally stable pathway to calculate in the large regime without introducing additional systematic errors. By recursively applying this convolution trick, we can construct at arbitrarily high from stable calculations performed at lower , completely circumventing the numerical instabilities that plague direct FFT methods.
Results and discussion
Following the methodological framework established in the preceding sections, this section presents a comprehensive analysis of the scattering function of light water calculated using our refined CDFT approach. The discussion is structured into two main parts to systematically validate the methodology. First, we evaluate the scattering function obtained within the GA framework. Subsequently, we apply and validate the GAAQC model, confirming its consistency with established theoretical limits and experimental data.
Evaluation of the scattering function calculated via refined CDFT (GA)
The scattering function obtained from the refined CDFT methodology via GA model is shown in Figure 4(a) and (b), which display the scattering function for small and large , respectively. The STC approximation, based on instantaneous collisions, requires where is the characteristic collision length in water.25 For , this condition is not fully satisfied, explaining the discrepancy with the CDFT result in Figure 4(b). The convergence of the two methods at higher () confirms that CDFT correctly recovers the STC limit when the short-time-collision assumption becomes valid. The consistency of these results with established physical expectations and our previous work24 validates the robustness of the CDFT methodology.
(a) Scattering function calculated from refined CDFT via GA model at , demonstrating physically reasonable line shape and detailed-balance compliance. (b) Comparison of CDFT (solid lines) and STC (dashed lines) results for to . At , the discrepancy reflects non-instantaneous collision effects captured by CDFT but not by the STC approximation. The convergence at higher () validates that CDFT correctly approaches the STC limit when short-time collisions dominate.
Validation of quantum correction of the scattering function
The quantum-corrected scattering function is shown in Figure 5, which refers primarily to the agreement of the quasi elastic peak positions with the STC predicted trajectory (dashed “STC max” line). The STC model provides a well established relationship between the peak location in and momentum transfer for systems dominated by short time collisions. The alignment of our computed peak maxima with this theoretical curve across a wide range validates that quantum-corrected scattering function correctly captures the short time dynamics underlying the STC limit.
The GAAQC scattering function is in agreement with the STC model.
Moreover, as shown in Figure 6, the half width at half maximum (HWHM) of quasi-elastic peaks at small momentum transfers is compared. The HWHM derived from GA exhibits a linear relationship with , consistent with Fick’s law of continuous diffusion. In contrast, GAAQC HWHM is accurately described by the jump-diffusion model,26 yielding a diffusion coefficient and a residence time ps upon fitting. This agreement underscores the necessity of quantum corrections to capture the true microscopic motion of water. Crucially, the line-width correction achieved by GAAQC cannot be reproduced by a simple multiplicative detailed-balance factor. Such a factor only enforces the intensity asymmetry without altering the -dependence of the line shape.
Comparison of HWHM derived from GA and GAAQC model.
The double differential scattering cross section calculated for an incident energy of eV agrees with experimental result from Esch et al.27 at scattering angles of 25 and 40 (Figure 7). Discrepancies, particularly in the quasi-elastic peak widths and the inelastic wings, are observed. These are likely influenced by the fact that the instrumental resolution function is not convolved with the theoretical result. The overall agreement validates the accuracy of our quantum-corrected computational framework for capturing the main scattering features, while a more precise quantitative comparison would require convolution with the experimental resolution.
Comparison of the double differential scattering cross section between simulation and experiment27 at eV. Upper panel: scattering angle . Lower panel: scattering angle . The measured data (symbols) is compared with GAAQC results (solid lines).
Conclusion
This paper presents a computational workflow that applies the GAAQC framework to classical neutron scattering function S of light water, overcoming long-standing limitations in quantum correction methods. By integrating high-precision Fourier transform techniques with advanced quantum corrections, we have developed a robust approach that maintains numerical stability across an extensive dynamic range in both momentum and energy transfer.
The key achievement of this work is the transformation of theoretical GAAQC framework into a practical, open-source implementation. The tool takes as input the VDOS and the classical scattering function —both obtainable from standard MD simulations—and outputs the quantum-corrected . Unlike empirical models, our implementation introduces no additional fitted parameters in the correction step and ensures physical consistency through automatic satisfaction of fundamental constraints including the sum rule and detailed balance condition. The complete source code and documentation are publicly available at https://github.com/Jecrevin/sqw, providing a robust computational foundation for future studies of hydrogenous liquids, beginning with light water.
Footnotes
ORCID iDs
Wang Hao
Rong Du
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Natural Science Foundation of China (Grant No. 12305342).
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Technical details
In this work, all the FFT based calculation is based on scipy’s fft module.
References
1.
GlauberRJ. Time-dependent displacement correlations and inelastic scattering by crystals. Phys Rev1955; 98: 1692–1698.
2.
LavelleCLiuCYStoneM. Toward a new polyethylene scattering law determined using inelastic neutron scattering. Nucl Instrum Methods Phys Res A2013; 711: 166–179.
3.
CaiXXKlinkbyE. Neutron total cross section calculation within the framework of quasi-harmonic approximation. New J Phys2017; 19: 103027.
4.
CaiXXKittelmannT. Ncrystal: a library for thermal neutron transport. Comput Phys Commun2020; 246: 106851.
5.
EduraYMorishimaN. Cold and thermal neutron scattering in liquid water: cross-section model and dynamics of water molecules. Nucl Instrum Methods Phys Res A2004; 534: 531–543.
6.
ViñalesADawidowskiJMárquez DamiánJ. Neutron total cross-section model for liquids and its application to light water. Ann Nucl Energy2011; 38: 1687–1692.
7.
QvistJSchoberHHalleB. Structural dynamics of supercooled water from quasielastic neutron scattering and molecular simulations. J Chem Phys2011; 134: 144508.
8.
Van HoveL. Correlations in space and time and born approximation scattering in systems of interacting particles. Phys Rev1954; 95: 249–262.
9.
SoperA. Inelasticity corrections for time-of-flight and fixed wavelength neutron diffraction experiments. Mol Phys2009; 107: 1667–1684.
10.
RahmanAStillingerFH. Molecular dynamics study of liquid water. J Chem Phys1971; 55: 3336–3359.
11.
MartíJPadroJAGuàrdiaE. Molecular dynamics simulation of liquid water along the coexistence curve: hydrogen bonds and vibrational spectra. J Chem Phys1996; 105: 639–649.
12.
GonzálezMAAbascalJLF. A flexible model for water based on TIP4P/2005. J Chem Phys2011; 135: 224516.
13.
AbeYTsuboiTTasakiS. Evaluation of the neutron scattering cross-section for light water by molecular dynamics. Nucl Instrum Methods Phys Res A2014; 735: 568–573.
14.
NoguereGScottaJPXuS, et al.Temperature-dependent dynamic structure factors for liquid water inferred from inelastic neutron scattering measurements. J Chem Phys2021; 155: 024502.
15.
Márquez DamiánJGranadaJMalaspinaD. CAB models for water: a new evaluation of the thermal neutron scattering laws for light and heavy water in ENDF-6 format. Ann Nucl Energy2014; 65: 280–289.
16.
SchofieldP. Space-time correlation function formalism for slow neutron scattering. Phys Rev Lett1960; 4: 239–240.
AbeYTasakiS. Molecular dynamics analysis of incoherent neutron scattering from light water via the van hove space–time self-correlation function with a new quantum correction. Ann Nucl Energy2015; 83: 302–308.
20.
Márquez DamiánJGranadaJCantargiF, et al.Generation of thermal scattering libraries for liquids beyond the Gaussian approximation using molecular dynamics and NJOY/LEAPR. Ann Nucl Energy2016; 92: 107–112.
21.
RahmanASingwiKSSjölanderA. Theory of slow neutron scattering by liquids. I. Phys Rev1962; 126: 986–996.
22.
ThompsonAPAktulgaHMBergerR, et al.LAMMPS—a flexible simulation tool for particle-based materials modeling at the atomic, meso, and continuum scales. Comput Phys Commun2022; 271: 108171.
23.
FosdickLD. A special case of the Filon quadrature formula. Math Comput1968; 22: 77–81.
24.
DuRCaiXX. Convolutional discrete fourier transform method for calculating thermal neutron cross section in liquids. J Comput Phys2022; 466: 111382.
25.
SoperA. The radial distribution functions of water and ice from 220 to 673 K and at pressures up to 400 MPa. Chem Phys2000; 258: 121–137.
26.
SingwiKSSjölanderA. Diffusive motions in water and cold neutron scattering. Phys Rev1960; 119: 863–871.
27.
EschLJYeaterMLMooreWE, et al.The temperature dependence of neutron inelastic scattering from water. Nucl Sci Eng1971; 46: 223–235.