Journal of Applied Crystallography

Volume 46, Part 3 (June 2013)

research papers

J. Appl. Cryst. (2013). 46, 679-696    [ doi:10.1107/S0021889813007991 ]

McXtrace: a Monte Carlo software package for simulating X-ray optics, beamlines and experiments

E. Bergbäck Knudsen, A. Prodi, J. Baltser, M. Thomsen, P. Kjær Willendrup, M. Sanchez del Rio, C. Ferrero, E. Farhi, K. Haldrup, A. Vickery, R. Feidenhans'l, K. Mortensen, M. Meedom Nielsen, H. Friis Poulsen, S. Schmidt and K. Lefmann

Abstract: This article presents the Monte Carlo simulation package McXtrace, intended for optimizing X-ray beam instrumentation and performing virtual X-ray experiments for data analysis. The system shares a structure and code base with the popular neutron simulation code McStas and is a good complement to the standard X-ray simulation software SHADOW. McXtrace is open source, licensed under the General Public License, and does not require the user to have access to any proprietary software for its operation. The structure of the software is described in detail, and various examples are given to showcase the versatility of the McXtrace procedure and outline a possible route to using Monte Carlo simulations in data analysis to gain new scientific insights. The studies performed span a range of X-ray experimental techniques: absorption tomography, powder diffraction, single-crystal diffraction and pump-and-probe experiments. Simulation studies are compared with experimental data and theoretical calculations. Furthermore, the simulation capabilities for computing coherent X-ray beam properties and a comparison with basic diffraction theory are presented.

Keywords: Monte Carlo simulations; X-ray optics; X-ray beamlines; computer programs.

pdfdisplay filedownload file

Portable Document Format (PDF) file (357.6 kbytes)
[ doi:10.1107/S0021889813007991/he5585sup1.pdf ]
McXtrace: a tutorial example

txtdisplay filedownload file

Text file (4.6 kbytes)
[ doi:10.1107/S0021889813007991/he5585sup2.txt ]
Example input file


To open or display or play some files, you may need to set your browser up to use the appropriate software. See the full list of file types for an explanation of the different file types and their related mime types and, where available links to sites from where the appropriate software may be obtained.

The download button will force most browsers to prompt for a file name to store the data on your hard disk.

Where possible, images are represented by thumbnails.

 bibliographic record in  format

  Find reference:   Volume   Page   
  Search:     From   to      Advanced search

Copyright © International Union of Crystallography
IUCr Webmaster