| 1 | .TH mcdisplay 1 "" "McStas X.Y.Z, Month Day, Year" "USER COMMANDS" |
|---|
| 2 | .SH NAME |
|---|
| 3 | mcdisplay \- instrument geometry and neutron trajectory viewer of the McStas neutron ray-trace simulation package |
|---|
| 4 | .SH SYNOPSIS |
|---|
| 5 | .B mcdisplay |
|---|
| 6 | [\-mzipfh][\-gif|\-ps|\-psc] file.instr param1=val ... |
|---|
| 7 | .SH DESCRIPTION |
|---|
| 8 | The |
|---|
| 9 | .B mcdisplay |
|---|
| 10 | command is the instrument geometry and neutron trajectory viewer of the McStas package. It opens a plot window showing the instrument geometry. Additionally, neutron trajectories can be followed during their propagation between components. It also compiles the instrument whenever necessary. |
|---|
| 11 | .PP |
|---|
| 12 | .B McStas |
|---|
| 13 | is a general tool for simulating neutron scattering instruments and experiments. It is actively supported by |
|---|
| 14 | .I Risoe National Laboratory |
|---|
| 15 | and |
|---|
| 16 | .I ILL |
|---|
| 17 | |
|---|
| 18 | .PP |
|---|
| 19 | McStas is based on a compiler [mcstas(1)] that reads a high-level specification language defining the instrument to be simulated and produces C code that performs the Monte Carlo Simulation. The system is very fast in use, both when setting up the instrument definition and when doing calculations. |
|---|
| 20 | .PP |
|---|
| 21 | McStas supports triple-axis, time-of-flight instruments, and polarised neutrons. It comes with a comprehensive manual and a library of well-tested components that include most standard elements of neutron scattering instruments, including steady-state and pulsed sources, monochromators/analysers, guides, collimators, vanadium and powder samples, velocity selectors and choppers, and a variety of detectors. |
|---|
| 22 | .PP |
|---|
| 23 | The package consists of the following user commands: |
|---|
| 24 | .TP |
|---|
| 25 | mcgui(1) |
|---|
| 26 | is the graphical user interface. Then use the |
|---|
| 27 | .I Neutron Site |
|---|
| 28 | menu to select an example instrument, and access the whole documentation for the |
|---|
| 29 | .I Help |
|---|
| 30 | menu. It contains an instrument editor, methods to plot simulation results, and much more |
|---|
| 31 | .TP |
|---|
| 32 | mcrun(1) |
|---|
| 33 | is the command-line tool for building and running simulations |
|---|
| 34 | .TP |
|---|
| 35 | mcplot(1) |
|---|
| 36 | is the simulation results plotting tool |
|---|
| 37 | .TP |
|---|
| 38 | .B mcdisplay(1) |
|---|
| 39 | is the instrument geometry and neutron trajectory viewer |
|---|
| 40 | .TP |
|---|
| 41 | mcdoc(1) |
|---|
| 42 | is the documentation tool |
|---|
| 43 | .TP |
|---|
| 44 | mcstas(1) |
|---|
| 45 | is the instrument compiler |
|---|
| 46 | .TP |
|---|
| 47 | mcconvert(1) |
|---|
| 48 | can convert Matlab data files into Scilab data files, and vice-versa. It also handles data sets with binary encoding. It also handles parameter scan results. |
|---|
| 49 | .TP |
|---|
| 50 | mcformat(1) |
|---|
| 51 | can transform any text data set from one format to an other. It does not support conversion from binary data sets. It can also merge equivalent results. |
|---|
| 52 | .PP |
|---|
| 53 | We encourage users to refer to the User and Component Manuals, which are available with the command |
|---|
| 54 | .B |
|---|
| 55 | mcdoc |
|---|
| 56 | .P |
|---|
| 57 | .SH OPTIONS |
|---|
| 58 | .TP |
|---|
| 59 | \-h | \-\-help |
|---|
| 60 | displays the command help |
|---|
| 61 | .TP |
|---|
| 62 | \-m | \-\-multi |
|---|
| 63 | .TP |
|---|
| 64 | Show the three instrument side views |
|---|
| 65 | .TP |
|---|
| 66 | \-T | \-\-TOF |
|---|
| 67 | Special Time Of Flight acceptance diagram mode, only with PGPLOT plotter |
|---|
| 68 | .TP |
|---|
| 69 | \-\-tmax=TMAX |
|---|
| 70 | Maximum TOF [ms] (defaults to 50 ms) to be used together with \-\-TOF, only with PGPLOT plotter |
|---|
| 71 | .TP |
|---|
| 72 | \-iCOMP | \-\-inspect=COMP |
|---|
| 73 | Show only trajectories reaching component COMP |
|---|
| 74 | .TP |
|---|
| 75 | \-pPLOTTER | \-\-plotter=PLOTTER |
|---|
| 76 | Output graphics using PLOTTER={PGPLOT,Scilab,Matlab} |
|---|
| 77 | .TP |
|---|
| 78 | \-k | \-\-keep |
|---|
| 79 | Plot all neutrons events together (Primarily for use with PGPLOT and \-psc / \-gif etc.) |
|---|
| 80 | .TP |
|---|
| 81 | \-gif | \-ps | \-psc |
|---|
| 82 | Export figure as gif/b&w ps/color ps and exit |
|---|
| 83 | .SH INSTRUMENT OPTIONS |
|---|
| 84 | These options apply to the generated instrument code (foo.c and foo.out) |
|---|
| 85 | .TP |
|---|
| 86 | \-s SEED | \-\-seed=SEED |
|---|
| 87 | Set random seed (must be non zero) |
|---|
| 88 | .TP |
|---|
| 89 | \-n COUNT | \-\-ncount=COUNT |
|---|
| 90 | Set number of neutrons to simulate |
|---|
| 91 | .TP |
|---|
| 92 | \-d DIR | \-\-dir=DIR |
|---|
| 93 | Put all data files in directory DIR |
|---|
| 94 | .TP |
|---|
| 95 | \-f FILE | \-\-file=FILE |
|---|
| 96 | Put all data in a single file |
|---|
| 97 | .TP |
|---|
| 98 | \-t | \-\-trace |
|---|
| 99 | Enable trace of neutron through instrument (must have been set during code generation with mcstas(1)). This is necessary for mcdisplay(1) to run |
|---|
| 100 | .TP |
|---|
| 101 | \-g | \-\-gravitation |
|---|
| 102 | Enable gravitation for all trajectories |
|---|
| 103 | .TP |
|---|
| 104 | \-a | \-\-data-only |
|---|
| 105 | Do not put any headers in the data files |
|---|
| 106 | .TP |
|---|
| 107 | \-\-no-output-files |
|---|
| 108 | Do not write any data files |
|---|
| 109 | .TP |
|---|
| 110 | \-h | \-\-help |
|---|
| 111 | Show help message for the instrument |
|---|
| 112 | .TP |
|---|
| 113 | \-i | \-\-info |
|---|
| 114 | Detailed instrument information, including valid parameters |
|---|
| 115 | .TP |
|---|
| 116 | \-\-format=FORMAT |
|---|
| 117 | Output data files using format FORMAT (format list obtained from foo.out -h) |
|---|
| 118 | .SH EXAMPLES |
|---|
| 119 | .TP |
|---|
| 120 | Typical usage |
|---|
| 121 | .B mcdisplay |
|---|
| 122 | foo.instr param1=value1 ... |
|---|
| 123 | .TP |
|---|
| 124 | Display 3D view with Matlab (when installed) |
|---|
| 125 | mcdisplay -pMatlab foo.instr param1=value1 .. |
|---|
| 126 | .SH ENVIRONMENT |
|---|
| 127 | The |
|---|
| 128 | .B MCSTAS |
|---|
| 129 | environment variable may be set to define the McStas library location. This is /usr/local/lib/mcstas on Linux systems. Executables are usually located in /usr/local/bin. |
|---|
| 130 | .SH BUGS |
|---|
| 131 | McStas is a large package, and bugs might be found. If so, please report to |
|---|
| 132 | .B http://mcstas.org/McZilla/ |
|---|
| 133 | and the mailing list |
|---|
| 134 | .B neutron-mc@risoe.dk |
|---|
| 135 | .SH AUTHOR |
|---|
| 136 | Peter Kjaer Willendrup, Emmanuel FARHI, Kim Lefmann, and Klaus Lieutenant |
|---|
| 137 | .SH SEE ALSO |
|---|
| 138 | mcstas(1), mcrun(1), mcdisplay(1), mcplot(1), mcgui(1), mcdoc(1), mcformat(1), mcconvert(1) |
|---|
| 139 | .P |
|---|
| 140 | web site: <http://www.mcstas.org> |
|---|
| 141 | .P |
|---|
| 142 | mailing list: <mailto:neutron-mc@risoe.dk> |
|---|
| 143 | .P |
|---|
| 144 | matlab(1), idl(1), scilab(1), octave(1), vitess(1), NISP(1), restrax(1), mcnp(1), tripoli(1) |
|---|