Simulating Neutron Diffraction from Deformed Mosaic Crystals in McStas
Abstract
1. Introduction
2. Reflectivity of Deformed Crystals
2.1. Scattering Power
2.2. Finding the Point of Scattering
2.3. Corrections for Absorption, Scattering, and Primary Extinction
2.4. Algorithm
- (a)
- Find the entry/exit times for all elements of the crystal array, which are crossed by the neutron ray. If there is no intersection, break the main loop and let the neutron escape.
- (b)
- Calculate the corresponding probabilities of reflection by using Equation (10).
- (c)
- Using the Russian roulette method, select the interacting crystal or let the neutron escape (jump to (a) for the next neutron).
- (d)
- Sample the flight time to the next reflection point using Equation (12) and propagate the neutron there.
- (e)
- Reflect the neutron ray.
- (f)
- While the neutron ray is reflected, the weight p is updated by . Then jump to (a).
| Algorithm 1: Pseudo-code explaining the algorithm behind Monochromator_Bent. The comments in parenthesis refer to the descriptions in the text. |
![]() |
3. Simulation Setup
4. Results
4.1. Bent Perfect Crystal
4.2. Bent Mosaic Crystal
4.3. Flat Mosaic Crystal
4.4. Performance Analysis
5. Limits of Model Validity
5.1. Bent Perfect Crystals
5.2. Mosaic Crystals
6. Discussion and Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Appendix A. Derivation of Deformation Gradient
Appendix B. Flight Time to Reflection
References
- The ESS Mandate|ESS. Available online: https://ess.eu/ess-mandate (accessed on 19 January 2026).
- ISIS About. Available online: https://www.isis.stfc.ac.uk/Pages/About.aspx (accessed on 19 January 2026).
- ILL at a Glance-ILL Neutrons for Society. Available online: https://www.ill.eu/about-the-ill/ill-at-a-glance (accessed on 19 January 2026).
- The China Spallation Neutron Source—-Institute of High Energy Physics. Available online: https://english.ihep.cas.cn/csns/ (accessed on 20 January 2026).
- J-PARC|Japan Proton Accelerator Research Complex. Available online: https://j-parc.jp/c/en (accessed on 20 January 2026).
- Spallation Neutron Source|Neutron Science at ORNL. Available online: https://neutrons.ornl.gov/sns (accessed on 20 January 2026).
- Renaissance, THE ILL MILLENIUM PROGRAMME 2001–2009. Available online: https://www.ill.eu/fileadmin/user_upload/ILL/1_About_ILL/Documentation/ILL_brochure/Millenium___Endurance_brochure/Millenium_Brochure_2010.pdf (accessed on 19 January 2026).
- Dewhurst, C.; Meyer, A. Endurance–Modernisation of the instrumentation suite at the Institut Laue-Langevin. EPJ Web Conf. 2023, 286, 01001. [Google Scholar] [CrossRef]
- Pirling, T.; Bruno, G.; Withers, P.J. SALSA—A new instrument for strain imaging in engineering materials and components. Mater. Sci. Eng. A 2006, 437, 139–144. [Google Scholar] [CrossRef]
- Hofmann, M.; Schneider, R.; Seidl, G.A.; Rebelo-Kornmeier, J.; Wimpory, R.C.; Garbe, U.; Brokmeier, H.G. The new materials science diffractometer STRESS-SPEC at FRM-II. Phyica B Condens. Matter 2006, 385–386, 1035–1037. [Google Scholar]
- Kirstein, O.; Brule, A.; Nguyen, H.; Luzin, V. Kowari—The residual-stress diffractometer for engineering applications at OPAL. Mater. Sci. Forum 2008, 571–572, 213–217. [Google Scholar] [CrossRef]
- Boehm, M.; Hiess, A.; Kulda, J.; Roux, S.; Saroun, J. ThALES—Three axis low energy spectroscopy at the Institut Laue-Langevin. Meas. Sci. Technol. 2008, 19, 034024. [Google Scholar] [CrossRef]
- MARMOT in Full Swing. Available online: https://www.ill.eu/news-and-events/news/scientific-news/marmot-at-full-swing (accessed on 19 January 2026).
- Lefmann, K.; Nielsen, K. McStas, a general software package for neutron ray-tracing simulations. Neutron News 1999, 10, 20–23. [Google Scholar] [CrossRef]
- Willendrup, P.; Lefmann, K. McStas (i): Introduction, use, and basic principles for ray-tracing simulations. J. Neutron Res. 2020, 22, 1–16. [Google Scholar] [CrossRef]
- Willendrup, P.; Lefmann, K. McStas (ii): An overview of components, their use, and advice for user contributions. J. Neutron Res. 2021, 23, 7–27. [Google Scholar] [CrossRef]
- Cai, X.X.; Kittelmann, T. NCrystal: A library for thermal neutron transport. Comput. Phys. Commun. 2019, 246, 106851. [Google Scholar] [CrossRef]
- Kittelmann, T.; Cai, X.X. Elastic neutron scattering models for NCrystal. Comput. Phys. Commun. 2021, 267, 108082. [Google Scholar] [CrossRef]
- Šaroun, J. Random-walk algorithm for the simulation of neutron diffraction in deformed mosaic crystals. Nucl. Instrum. Methods Phys. Res. A 2004, 529, 162–165. [Google Scholar] [CrossRef]
- Šaroun, J.; Kulda, J. RESTRAX—A program for TAS resolution calculation and scan profile simulation. PHysica B Condens. Matter 1997, 234–236, 1102–1104. [Google Scholar] [CrossRef]
- Šaroun, J. SIMRES-Neutron Ray-Tracing Simulation. Available online: https://github.com/saroun/simres (accessed on 17 September 2025).
- Hu, H.; Fang, Y. Neutron-Diffraction in Flat and Bent Mosaic Crystals for Asymmetric Geometry. J. Appl. Cryst. 1993, 26, 251–257. [Google Scholar] [CrossRef]
- Zachariasen, W.H. A General Theory of X-Ray Diffraction in Crystals. Acta Cryst. 1967, 23, 558. [Google Scholar] [CrossRef]
- Lukas, P.; Kulda, J. Quasi-Classical Trajectory of Thermal-Neutrons in Elastically Deformed-Crystals. Phys. Stat. Sol. B 1989, 156, 41–48. [Google Scholar] [CrossRef]
- Kulda, J. A Novel Approach to Dynamical Neutron Diffraction by a Deformed Crystal. Acta Cryst. A 1984, 40, 120–126. [Google Scholar] [CrossRef]
- Devroye, L. Non-Uniform Random Variate Generation; Springer: New York, NY, USA, 1986. [Google Scholar]
- Freund, A.K. Cross-sections of materials used as neutron monochromators and filters. Nucl. Instrum. Methods Phys. Res. 1982, 213, 495–501. [Google Scholar] [CrossRef]
- Darwin, C.G. The reflexion of X-rays from imperfect crystals. Philos. Mag. 1922, 43, 800–829. [Google Scholar] [CrossRef]
- Lefmann, K.; Tuoriniemi, J.T.; Nummila, K.K.; Metz, A. Neutron thermometry on polarized silver nuclei at sub-microkelvin spin temperatures. Z. Für Phys. B Condens. Matter 1997, 102, 439–447. [Google Scholar] [CrossRef]
- Christensen, D.L. Simulations for Simulating Neutron Diffraction in Deformed Mosaic Crystals in McStas. 2025. Available online: https://erda.ku.dk/archives/4a69af976ff254bc4bc35956e822cb33/published-archive.html (accessed on 20 January 2026).
- Stoica, A.D.; Popovici, M. On the Neutron Reflectivity of Bent Perfect Crystals. J. Appl. Cryst. 1989, 22, 448–454. [Google Scholar] [CrossRef]
- Kulda, J. Random elastic deformation (RED)—An alternative model for extinction treatment in real crystals. Acta Cryst. A 1984, 43, 167–173. [Google Scholar] [CrossRef]
- Kulda, J. The RED Extinction Model. I. An Upgraded Formalism. Acta Cryst. A 1988, 44, 283–285. [Google Scholar] [CrossRef]
- Wuttke, J. Multiple Bragg reflection by a thick mosaic crystal. Acta Crystallogr. Sect. A Found. Adv. 2014, 70, 429–440. [Google Scholar] [CrossRef] [PubMed]

















| Reflection | [Å] | [Å] | [°] | [°] | Q | [cm−1] | Y | [cm−1] | |
|---|---|---|---|---|---|---|---|---|---|
| Ge(511) | 1.5 | 1.089 | 43.53 | −19.47 | 0.00173 | 29.46 | 0.963 | 0.1547 | 0.27 |
| Cu(311) | 1.5 | 1.09 | 43.48 | −19.47 | 0.01139 | 11.48 | 0.806 | 0.453 | 0.3 |
| Si(111) | 2.4 | 3.135 | 22.5 | 0 | 0.00221 | 29.28 | 0.963 | 0.0203 | 0.18 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Christensen, D.L.; Cabeza, S.; Pirling, T.; Lefmann, K.; Šaroun, J. Simulating Neutron Diffraction from Deformed Mosaic Crystals in McStas. Quantum Beam Sci. 2026, 10, 6. https://doi.org/10.3390/qubs10010006
Christensen DL, Cabeza S, Pirling T, Lefmann K, Šaroun J. Simulating Neutron Diffraction from Deformed Mosaic Crystals in McStas. Quantum Beam Science. 2026; 10(1):6. https://doi.org/10.3390/qubs10010006
Chicago/Turabian StyleChristensen, Daniel Lomholt, Sandra Cabeza, Thilo Pirling, Kim Lefmann, and Jan Šaroun. 2026. "Simulating Neutron Diffraction from Deformed Mosaic Crystals in McStas" Quantum Beam Science 10, no. 1: 6. https://doi.org/10.3390/qubs10010006
APA StyleChristensen, D. L., Cabeza, S., Pirling, T., Lefmann, K., & Šaroun, J. (2026). Simulating Neutron Diffraction from Deformed Mosaic Crystals in McStas. Quantum Beam Science, 10(1), 6. https://doi.org/10.3390/qubs10010006


