1 / 21

Kim Lefmann, Peter Willendrup

Kim Lefmann, Peter Willendrup. An introdution to. McStas. n. McStas introduction. Flexible, general simulation utility for neutron scattering experiments. Original design for M onte c arlo S imulation of t riple a xis s pectrometers Developed at RISØ DTU and ILL, Grenoble.

huslu
Download Presentation

Kim Lefmann, Peter Willendrup

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. Kim Lefmann, Peter Willendrup An introdution to

  2. McStas n McStas introduction • Flexible, general simulation utility for neutron scattering experiments. • Original design for Monte carlo Simulation of triple axis spectrometers • Developed at RISØ DTU and ILL, Grenoble. GNU GPL license Open Source • 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

  3. McStas n McStas introduction

  4. McStas n What is McStas used for? • Instrumentation • Planning • Construction • Virtual experiments • Data analysis • Teaching

  5. McStas n What is McStas used for? • Instrumentation • Planning • Construction • Virtual experiments • Data analysis • Teaching

  6. McStas n Simulated What is McStas used for? • Instrumentation • Planning • Construction • Virtual experiments • Data analysis • Teaching Real data

  7. McStas n What is McStas used for? • Instrumentation • Planning • Construction • Virtual experiments • Data analysis • Teaching

  8. McStas n What is McStas used for? • Instrumentation • Planning • Construction • Virtual experiments • Data analysis • Teaching (KU 2005-2007)‏

  9. McStas n What is McStas used for? • Instrumentation • Planning • Construction • Virtual experiments • Data analysis • Teaching (KU 2005-2007)‏

  10. McStas n What is McStas used for? • Instrumentation • Planning • Construction • Virtual experiments • Data analysis • Teaching (KU 2005-2007)‏

  11. McStas n McStas neutron rays Neutron ray/package: Weight (p): # neutrons (left) in the package Coordinates (x,y,z)‏ Velocity (vx,vy,vz)‏ Spin (sx,sy,sz)‏

  12. McStas n McStas components Components: Here the neutron physics happen, neutron weight adjusted according to scattering probabilities etc.

  13. McStas n McStas instrument Instrument: positioning + transformation between sequential component coordinate systems, e.g. neutron source, crystal, detector.

  14. McStas n McStas instrument

  15. Portable code (Unix/Linux/Mac/Win32)‏ Write in (simple) 'instrument' language 'Component' files (~100) inserted from library Sources, optics, samples, monitors If needed, write your own components GUI / commandline functionality Tools for plotting and datahandling included McStas n McStas overview

  16. Short McStas introduction n McStas

  17. Three levels of source code: Instrument file (All users)‏ Component files (Some users)‏ ANSI c code (no users)‏ McStas n How is it done?

  18. McStas n Instrument file Instrument file: Written by you!

  19. McStas n Component file Component file: Written by developers and possibly you!

  20. McStas n Generated c-code McStas is a (pre)compiler! Input is .comp and .instr files + runtime functions for e.g. random numbers Output is a single c-file, which can be compiled using e.g. gcc. Can take input arguments if needed. Written by mcstas!

  21. McStas n Demo time! Let's see it run!

More Related