DiffSim provides an atomistic approach to efficiently simulate Bragg coherent x-ray diffraction imaging (BCDI) diffraction patterns by factorising and eliminating certain redundancies in the conventional approach. The method used is able to reduce the computation time by several orders of magnitude without compromising the recovered phase information and therefore enables feasible atomistic simulations on nanoscale crystals with arbitrary lattice distortions.
Please cite the following article when using Diffsim in published work:
DiffSim requires:
- Python >= 3.7
- Numba >= 0.58.1
- NumPy >= 1.25.0
- scipy
- mpi4py
Installation via pip:
$ pip install diffsim
Please send any bugs, problems, and proposals to: Bonsu.Devel@gmail.com or visit: http://github.com/bonsudev/diffsim
Example scripts are available in the examples folder.
🔧 Minor bug fixes.
✨ Refactored code for speed improvements.
✨ Added attenuation and refraction corrections.
🔧 Minor bug fixes.
✨ First major release.
GNU GPLv3