Instrument Simulation:mcstas:Installation
From DANSE
| Table of contents |
[edit]
This page is out of date
Please refer to Install DANSE simulation packages (http://arcscluster.caltech.edu:5001/Install/InstallInstrumentSimulationFromSource)
[edit]
install pyre framework. please refer to Installing_build_procedure_and_framework
[edit]
install simulation package
[edit]
install mcstas [1] (http://neutron.risoe.dk)
- Instructions: [2] (http://neutron.risoe.dk/download/src/install_docs/html/install.html)
- unset $MCSTAS if it is not set to the mcstas executable
- Mac OS X note: Just follow the installation instructions for Linux.
[edit]
install swig [3] (http://www.swig.org/)
- You can download the source code or binary package here: [4] (http://sourceforge.net/project/showfiles.php?group_id=1645)
- Follow the INSTALL file in the installation tree. The usual way:
./configure make make install
[edit]
With installaions of mcstas and swig, do the following
make sure mcstas and swig are in $PATH
[edit]
install pyre-mcstas
check out mcstas package into $DV_DIR
$ cd $DV_DIR $ cvs -d username@cvs.cacr.caltech.edu:/srv/cvs/arcs co arcs/packages/mcstas
Now let us make an environment variable
$ PYRE_MCSTAS = $DV_DIR/arcs/packages/mcstas
for convenience. To build the package
$ cd $PYRE_MCSTAS $ mm export $ mm
now we need to wrap all mcstas components to pyre-mcstas components
$ cd ~ $ python >>> from mcstas_wrapper import Wrapper >>> Wrapper.wrap_all()
this will take a while. If sucessful, we can now build the pyre-mcstas components
$ cd $PYRE_MCSTAS/pyre_components $ mm
This concludes the installation.
For the first test
$ cd $PYRE_MCSTAS/tests $ ./instr_test1.py
- For a turorial about how to use the package, take a look at Instrument_Simulation:mcstas:Tutorial
- Back to Instrument_Simulation
