1 / 25

Introduction to McStas

Introduction to McStas. Peter Willendrup 1,5 , Emmanuel Farhi 2 , Erik Knudsen 1,5 , Emmanouela Rantsiou 3,6 , Kim Lefmann 4,5

Download Presentation

Introduction to McStas

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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 Introduction to McStas, Berlin MC school 2013

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

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

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

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

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

  7. Reliability - cross comparisons E. Farhi, P. Willendrup et al., in preparation P. Willendrup et al., Physica B, 386, (2006), 1032. Introduction to McStas, Berlin MC school 2013

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

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

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

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

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

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

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

  15. Implementation Introduction to McStas, Berlin MC school 2013

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

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

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

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

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

  21. 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 Introduction to McStas, Berlin MC school 2013

  22. 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

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

  24. People Introduction to McStas, Berlin MC school 2013

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

More Related