McStas - A neutron ray-trace simulation package

McStas is a general tool for simulating neutron scattering instruments and experiments. It is actively supported by DTU Physics, NBI KU, ESS, PSI and ILL

Simulated scattering from a hollow-cylinder vanadium sample.

The plot shows the intensity of scattered neutrons (red is highest intensity). The sample is at the center of the sphere with the neutron beam coming from the left. Clearly seen is the shadowing effect of the sample causing a lower intensity opposite the beam. Also seen is the effect of the non-symmetric geometry of the sample, causing lower intensity directly above and to the side of the sample.



Recent news


Migrating from McStas 2.x to 3.x? - Use the wiki-based guides

March 13th, 2026: "Best of McStas compilation"

Dear all,

In connection with a user request I realised that occasionally we may all benefit from easier access to old McStas variants.

I have therefore put together a "Best of McStas compilation" - a Linux image with McStas version 1.12c, 2.7.2 and the latest 3.6.8.

You can give the image a quick trial spin via binder:
https://mybinder.org/v2/gh/mccode-dev/jupyter-mcstas-mcxtrace-desktop/HEAD?urlpath=desktop
(will not in practice sustain much actual work / load)

Or alternatively pull docker.io/mccode/mcstas_v1.12c_v2.7.2_v3.6.8:latest via Docker / podman / etc., i.e. something like

Best and hope this may be useful,
Peter

Screenshot of the running compilation:


January 7th, 2026: McStas and McXtrace 3.6.5 released


McStas and McXtrace release 3.6.5 is now available.
McStas installation instructions are found on GitHub .

What's Changed - Main Changes:

Bugfixes, new features, all common to McStas and McXtrace:

Other stuff

Full Changelog:https://github.com/mccode-dev/McCode/compare/v3.6.1...v3.6.5


Previous news items: 2025, 2024, 2023, 2022, 2021,2020,2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002, 2001, 2000, 1999, 1998.