Kim Lefmann, Peter Willendrup. An introdution to. McStas. n. McStas introduction. Flexible, general simulation utility for neutron scattering experiments. Original design for M onte c arlo S imulation of t riple a xis s pectrometers Developed at RISØ DTU and ILL, Grenoble.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
An introdution to
GNU GPL license
Project website at
[email protected] mailinglist
What is McStas used for?
McStas neutron rays
Weight (p): # neutrons (left) in the package
Components: Here the neutron physics happen, neutron weight adjusted according to scattering probabilities etc.
Instrument: positioning + transformation between sequential component coordinate systems, e.g. neutron source, crystal, detector.
Write in (simple) 'instrument' language
'Component' files (~100) inserted from library
Sources, optics, samples, monitors
If needed, write your own components
GUI / commandline functionality
Tools for plotting and datahandling included
Instrument file (All users)
Component files (Some users)
ANSI c code (no users)
How is it done?
Written by you!
Written by developers
and possibly you!
McStas is a (pre)compiler!
Input is .comp and .instr files + runtime functions for e.g. random numbers
Output is a single c-file, which can be compiled using e.g. gcc.
Can take input arguments if needed.
Written by mcstas!
Let's see it run!