User and Programmers Guide to the Neutron Ray-Tracing Package McStas, version 3.8.6

3  Running McStas

This chapter describes usage of the McStas simulation package. In case of problems regarding installation or usage, the McStas mailing list [Mcs] or the authors should be contacted.

Performing a simulation using McStas can be divided into the following steps/elements


PIC


Figure 3.1.: An illustration of the structure of McStas.


3.1 Installation and updates
3.1.1 Important note for Windows users
3.1.2 New releases of McStas
3.2 Brief introduction to the graphical user interface
3.3 Running the instrument compiler
3.3.1 Code generation options
3.3.2 Specifying the location of files
3.3.3 Embedding the generated simulations in other programs
3.3.4 Running the C compiler
3.4 Running the simulations
3.4.1 Choosing an output data file format
3.4.2 Basic import and plot of results
3.4.3 Interacting with a running simulation
3.4.4 Optimizing simulation speed
3.4.5 Optimizing instrument parameters
3.5 Using simulation front-ends
3.5.1 The graphical user interface (mcgui)
3.5.2 Running simulations on the commandline (mcrun)
3.5.3 GPU acceleration via OpenACC
3.5.4 Graphical display of simulations (mcdisplay)
3.5.5 Plotting the results of a simulation (mcplot)
3.5.6 Plotting resolution functions (mcresplot)
3.5.7 Creating and viewing the library, component/instrument help and Manuals (mcdoc)
3.5.8 Self-testing the installation (mctest, mcviewtest)
3.6 Data formats - Analyzing and visualizing the simulation results
3.6.1 The McStas/McCode text format
3.6.2 NeXus format
3.7 Using MPI for parallel computing
3.7.1 Parallel computing (MPI)
3.7.2 McRun options for MPI
3.7.3 McStas/MPI Performance
3.7.4 MPI Bugs and limitations