McXtrace is a general Monte Carlo ray-tracing software for simulation X-ray beamlines and experiments.
The simulations can compute all aspects of the performance of instruments and can thus be used to optimize the use of existing equipment, design new instrumentation, and carry out virtual experiments for e.g. training, experimental planning or data analysis.
McXtrace is based is based on a unique design, inherited from its sister McStas, where an automatic compilation process translates high-level textual instrument descriptions into efficient ANSI-
C code. This design makes it simple to set up typical simulations and also gives essentially unlimited freedom to handle more unusual cases.
It is built upon the code base of the proven and successful neutron ray-tracing package McStas and today McXtrace and McStas share a central code repository.
This is free and open source software.
Website: www.mcxtrace.org
Support: Documentation, GitHub Code Repository
Developer: Technical University of Denmark, Kongens Lyngby, Denmark & Synchrotron SOLEIL, Paris-Saclay, France
License: GNU General Public License

McXtrace is written in C and Fortran. Learn C with our recommended free books and free tutorials. Learn Fortran with our recommended free books and free tutorials.
Related Software
| Ray Tracing Software | |
|---|---|
| POV-Ray | Full-featured ray tracer |
| Blender | 3D content creation suite with a huge range of uses |
| McXtrace | Monte Carlo Xray Tracing for simulation X-ray beamlines and experiments |
| McStas | Simulator for neutron scattering instruments and experiments |
| BRL-CAD | Combinatorial Constructive Solid Geometry (CSG) solid modeling system |
| Embree | High-performance ray tracing library |
| LuxCoreRender | Rendering system for physically correct image synthesis |
| Visionaray | C++ ray tracing template library |
| YafaRay | Montecarlo raytracing engine |
| MantaRay | Advanced renderer using modern rendering techniques |
| Tachyon | Parallel / multiprocessor ray tracing system |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

