Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Introduction to McStas, Berlin MC school 2013 Introduction to McStas Peter Willendrup 1,5, Emmanuel Farhi 2, Erik Knudsen 1,5, Emmanouela Rantsiou 3,6,

Similar presentations


Presentation on theme: "1 Introduction to McStas, Berlin MC school 2013 Introduction to McStas Peter Willendrup 1,5, Emmanuel Farhi 2, Erik Knudsen 1,5, Emmanouela Rantsiou 3,6,"— Presentation transcript:

1 1 Introduction to McStas, Berlin MC school 2013 Introduction to McStas Peter Willendrup 1,5, Emmanuel Farhi 2, Erik Knudsen 1,5, Emmanouela Rantsiou 3,6, Kim Lefmann 4,5 1 Physics Department, Technical University of Denmark, Denmark 2 Calcul Scientifique, Institut Laue-Langevin, France 3 Laboratory for Developments and Methods, Paul Scherrer Institute, Switzerland 4 Niels Bohr Institute, University of Copenhagen, Denmark 5 ESS design update programme, Denmark 6 ESS design update programme, Switzerland

2 2 Introduction to McStas, Berlin MC school 2013 Agenda An introduction to McStas Instruments, components, the neutron ray Quick overview of example instruments A quick demo

3 3 Introduction to McStas, Berlin MC school 2013 McStas Introduction GNU GPL license Open Source mcstas-users@mcstas.orgmcstas-users@mcstas.org mailinglist Project website at http://www.mcstas.org

4 4 Introduction 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 license Open Source neutron-mc@risoe.dkneutron-mc@risoe.dk mailinglist Project website at http://www.mcstas.org McXtrace - since jan 2009 similar in X-rays Synergy, knowledge transfer, shared infrastructure

5 5 Introduction to McStas, Berlin MC school 2013 McStas Introduction GNU GPL license Open Source mcstas-users@mcstas.orgmcstas-users@mcstas.org mailinglist Project website at http://www.mcstas.org

6 6 InstrumentationVirtual experimentsData analysisTeaching Introduction to McStas, Berlin MC school 2013 What is McStas used for? 6 (KU, DTU, schools & workshops)

7 7 Introduction 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

8 8 Introduction to McStas, Berlin MC school 2013 McStas: key concepts Time (t)

9 9 Introduction to McStas, Berlin MC school 2013 McStas: key concepts

10 10 Introduction to McStas, Berlin MC school 2013 McStas: key concepts

11 11 Introduction to McStas, Berlin MC school 2013 McStas: key concepts Local, internal coordinate system!

12 12 Introduction to McStas, Berlin MC school 2013 McStas: key concepts

13 13 Introduction to McStas, Berlin MC school 2013 McStas overview

14 14 Introduction to McStas, Berlin MC school 2013 Under-the-hood / inner workings Code generation

15 15 Introduction to McStas, Berlin MC school 2013 Implementation

16 16 Introduction to McStas, Berlin MC school 2013 Instrument file

17 17 Introduction to McStas, Berlin MC school 2013 Component file

18 18 Introduction to McStas, Berlin MC school 2013 Generated c-code

19 19 Introduction to McStas, Berlin MC school 2013 Writing new comps or understanding existing is not that complex...

20 20 Introduction to McStas, Berlin MC school 2013 Example suite: 86 instruments

21 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 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

23 Introduction to McStas, Berlin MC school 2013 Enough Talk! Let’s see McStas run?

24 24 Introduction to McStas, Berlin MC school 2013 People

25 25 Introduction to McStas, Berlin MC school 2013 Demo time?


Download ppt "1 Introduction to McStas, Berlin MC school 2013 Introduction to McStas Peter Willendrup 1,5, Emmanuel Farhi 2, Erik Knudsen 1,5, Emmanouela Rantsiou 3,6,"

Similar presentations


Ads by Google