root/branches/mcstas-1.x/mcdisplay.1

Revision 1691, 4.9 KB (checked in by farhi, 6 years ago)

added man mages

Line 
1.TH mcdisplay 1  "" "McStas X.Y.Z, Month Day, Year" "USER COMMANDS"
2.SH NAME
3mcdisplay \- 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
8The
9.B mcdisplay
10command 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
13is a general tool for simulating neutron scattering instruments and experiments. It is actively supported by
14.I Risoe National Laboratory
15and
16.I ILL
17
18.PP
19McStas 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
21McStas 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
23The package consists of the following user commands:
24.TP
25mcgui(1)
26is the graphical user interface. Then use the
27.I Neutron Site
28menu to select an example instrument, and access the whole documentation for the
29.I Help
30menu. It contains an instrument editor, methods to plot simulation results, and much more
31.TP
32mcrun(1)
33is the command-line tool for building and running simulations
34.TP
35mcplot(1)
36is the simulation results plotting tool
37.TP
38.B mcdisplay(1)
39is the instrument geometry and neutron trajectory viewer
40.TP
41mcdoc(1)
42is the documentation tool
43.TP
44mcstas(1)
45is the instrument compiler
46.TP
47mcconvert(1)
48can 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
50mcformat(1)
51can 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
53We encourage users to refer to the User and Component Manuals, which are available with the command
54.B
55mcdoc
56.P
57.SH OPTIONS
58.TP
59\-h | \-\-help
60displays the command help
61.TP
62\-m | \-\-multi
63.TP
64Show the three instrument side views
65.TP
66\-T | \-\-TOF
67Special Time Of Flight acceptance diagram mode, only with PGPLOT plotter
68.TP
69\-\-tmax=TMAX
70Maximum TOF [ms] (defaults to 50 ms) to be used together with \-\-TOF, only with PGPLOT plotter
71.TP
72\-iCOMP | \-\-inspect=COMP
73Show only trajectories reaching component COMP
74.TP
75\-pPLOTTER | \-\-plotter=PLOTTER
76Output graphics using PLOTTER={PGPLOT,Scilab,Matlab}
77.TP
78\-k | \-\-keep
79Plot all neutrons events together (Primarily for use with PGPLOT and \-psc / \-gif etc.)
80.TP
81\-gif | \-ps | \-psc
82Export figure as gif/b&w ps/color ps and exit
83.SH INSTRUMENT OPTIONS
84These options apply to the generated instrument code (foo.c and foo.out)
85.TP
86\-s SEED | \-\-seed=SEED
87Set random seed (must be non zero)
88.TP
89\-n COUNT | \-\-ncount=COUNT
90Set number of neutrons to simulate
91.TP
92\-d DIR | \-\-dir=DIR
93Put all data files in directory DIR
94.TP
95\-f FILE | \-\-file=FILE
96Put all data in a single file
97.TP
98\-t | \-\-trace
99Enable 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
102Enable gravitation for all trajectories
103.TP
104\-a | \-\-data-only
105Do not put any headers in the data files
106.TP
107\-\-no-output-files
108Do not write any data files
109.TP
110\-h | \-\-help
111Show help message for the instrument
112.TP
113\-i | \-\-info
114Detailed instrument information, including valid parameters
115.TP
116\-\-format=FORMAT
117Output data files using format FORMAT (format list obtained from foo.out -h)
118.SH EXAMPLES
119.TP
120Typical usage
121.B mcdisplay
122foo.instr param1=value1 ...
123.TP
124Display 3D view with Matlab (when installed)
125mcdisplay -pMatlab foo.instr param1=value1 ..
126.SH ENVIRONMENT
127The
128.B MCSTAS
129environment 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
131McStas is a large package, and bugs might be found. If so, please report to
132.B http://mcstas.org/McZilla/
133and the mailing list
134.B neutron-mc@risoe.dk
135.SH AUTHOR
136Peter Kjaer Willendrup, Emmanuel FARHI, Kim Lefmann, and Klaus Lieutenant
137.SH SEE ALSO
138mcstas(1), mcrun(1), mcdisplay(1), mcplot(1), mcgui(1), mcdoc(1), mcformat(1), mcconvert(1)
139.P
140web site:     <http://www.mcstas.org>
141.P
142mailing list: <mailto:neutron-mc@risoe.dk>
143.P
144matlab(1), idl(1), scilab(1), octave(1), vitess(1), NISP(1), restrax(1), mcnp(1), tripoli(1)
Note: See TracBrowser for help on using the browser.