|
|
|
|
![]() |
![]() |
![]() | ||
|
About McStas Documentation |
4.2 Brief introduction to the graphical user interfaceThis section gives an ultra-brief overview of how to use McStas once it has been
properly installed. It is intended for those who do not read manuals if they can avoid it.
For details on the different steps, see the following sections. This section uses the
To start the graphical user interface of McStas, run the To load an instrument, select “New from Template” (formerly known as the “Neutron site”
menu) and open the template/example
Next, select “Run simulation” from the “Simulation” menu. The McStas compiler mcstas will
translate the definition into an executable program. Then mcgui will pop up a dialog window.
Type a value for the “ROT” parameter (e.g. 90), check the “Plot results” option, and select
“Start”. The simulation will run, and when it finishes after a while the results will be plotted in
a window, using one of the Python plotting back-ends (matplotlib, pyqtgraph or an
HTML/browser view), see section 4.5.6. For other options, execute To visualize or debug the simulation graphically, repeat the steps but check the “Trace” option instead of the “Simulate” option. A window will pop up showing a sketch of the instrument, drawn by the mcdisplay front-end (section 4.5.5), again using one of the matplotlib, pyqtgraph or webGL back-ends. For a slightly longer gentle introduction to McStas, see the McStas tutorial (available
from [Mcsa]), and as of version 3.10.4 built into the |
|||||||
| ||||||||