Screenshots

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
Comments
mcgui
McStas Main Interface (mcgui)

Type 'mcgui' at prompt (mcgui.pl on Windows).

Select the Neutron site menu, and the Brookhaven/H8 instrument as a test.
mgui-edit
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.
mcdoc
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.
mgui-run
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]
mcplot-matlabmcplot-pgplot
mcplot-scilab
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, ...
mcplot-matlab-scanmcplot-pgplot-single
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.
mcdisplay-matlabmcdisplay-pgplot
mcdisplay-scilab
mcdisplay-vrml
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 scilab.org
  5. octagaplayer (VRML/openGL) from octaga.com
  6. pgplot and perl-PGPLOT