Open jl-wynen opened 3 months ago
Mantid does not actually use an FFT to compute the PDF, see https://docs.mantidproject.org/nightly/algorithms/PDFFourierTransform-v2.html. Instead, it uses an algorithm based on the maths explained in the Manual for Gudrun.
Is there a typo in the expression for $Q$? Should it be $Q = 4\pi \mathsf{sin}(\theta)/\lambda$?
Yes. Fixed it
Is there any test data available for this? Do we know $g(r)$ for some $S(Q)$?
I am not aware of any data.
Executive summary
We need to compute the fourier transform of the structure factor to get the PDF.
Context and background knowledge
This is needed for reducing PDF data but not other powder data.
The structure factor is given by
where $I_\mathsf{coh}$ is the coherent scattering intensity, $f_i$ the scattering length density, and $c_i = \rho_i/\rho$ with $\rho_i$ the number density of atoms of type $i$. The momentum transfer is $Q = 4\pi \mathsf{sin}(\theta)/\lambda$.
The PDF is then
with
Inputs
1d $S(Q)$.
Methodology
The integral that defines $g(r)$ corresponds to a Fourier transform. So to implement it, we should use an FFT. We should probably add support in Scipp itself. The code in ESSdiffraction would just be a simple wrapper to call the FFT.
Outputs
Fourier transformed, 1d $g(r)$
Which interfaces are required?
Python module / function
Test cases
None yet, though there will be simulated data for DREAM.
Comments
No response