id summary reporter owner description type status priority milestone component resolution keywords cc workpackage 1067 multiple scattering pkienzle "{{{sasmodels/explore/multiscat.py}}} demonstrates how to do a multiple scattering calculation with an FFT. This code is not ready to go into sasview. (1) There needs to be some code clean up in sasview/sasmodels before this can apply. I set up the calculation as a resolution function, but background needs careful handling. True background needs to be moved out of the I(q) calculation. ""Background"" due to incoherent scattering in the sample _is_ subject to multiple scattering, and will need to be applied beforehand. The instrumental resolution will apply after the multiple scattering calculation, so resolutions need to stack. This will require a reorganization of resolution and q-samples is sasmodels (#717 and others). Oriented USANS (#610) will be easy to implement after reorg. (2) The calculation is slow (1.5 s for multiple scattering vs. 0.001 s for single scattering in cylinder model). There should be lots of room for speedup using GPUs. I put some code into multiscat.py which shows how this might be implemented, but didn't try to make it run. (3) Rather than moving data back and forth between the GPU for calculating the model then calculating the resolution, we can rearrange the code so that it stays there the whole time. The reorganization in (1) should be done with this in mind. The existing resolution functions will need to be updated to make use of the GPU, including SESANS. " enhancement new major SasView 5.0.0 SasView SasView Bug Fixing