We developed an original Monte Carlo algorithm for the simulation of Bragg diffraction by mosaic, bent and gradient crystals. It has practical applications, as it can be used for simulating imperfect crystals (monochromators, analyzers and perhaps samples) in neutron ray-tracing packages, like McStas. The code we describe here provides a detailed description of the particle interaction with the microscopic homogeneous regions composing the crystal, therefore it can be used also for the calculation of quantities having a conceptual interest, as multiple scattering, or for the interpretation of experiments aiming at characterizing crystals, like diffraction topographs. © 2004 Elsevier B.V. All rights reserved.
Alianelli, L., Sánchez Del Río, M., Felici, R., Andersen, K. H., & Farhi, E. (2004). A novel Monte Carlo algorithm for simulating crystals with McStas. In Physica B: Condensed Matter (Vol. 350). https://doi.org/10.1016/j.physb.2004.03.191