📑 Table of Contents

McXtrace is an open source software package for performing Monte Carlo simulations of X-ray scattering experiments. While its chief objective is to aid in the optimization of beamlines at e.g. synchrotrons, it may also be used for data analysis and at laboratory sources and beamlines.[1] McXtrace is free software released under the GNU GPL.

McXtrace was first spun off as a sister project to the well known and proven neutron ray-tracing package McStas in a project funded jointly by:

Description

edit

McXtrace works in the way that a user describes his/her beamline in a special file. This file is then analyzed by the system and converted into a c-file which may be compiled on the target computing system where the simulation is to be run. The beamline file generally contains relative coordinates of the devices present in the beamline.

McXtrace is well suited to describe X-ray synchrotron beam-lines by assembling a series of so-called components:

  • a photon source
  • optics
  • samples
  • detectors and monitors

Even-though McXtrace is similar to other pure ray-tracing such as XRT, [["Synchrotron Radiation Workshop|SRW]], OASYS/Shadow for the source and optics, what makes it different resides in its ability to handle sample models:

  • powder diffraction
  • single crystal diffraction
  • absorption (XAS), which also covers tomography applications
  • small-angle scattering
  • inelastic scattering (IXS, currently from liquids and amorphous systems)
  • fluorescence, Compton and Rayleigh

References

edit
  1. ^ Sloth, Steffen; Kjær Willendrup, Peter; Brandenborg Sørensen, Hans Henrik; Christensen, Morten; Poulsen, Henning Friis (Oct 2024). "Accelerated ray-tracing simulations using McXtrace". arXiv:2410.08747 [physics.comp-ph].
  • Erik Bergbäck Knudsen, Andrea Prodi, Jana Baltser, Maria Thomsen, P Kjær Willendrup, M Sanchez del Rio, Claudio Ferrero, Emmanuel Farhi, Kristoffer Haldrup, Anette Vickery, et al. Mcxtrace: a monte carlo software package for simulating x-ray optics, beamlines and experiments. Journal of Applied Crystallography, 46(3):679-696, 2013.
  • Erik Bergbäck Knudsen, A Prodi, Peter Kjær Willendrup, Kim Lefmann, J Baltser, C Gundlach, M Sanchez del Rio, C Ferrero, and Robert Feidenhans'l. McXtrace: A modern ray-tracing package for X-ray instrumentation. In Proceedings of SPIE, volume 8141, page 81410G, 2011.
  • J. Baltser, E. Knudsen, A. Vickery, O. Chubar, A. Snigirev, G. Vaughan, R. Feidenhans'l, and K. Lefmann. Advanced simulations of x-ray beam propagation through crl transfocators using ray-tracing and wavefront propagation methods. In Proceedings of SPIE, volume 8141, page 814111, 2011.
  • A. Prodi, E. Knudsen, P. Willendrup, S. Schmidt, C. Ferrero, K. Lefmann, et al. A monte carlo approach for simulating the propagation of partially coherent x-ray beams. In Proceedings of SPIE, volume 8141, page 814108, 2011.
edit

📚 Artikel Terkait di Wikipedia

List of free and open-source software packages

Surface Evolver TARDIS UrQMD Astropy CMBFAST GADGET CP2K EGS MCSim McStas McXtrace MPMC OpenMC TARDIS FORM (symbolic manipulation system) ADaMSoft ADMB Chronux

List of computational physics software

"McStas homepage". mcstas.org. Retrieved December 17, 2025. "McXtrace homepage". www.mcxtrace.org. Retrieved December 17, 2025. "GitHub - space-group-research/mpmc:

List of ray tracing software

Ray Tracer MIT No Yes Yes No Maxwell Render Proprietary Yes Yes Yes No McXtrace GPL Yes Yes Yes No Mental ray Proprietary Yes Yes Yes No MODO Proprietary

List of open-source software for mathematics

CompHEP UrQMD APFEL Geant4 Astropy CMBFAST GADGET CP2K EGS MCSim McStas McXtrace MPMC TARDIS Cantera CP2K MOPAC NWChem Psi4 ASCEND Axiom Euler Mathematical

Accelerator physics codes

repository. SRW home page at esrf.eu Shadow home page at esrf.eu McXTrace home page at mcxtrace.org "Spectra home page at riken.go.jp". Archived from the original

Beamline

with various components. There are ray-tracing codes such as Shadow and McXTrace that treat the x-ray beam in the geometric optics limit, and then there

McStas

since many of the future instruments are being simulated using McStas. McXtrace, an equivalent simulation package using X-rays instead of neutrons, started