1 introduction to mcstas, berlin mc school 2013 introduction to mcstas peter willendrup 1,5,...
Post on 20-Jan-2016
217 Views
Preview:
TRANSCRIPT
1
Introduction to McStas, Berlin MC school 2013
Introduction to McStas
Peter Willendrup1,5, Emmanuel Farhi2, Erik Knudsen1,5, Emmanouela Rantsiou3,6, Kim Lefmann4,5
1Physics Department, Technical University of Denmark, Denmark2Calcul Scientifique, Institut Laue-Langevin, France3Laboratory for Developments and Methods, Paul Scherrer Institute, Switzerland4Niels Bohr Institute, University of Copenhagen, Denmark5ESS design update programme, Denmark6ESS design update programme, Switzerland
2Introduction to McStas, Berlin MC school 2013
Agenda
•An introduction to McStas
•Instruments, components, the neutron ray
•Quick overview of example instruments
•A quick demo
3Introduction to McStas, Berlin MC school 2013
McStas Introduction
GNU GPL license
Open Source
mcstas-users@mcstas.org mailinglistProject website athttp://www.mcstas.org
4Introduction to McStas, Berlin MC school 2013
McStas Introduction•Flexible, general simulation utility for neutron scattering experiments.
•Original design for Monte carlo Simulation of triple axis spectrometers
•Developed at RISØ DTU, KU and ILL, Grenoble.
•V. 1.0 by K Nielsen & K Lefmann (1998)
•Currently 2.5+1 people full time plus students
4
GNU GPL licenseOpen Source
neutron-mc@risoe.dk mailinglistProject website athttp://www.mcstas.org
McXtrace - since jan 2009 similar in X-rays
• Synergy, knowledge transfer, shared infrastructure
5Introduction to McStas, Berlin MC school 2013
McStas Introduction
GNU GPL license
Open Source
mcstas-users@mcstas.org mailinglistProject website athttp://www.mcstas.org
6
•InstrumentationVirtual experimentsData analysisTeaching
Introduction to McStas, Berlin MC school 2013
What is McStas used for?
6
(KU, DTU, schools & workshops)
7Introduction to McStas, Berlin MC school 2013
Reliability - cross comparisons
P. Willendrup et al., Physica B, 386, (2006), 1032.E. Farhi, P. Willendrup et al., in preparation
8Introduction to McStas, Berlin MC school 2013
McStas: key concepts
Time (t)
9Introduction to McStas, Berlin MC school 2013
McStas: key concepts
10
Introduction to McStas, Berlin MC school 2013
McStas: key concepts
11
Introduction to McStas, Berlin MC school 2013
McStas: key concepts Local, internal coordinate system!
12
Introduction to McStas, Berlin MC school 2013
McStas: key concepts
13
Introduction to McStas, Berlin MC school 2013
McStas overview
14
Introduction to McStas, Berlin MC school 2013
Under-the-hood / inner workings
Code generation
15
Introduction to McStas, Berlin MC school 2013
Implementation
16
Introduction to McStas, Berlin MC school 2013
Instrument file
17
Introduction to McStas, Berlin MC school 2013
Component file
18
Introduction to McStas, Berlin MC school 2013
Generated c-code
19
Introduction to McStas, Berlin MC school 2013
Writing new comps or understanding existing is not that complex...
20
Introduction to McStas, Berlin MC school 2013
Example suite: 86 instruments
Introduction to McStas, Berlin MC school 2013
Including user contribs•Well-developed community support
•30-40% of existing and new additions are from users
•No direct refereeing of the code, but these requirements:
•At least one test-instrument
•Meaningful documentation headers (in-code docs)
•Contributions go in dedicated contrib/ section of library
•Natural life-cycle of contrib’s
•Bug-fixes are applied both by contributor and developers
•If contributor becomes unavailable either:
•Many users of comp: Promote to official components, e.g. in optics/
•Few/no users of comp: Move to obsolete/ until next major release
22
Introduction to McStas, Berlin MC school 2013
Documentation•Basic use info is available inside comp & instr codes, extracted by perl to html
•100+ page manuals documenting•Metalanguage•What is “under the hood”•Examples of practical use plus advanced features•Assumptions and algorithms applied in the components
•More than 70 example instruments
•Various tutorial and teach yourself solutions are available
Introduction to McStas, Berlin MC school 2013
Enough Talk!Let’s see McStas run?
24
Introduction to McStas, Berlin MC school 2013
People
25
Introduction to McStas, Berlin MC school 2013
Demo time?
top related