Skip to content
Jakob Garde edited this page Mar 9, 2017 · 6 revisions

The mcgui application is based on PyQt4 with Python3. You can use it to write and run instruments, view simulation data and visualize your instrument.

mcgui

  • Template Instruments: From the file menu, use "New from Template...", select the instrument in the site sub-menus, save a copy of the instrument file locally.

  • Insert Components from library: Enter the instrument editor by clicking the "Edit" button or using ctr-e. You can now insert components via the "View" menu. The component insertion tool will guide you through the process. Use the "Verbose" option to insert all component parameters explicitly.

  • Configuration: File -> Configuration allows you to adjust which mcrun, mcplot and mcdisplay tools mcgui uses when running simulations and plotting simulation data. If you press "Ok" rather than "Save", your selections does not become persistent.

  • Running mcdisplay 1): To use mcdisplay in the most basic way, simply select Display-3D or Display-2D from the "Simulation" menu.

  • Running mcdisplay 2): Run a simulation trace by selecting the "Trace" option in from Simulation/Trace in the "Run Simulation..." dialogue (or by pressing the "Run..." button). Reduce particle count before starting the trace, to perhaps a couple of hundred trace rays/particles. The maximum allowed by all recent mcdisplay implementations is 1000 rays.

  • Cancel simulation run: If you accidentally started a long simulation with e.g. 10^15 neutrons, you can halt it before it finishes by using the "Halt" that is active during a simulation.

Clone this wiki locally