McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding

Download
 Components
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


Component validation

1.7  Component validation

Components are continuously exercised by the mctest/mcviewtest regression suite (see the User Manual’s section on self-testing the installation), which compiles and runs the example instrument library and compares results across platforms, CPU vs. GPU, and McStas versions using mcplotdiff-html. Some components additionally underwent dedicated, published validation against analytical models and/or measurements; velocity selectors and Fermi choppers were treated as black boxes and their line shapes cross-checked against analytical functions, and Guide/Guide_gravity trajectories were checked (with and without gravity) against analytically-computed reflection positions, directions and losses. Source_gen was cross-checked against an independent source module for a 3-Maxwellian moderator model, in wavelength/divergence line shape and absolute flux.


Last Modified: Tuesday, 06-Oct-2026 21:19:10 CEST
Search website mailinglist archive GitHub repos