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 source code

1.5  Component source code

Source code for all components may be found in the MCSTAS library subdirectory of the McStas installation; the recommended installation route is via the conda-forge channel (see the User Manual, section on installation), in which case the library lives under the conda environment’s resource tree. The library location may be queried with mcrun --showcfg=resourcedir, or overridden using the MCSTAS environment variable.

In case users only require to add new features, preserving the existing features of a component, using the EXTEND keyword in the instrument description file is recommended. For larger modification of a component, it is advised to make a copy of the component file into the working directory. A component file in the local directory will in McStas take precedence over a library component of the same name.


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