kim lefmann peter willendrup
Download
Skip this Video
Download Presentation
Kim Lefmann, Peter Willendrup

Loading in 2 Seconds...

play fullscreen
1 / 21

Kim Lefmann, Peter Willendrup - PowerPoint PPT Presentation


  • 82 Views
  • Uploaded on

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.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Kim Lefmann, Peter Willendrup' - huslu


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
slide2
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

[email protected] mailinglist

slide3
McStas

n

McStas introduction

slide4
McStas

n

What is McStas used for?

  • Instrumentation
    • Planning
    • Construction
  • Virtual experiments
    • Data analysis
  • Teaching
slide5
McStas

n

What is McStas used for?

  • Instrumentation
    • Planning
    • Construction
  • Virtual experiments
    • Data analysis
  • Teaching
slide6
McStas

n

Simulated

What is McStas used for?

  • Instrumentation
    • Planning
    • Construction
  • Virtual experiments
    • Data analysis
  • Teaching

Real data

slide7
McStas

n

What is McStas used for?

  • Instrumentation
    • Planning
    • Construction
  • Virtual experiments
    • Data analysis
  • Teaching
slide8
McStas

n

What is McStas used for?

  • Instrumentation
    • Planning
    • Construction
  • Virtual experiments
    • Data analysis
  • Teaching

(KU 2005-2007)‏

slide9
McStas

n

What is McStas used for?

  • Instrumentation
    • Planning
    • Construction
  • Virtual experiments
    • Data analysis
  • Teaching

(KU 2005-2007)‏

slide10
McStas

n

What is McStas used for?

  • Instrumentation
    • Planning
    • Construction
  • Virtual experiments
    • Data analysis
  • Teaching

(KU 2005-2007)‏

slide11
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)‏

slide12
McStas

n

McStas components

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

slide13
McStas

n

McStas instrument

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

slide14
McStas

n

McStas instrument

slide15
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

slide17
Three levels of source code:

Instrument file (All users)‏

Component files (Some users)‏

ANSI c code (no users)‏

McStas

n

How is it done?

slide18
McStas

n

Instrument file

Instrument file:

Written by you!

slide19
McStas

n

Component file

Component file:

Written by developers

and possibly you!

slide20
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!

slide21
McStas

n

Demo time!

Let's see it run!

ad