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


About McStas
 Conditions of use
 Project funding

 Linux Install (deb/rpm)
 Mac OS X Install
 Unix Install (src code)
 Windows Install
 Other Downloads (share)

Mailing list

Search web/mailinglist

 McStas manual
 Known problems
 C Compilers




Report bugs


McStas Ubuntu live-dvd


The following screenshots illustrate some of the capabilities of McStas. All of these can be produced from the McStas LiveDVD (burn and reboot).

Screen shots
McStas Main Interface (mcgui)

Type 'mcgui' at prompt ( on Windows).

Select the Neutron site menu, and the Brookhaven/H8 instrument as a test.
Instrument Editor (mcgui)

Click on the Edit button of the McGUI interface (right side). An editor with highlight syntaxing appears, showing the instrument description [h8_test.instr]. It enables to insert components easily from the Component Library.
Documentation (mcdoc)

Select on the Help menu of the McGUI interface (right side).
A browser shows components and instruments available, as well as links to the Manuals and the Data Base.
Run Dialog (mcgui)

Click on the Run button of the McGUI interface (right side). The current instrument is compiled and finally the Run Dialog appears. From there you may request single simulations, scan of parameters (series of simulations), optimization of instrument parameters and geometry view of the instrument. Multi-processing is also available.

In the example, we have requested a scan of the Lambda parameter of [h8_test.instr]
Plotting simulation results (mcplot)

Each simulation result can be view either as an overview of all instrument monitors, or looking at each monitor data.

Data files are usually saved as text, using the original McStas format, or Matlab, Scilab, IDL, XML, HTML/VRML, Octave, ...
Plotting simulation results (mcplot): scan results and single monitors

Click on the Plot button of the McGUI interface. When simulating a scan of a parameter, the simulation produces the integral value of monitors as a function of the scan parameters.
Instrument geometry view (mcdisplay)

In the Run Dialog, you may choose the '3D Trace' execution mode. A view of the instrument is then produced. Neutron trajectories can be followed. Rather use a limited number of neutrons.

The VRML view is specially nice to walk around.

The system used to generate these screenshots had a Linux Ubuntu system with:
  1. gcc and libc
  2. perl, perl-tk, perl-dl
  3. Matlab 7
  4. scilab 4.0 from
  5. octagaplayer (VRML/openGL) from
  6. pgplot and perl-PGPLOT

Last Modified: Tuesday, 14-Oct-2008 15:55:05 CEST
Search website mailinglist archive GitHub repos