From peter.willendrup at risoe.dk Wed Oct 11 11:36:01 2006 From: peter.willendrup at risoe.dk (Peter Willendrup) Date: Wed, 11 Oct 2006 11:36:01 +0200 Subject: [neutron-mc] Postdoctoral position at Risoe (McStas) Message-ID: <1160559361.6002.59.camel@localhost.localdomain> (From http://www.risoe.dk/stillinger/afm_259-06.htm ) Postdoctoral fellow at Ris? The Materials Research Department at Ris? National Laboratory, Denmark, is seeking candidates for a post doc. position in the field of Monte Carlo simulation of neutron scattering instruments Job description You will be member of the McStas team ( http://www.mcstas.org ), developing a World leading package for neutron scattering simulations. Your main task will be to develop tools for performing virtual experiments in connection with the construction of 7 new instruments at the ISIS neutron facility, Oxfordshire, England. The task of virtual experiments involves converting a detailed physical knowledge of the experimental technique into reliable and fast computer code with a user-friendly interface. An important task in this respect is the use and validation of simulations of polarized neutrons. The work involves activity at Ris? and ISIS, as well as meetings elsewhere in Europe. The work will also contain training and supervision of users and students. Qualifications * A PhD degree in physics, engineering or equivalent. * Experience within computer simulation or software development * Good abilities for communicating in English. * Ability to work independent and take responsibility for progress and quality of projects. * Experience within solid state physics and/or instrumentation will be an advantage. Terms of employment You will be employed in accordance with the terms valid for scientific staff at Ris? National Laboratory. The period of employment is two years. Application If you are interested in the position, you should send your application, including CV, list of publications, copies of diplomas, and recommendations, marked "Post Doc. 259-06" to: Ris? National Laboratory Human Resources, Building 101 Att.: Lene Birch P.O. Box 49 DK 4000 Roskilde Denmark You are welcome to send your application by e-mail to lene.birch at risoe.dk The deadline for the application is 15 November 2006. Ris? requires variety and supports equal opportunities irrespective of sex and ethnic background. Further information You are welcome to contact Senior scientist Kim Lefmann, + 45 4677 4726, kim.lefmann at risoe.dk or McStas project maintainer Peter Kj?r Willendrup, +45 4677 5862, peter.willendrup at risoe.dk You can read more about Ris? on http://www.risoe.dk From chris2 at lns.mit.edu Wed Nov 1 05:45:29 2006 From: chris2 at lns.mit.edu (Christopher Crawford) Date: Tue, 31 Oct 2006 21:45:29 -0700 Subject: [neutron-mc] Ntuples for McStas Message-ID: <0C140FFD-DD8F-4E0C-B75D-4B5F3EB490E2@lns.mit.edu> Dear McStas developers, First, thanks for an excellent software package. We recently used McStas to do a detailed optimization of choppers for the Fundamental Neutron Physics Beamline (FNPB) Cold Guide at the SNS, and it worked very well. It was easy to use and very extensible. Second, I would like to contribute a new component 'Ntuple', which produces ROOT ntuples of a McStas simulation, event by event. An ntuple is an array of numbers with one row per event, and one column for each variable being booked, for instance, a neutron state variable at some point in the instrument. Such raw data could be stored in any number of formats; we chose ROOT because of its efficient storage, a simple interactive histogram drawing command, and a powerful macro language (interpreted or compiled C++). One can form arbitrary 1-d, 2-d, or 3-d histograms from the ntuple, and events can be cut or weighted by other parameters as the histogram is drawn. Here are some possible uses: a) Look at correlations in events, for example before and after an interaction. Or plot the distribution of neutron losses along the instrument. b) Investigate the variation of active components in real time after the simulation. For example, one can use the coordinates (x,y,t) of a neutron as it crosses a chopper plane to simulate a chopper cut as you are booking histograms. In this way the simulation can be replayed hundreds or thousands of times realistically during an optimization. We also implemented both the transmission and polarization of a He3 spin filter, an RF spin flipper, and a liquid H2 target using similar cuts and weights ('tx_pol_cuts.C'). To use this component, you must install ROOT (http://root.cern.ch) on your Win32, MacOSX, Linux, or Unix platform. I have included a couple of examples in the attached tgz file; a minimal example can be tested with the following files. Unfortunately it cannot be compiled using 'mcrun'. Instead, use the Makefile: "make Vanadium_ntuple". Vanadium_ntuple.instr - minor modification from 'vanadium_example.instr' Ntuple.comp - the new component ntuple.cc, h - supporting C++ files Makefile - to handle linking C, C++ As an more complicated example, I include our simulation of the FNPB Cold line, and associated ROOT macro files used to analyze the ntuple data and optimize the NPDGamma experiment. These macros may or may not be legible. Polychromatic.instr - FNPB cold beamline Flag.comp - minor modification of Arm.comp, propagates neutron SNS_*, sct*.dat - SNS specific components tx_pol_cuts.C - ROOT macro producing cut strings to simulate active components chop_width.C - ROOT macro for plotting and tuning chopper opening and closing widths p2n_line.C - ROOT macro to optimize NPDGamma FOM (choppers, RFSF) ROOT also has excellent facilities for 3-d drawing and histograms, but these are already addressed with the current McStas tools. If you have any questions, I would be happy to answer them. --Chris Crawford, University of Tennessee TA-53/MPF-1/D111 P-25 MS H846 LANL, Los Alamos, NM 87545 505-665-9804(o) 665-4121(f) 662-0639(h) -------------- next part -------------- A non-text attachment was scrubbed... Name: mcstas_ntp.tgz Type: application/octet-stream Size: 140293 bytes Desc: not available URL: -------------- next part -------------- From peter.willendrup at risoe.dk Fri Dec 8 15:47:47 2006 From: peter.willendrup at risoe.dk (Peter Willendrup) Date: Fri, 08 Dec 2006 15:47:47 +0100 Subject: [neutron-mc] McStas 1.10 release Message-ID: <1165589267.19907.11.camel@localhost.localdomain> Hello everyone, The McStas developer team is happy to report that the 1.10 release of our software is finally out. You can get the installer package from http://www.mcstas.org/download Among other things, the new release includes * Much improved support for polarisation * A new optimisation feature * New components * A complete .exe installer for Win32 systems, including all needed support software For a complete list of changes, see the attached CHANGES.TXT document. Thanks to Peter Christiansen for his work on polarisation and to the complete list of component contributors. Best regards from The McStas team: Peter Willendrup (Ris?) Emmanuel Farhi (ILL) Kim Lefmann (Ris?) -------------- next part -------------- /******************************************************************************* * * McStas, neutron ray-tracing package * Copyright (C) 1997-2006, All rights reserved * Risoe National Laboratory, Roskilde, Denmark * Institut Laue Langevin, Grenoble, France * * Documentation: CHANGES * * %Identification * Written by: KN, KL, PEO, EF, PW * Date: 1997 * Origin: Risoe, ILL, ANSTO * Release: McStas 1.8 * Version: 1.8 * Modified by: KN, October 26, 1998 : initial release 1.0 * Modified by: KN, March 31, 1999 : release 1.1 * Modified by: KN, January 31, 2000 : release 1.2 * Modified by: KN, May 18, 2000 : release 1.3 * Modified by: KN, July 28, 2000 : release 1.4 * Modified by: KN, PEO, March 16, 2001: release 1.4.1 * Modified by: PEO, EF, October, 10th, 2001: release 1.5 * Modified by: PW, EF, May 19th 2003: version 1.7 * Modified by: PW, EF, March 4th 2004: version 1.8 * Modified by: PW, EF, November 16th 2005: version 1.9 * * This file is part of McStas version 1.9, released November, 16th, 2005. * It gives a 'changes' list from the beginning of the project * *******************************************************************************/ Changes in McStas v1.9.1, Mar 29, 2006 General - Update release, mainly bugfixes plus a few other things Documentation - Component manual slightly updated according to adding/modification of components. Tools - mcgui: A few bugfixes. Note also that if you experience crashes when starting/running GNOME/Gtk2 applications, update your perl-Tk installation. Two ways to do this: 1) Get the tarball from http://www.mcstas.org/download/Tk-804.027_gtk2_patch.tar.gz and install using 'perl Makefile.PL && make && make install'. 2) Do a 'make tk' in the McStas unpacked McStas source directory. This will download and install the tarball into your McStas system directory. Components - DiskChopper.comp - new disc chopper component. Chopper.comp made obsolete. See mcdoc page / component manual for further details. - Guide.comp - reads reflectivity tables from disk. - Isotropic_Sqw - minor bugfixes, validated against PowerN, V_sample, etc. - PowderN - validated against Isotropix_Sqw, Squires, experimental data. WARNINGS - Because of rapid changes in the support software for McStas, the current release has support for only some releases of: * Scilab (Win32 and Unix) - pick release 4.0 if available or pick release 3.0 from , e.g. from http://www.scilab.org/download/index_download.php?page=oldReleases.html * Perl (Win32) - on Windows we only support Perl 5.6 - pick http://downloads.activestate.com/ActivePerl/Windows/5.6/ActivePerl-5.6.1.638-MSWin32-x86.msi * If you are running Unix with GNOME/Gtk2 applications, you may experience problems with mcgui crashing, please install updated perl-Tk as noted above. From peter.willendrup at risoe.dk Fri Dec 8 16:21:47 2006 From: peter.willendrup at risoe.dk (Peter Willendrup) Date: Fri, 08 Dec 2006 16:21:47 +0100 Subject: [neutron-mc] McStas 1.10 release In-Reply-To: <1165589267.19907.11.camel@localhost.localdomain> References: <1165589267.19907.11.camel@localhost.localdomain> Message-ID: <1165591307.19907.30.camel@localhost.localdomain> Hello again, It seems I attached an old version of the CHANGES document. To see the one from McStas-1.10, please go to http://www.mcstas.org/download/src/CHANGES Sorry for the inconvenience. Peter Willendrup On Fri, 2006-12-08 at 15:47 +0100, Peter Willendrup wrote: > Hello everyone, > > > The McStas developer team is happy to report that the 1.10 release of > our software is finally out. > > You can get the installer package from http://www.mcstas.org/download > > Among other things, the new release includes > > * Much improved support for polarisation > * A new optimisation feature > * New components > * A complete .exe installer for Win32 systems, including all > needed support software > > For a complete list of changes, see the attached CHANGES.TXT document. > > Thanks to Peter Christiansen for his work on polarisation and to the > complete list of component contributors. > > > Best regards from > > The McStas team: > > Peter Willendrup (Ris?) > Emmanuel Farhi (ILL) > Kim Lefmann (Ris?) > > _______________________________________________ > neutron-mc mailing list > neutron-mc at risoe.dk > http://mailman.risoe.dk/mailman/listinfo/neutron-mc