| 1 | /******************************************************************************* |
|---|
| 2 | * |
|---|
| 3 | * McStas, neutron ray-tracing package |
|---|
| 4 | * Copyright 1997-2006, All rights reserved |
|---|
| 5 | * Risoe National Laboratory, Roskilde, Denmark |
|---|
| 6 | * Institut Laue Langevin, Grenoble, France |
|---|
| 7 | * |
|---|
| 8 | * Documentation: README |
|---|
| 9 | * |
|---|
| 10 | * %Identification |
|---|
| 11 | * Written by: KN, KL, PEO, EF, PW |
|---|
| 12 | * Date: 2008 |
|---|
| 13 | * Origin: Risoe |
|---|
| 14 | * Release: all McStas |
|---|
| 15 | * Version: $Revision: 1.23 $ |
|---|
| 16 | * |
|---|
| 17 | * This file is part of McStas. |
|---|
| 18 | * It details the installation procedure |
|---|
| 19 | * |
|---|
| 20 | * %Link |
|---|
| 21 | * <a href="http://neutron.risoe.dk/mcstas">Official site</a> |
|---|
| 22 | * <a href="http://www.ill.fr/tas/mcstas">Mirror site</a> |
|---|
| 23 | * |
|---|
| 24 | * %End |
|---|
| 25 | *******************************************************************************/ |
|---|
| 26 | |
|---|
| 27 | This is McStas 1.12 |
|---|
| 28 | Copyright (C) Risoe National Laboratory, 1997-2008. All rights reserved. |
|---|
| 29 | See the file COPYING for conditions on use. |
|---|
| 30 | This software is covered by the GNU General Public License. User instrument |
|---|
| 31 | files generated by McStas, output data or papers based on these use is NOT |
|---|
| 32 | considered "derived work" but is considered normal usage of the software. |
|---|
| 33 | The random number algorithm used by default in McStas is the "Mersenne Twister", |
|---|
| 34 | by Makoto Matsumoto and Takuji Nishimura |
|---|
| 35 | (see http://www.math.keio.ac.jp/~matumoto/emt.html). This code is included in |
|---|
| 36 | the file lib/mcstas-r.c and is distributed under the terms of the GNU |
|---|
| 37 | Library General Public License, see the file lib/LGPL. |
|---|
| 38 | |
|---|
| 39 | If you wish to use McStas in ways that contradict the conditions, |
|---|
| 40 | contact us and chances are that we will be able to make a suitable |
|---|
| 41 | arrangement. |
|---|
| 42 | |
|---|
| 43 | Installation instructions are in the install_docs directory. |
|---|
| 44 | |
|---|
| 45 | Changes from previous versions are in the file CHANGES. Please read that ! |
|---|
| 46 | |
|---|
| 47 | To get started, some example instrument definitions have been supplied |
|---|
| 48 | in the examples/ directory. To run a simulation, the command `mcrun' is |
|---|
| 49 | used. For example: |
|---|
| 50 | |
|---|
| 51 | mcrun prisma2 -n2e6 TT=-30 PHA=22 PHA1=-3 PHA2=-2 PHA3=-1 PHA4=0 PHA5=1 PHA6=2 PHA7=3 TTA=44 |
|---|
| 52 | |
|---|
| 53 | This will first compile the instrument definition (if necessary) and |
|---|
| 54 | subsequently run it. It is also possible to run simulations from the |
|---|
| 55 | graphical user interface `mcgui', or to compile and run simulations |
|---|
| 56 | manually. |
|---|
| 57 | |
|---|
| 58 | The output files will be put in the current directory by default. The |
|---|
| 59 | file tas1-scans in the example directory is a script that will run a |
|---|
| 60 | series of simulations that constitute a line-up experiment of the TAS1 |
|---|
| 61 | spectrometer at Ris. |
|---|
| 62 | |
|---|
| 63 | To fully utilize McStas, you will need a copy of the McStas manual. It |
|---|
| 64 | may be found in the lib/doc directory of the distribution. |
|---|
| 65 | The manual, along with much other information, is |
|---|
| 66 | available from the McStas WWW home page: |
|---|
| 67 | |
|---|
| 68 | http://www.mcstas.org |
|---|
| 69 | |
|---|
| 70 | Contacts for McStas are: |
|---|
| 71 | Kim Lefmann <lefmann@fys.ku.dk> (KL) |
|---|
| 72 | Emmanuel Farhi <farhi@ill.fr> (EF) |
|---|
| 73 | Peter Kjaer Willendrup <peter.willendrup@risoe.dk> (PW) |
|---|
| 74 | Erik Knudsen <erik.knudsen@risoe.dk> (EK) |
|---|
| 75 | |
|---|
| 76 | Previous authors are: |
|---|
| 77 | Kristian Nielsen, email <kristian.nielsen@risoe.dk> (KN) |
|---|
| 78 | Per-Olof ᅵtrand <per-olof.aastrand@risoe.dk> (PEO) |
|---|
| 79 | Klaus Lieutenant <lieutena@ill.fr> (KL2) |
|---|
| 80 | Peter Christiansen <peter.christiansen@risoe.dk> (PC) |
|---|
| 81 | |
|---|
| 82 | Feel free to direct any comments or questions |
|---|
| 83 | to this address. It is an important goal of the McStas project to have |
|---|
| 84 | the program used also outside of Ris, so if you have a reasonable |
|---|
| 85 | request there is a good chance that we will be willing to help you out. |
|---|
| 86 | |
|---|
| 87 | Some parts of McStas require additional software to be installed in |
|---|
| 88 | order to work. The needed software packages are all freely |
|---|
| 89 | distributable, and can be found on the McStas WWW home page or on the |
|---|
| 90 | McStas CD-Rom distribution. |
|---|
| 91 | |
|---|
| 92 | - The 'mcstas' base program only requires a C compiler, which is usually |
|---|
| 93 | provided with most Unix/Linux systems. For Windows, the Dev-C++ compiler |
|---|
| 94 | from Bloodshed may be installed freely. |
|---|
| 95 | - The `mcrun' and `gscan' front-ends requires Perl version 5 or later, |
|---|
| 96 | which is available on most Unix-like systems, and may installed for |
|---|
| 97 | Windows as well. |
|---|
| 98 | - The `mcdisplay' front-end requires Perl version 5 or later, and one |
|---|
| 99 | of the following: |
|---|
| 100 | 1- the PGPLOT graphics Fortran library, and the PgPerl interface |
|---|
| 101 | between Perl and PGPLOT |
|---|
| 102 | 2- Matlab |
|---|
| 103 | 3- Scilab and its Plotlib |
|---|
| 104 | - The `mcplot' front-end requires Perl version 5 or later, and one |
|---|
| 105 | of the following: |
|---|
| 106 | 1- the PGPLOT graphics Fortran library, and the PgPerl interface |
|---|
| 107 | between Perl and PGPLOT, and the PDL scientific data extension |
|---|
| 108 | for Perl. |
|---|
| 109 | 2- Matlab |
|---|
| 110 | 3- Scilab |
|---|
| 111 | - The `mcgui' front-end requires Perl version 5 or later, the perl/tk |
|---|
| 112 | perl extension, and one of the following:, |
|---|
| 113 | 1- the PGPLOT graphics library, the PgPerl interface between Perl |
|---|
| 114 | and PGPLOT, and the PDL scientific data extension for Perl. |
|---|
| 115 | 2- Matlab |
|---|
| 116 | 3- Scilab and its Plotlib |
|---|
| 117 | |
|---|
| 118 | Information on Perl may be found on |
|---|
| 119 | http://language.perl.com/index.html |
|---|
| 120 | Information on Tcl/Tk may be found on |
|---|
| 121 | http://tcl.tk.com/ |
|---|
| 122 | and |
|---|
| 123 | http://www.activestate.com/ |
|---|
| 124 | Information on perl/tk may be found on |
|---|
| 125 | http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html |
|---|
| 126 | Information on Scilab may be found on |
|---|
| 127 | http://www-rocq.inria.fr/scilab/ |
|---|
| 128 | and the Plotlib will be available at |
|---|
| 129 | http://www.dma.utc.fr/~mottelet/myplot.html |
|---|
| 130 | Information on PGPLOT may be found on |
|---|
| 131 | http://astro.caltech.edu/~tjp/pgplot/index.html |
|---|
| 132 | Information on PgPerl may be found on |
|---|
| 133 | http://www.aao.gov.au/local/www/kgb/pgperl/ |
|---|
| 134 | Information on PDL may be found on |
|---|
| 135 | http://www.aao.gov.au/local/www/kgb/perldl/ |
|---|
| 136 | Information on Dev-C++ for Windows may be found on |
|---|
| 137 | http://www.bloodshed.net/dev/devcpp.html |
|---|
| 138 | Information on Matlab may be found on (commercial) |
|---|
| 139 | http://www.mathworks.com |
|---|
| 140 | |
|---|