Peter Willendrup, Kim Lefmann

Slides:



Advertisements
Similar presentations
National Institute of Advanced Industrial Science and Technology Ninf-G - Core GridRPC Infrastructure Software OGF19 Yoshio Tanaka (AIST) On behalf.
Advertisements

NCeSS e-Stat quantitative node Prof. William Browne & Prof. Jon Rasbash University of Bristol.
McXtrace presentation, Sept McXtrace ray-tracing technology platform Peter Willendrup 1 Erik Knudsen 1 Andrea Prodi 2 Jana Baltser 2 Søren Schmidt.
Training Manual Aug Probabilistic Design: Bringing FEA closer to REALITY! 2.5 Probabilistic Design Exploring randomness and scatter.
Approaches to Data Acquisition The LCA depends upon data acquisition Qualitative vs. Quantitative –While some quantitative analysis is appropriate, inappropriate.
Module F: Simulation. Introduction What: Simulation Where: To duplicate the features, appearance, and characteristics of a real system Why: To estimate.
Robert M. Saltzman © DS 851: 4 Main Components 1.Applications The more you see, the better 2.Probability & Statistics Computer does most of the work.
Hybrid System Performance Evaluation Henrik Bindner, Tom Cronin, Per Lundsager, Oliver Gehrke Risø National Laboratory, Roskilde, Denmark.
Lecture 12 Monte Carlo Simulations Useful web sites:
Joint IAEA-ICTP Workshop on Nuclear Reaction Data for Advanced Reactor Technologies Student’s presentation Calculation of correction factors for neutron.
Farhi – ILL/DS/CS – slide 1 Separating coherent, incoherent and multiple scattering in virtual (and real) experiments Analysing experimental results using.
With Jim Mollé Learn iT! Computer Software Training.
Gaussian process modelling
Biomedical optics brought to you by the BIOP center A joint initiative between the Technical University of Denmark, Risø National Laboratory and.
01/28/05© 2005 University of Wisconsin Last Time Improving Monte Carlo Efficiency.
Oct-03Learning to Use FOFEM 5: Advanced Lesson Missoula Fire Sciences Laboratory Systems for Environmental Management Learning to Use FOFEM 5 Volume II:
Chapter 14 Monte Carlo Simulation Introduction Find several parameters Parameter follow the specific probability distribution Generate parameter.
Chapter 10 Introduction to Simulation Modeling Monte Carlo Simulation.
MCSL Monte Carlo simulation language Diego Garcia Eita Shuto Yunling Wang Chong Zhai.
Peter Willendrup, Kim Lefmann Emmanuel Farhi Current state and future plans for McStas SCANS meeting, Abingdon, Oct 4 th /24.
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Peter Willendrup, Kim Lefmann Introducing McStas 1.9 Introducing McStas McStas team (RISØ/ILL) Introducing McStas 1.9 Emmanuel Farhi, Klaus Lieutenant.
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,
Simulation is the process of studying the behavior of a real system by using a model that replicates the behavior of the system under different scenarios.
1 New features in McStas - Berlin MC school 2013 New features in McStas Peter Willendrup 1,5, Emmanuel Farhi 2, Erik Knudsen 1,5, Emmanouela Rantsiou 3,6,
Debugging and Profiling With some help from Software Carpentry resources.
The Research Alliance in Math and Science program is sponsored by the Office of Advanced Scientific Computing Research, Office of Science, U.S. Department.
Virtual experiments in University teaching Kim Lefmann MCNSI public, ISIS, 27/9-05.
© 2004 NMI31 Integrated Infrastructure Initiatives I3: A brief introduction Integrating projects for a common type of Research Infrastructure.
Feb. 25 Th Erik Knudsen SMEXOS Erik Knudsen, Peter Willendrup, Søren Schmidt Risø-DTU Kim Lefmann, Andrea Prodi, Jana Baltser University of Copenhagen.
Status of JRA6 - MCNSI Kim Lefmann NMI3, ISIS, 28/9-05.
Unit – III Session No. 26 Topic: Optimization
Probabilistic Design Systems (PDS) Chapter Seven.
1 1 Slide Simulation Professor Ahmadi. 2 2 Slide Simulation Chapter Outline n Computer Simulation n Simulation Modeling n Random Variables and Pseudo-Random.
2  World is better informed than in 2000, but a lot more and better data is still needed  Need to make use of new sources of data, but also better document.
1 1 Slide © 2004 Thomson/South-Western Simulation n Simulation is one of the most frequently employed management science techniques. n It is typically.
Dual Target Design for CLAS12 Omair Alam and Gerard Gilfoyle Department of Physics, University of Richmond Introduction One of the fundamental goals of.
Workshop On Nuclear Data for Advanced Reactor Technologies, ICTP , A. Borella1 Monte Carlo methods.
Observing Transfer Functions For Multimode Spectrometers.
Peter Willendrup, Peter Christiansen, Kim Lefmann McStas release 1.9 and beyond McStas release 1.9 and beyond 1 McStas team (RISØ/ILL) McStas 1.9 release.
MAT 4830 Mathematical Modeling 04 Monte Carlo Integrations
Virtual experiments for teaching and training Kim Lefmann MCNSI, ILL, 26/5-05.
T Iteration Demo MapGuide based Web Edit Interface I2 Iteration
Computer Science & Engineering 2111 Database Objects 1 CSE 2111 Introduction to Database Management Systems.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
Bootstrapping James G. Anderson, Ph.D. Purdue University.
Understanding Martian Subsurface Geochemistry using the Dynamic Albedo of Neutrons Instrument on the Mars Science Laboratory Curiosity Rover Jack Lightholder.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
A Short Course on Geant4 Simulation Toolkit Introduction
October, 2001 Hybrid Spectrometer for Single Crystal Studies at the Pulsed SNS: an update. n Principal features of the proposed hybrid spectrometer. n.
Cooperative International Simulations with McStas Vickie Lynch, Meili Chen, John Cobb, Mark Hagen, James Kohl, Stephen Miller, Michael Reuter, Sudharshan.
INSTITUTE OF NUCLEAR SCIENCE AND TECHNOLOGY
reduction data treatment for ARCS
MICE Collaboration Meeting Saturday 22nd October 2005 Malcolm Ellis
High Performance Computing and Monte Carlo Methods
PRM based Protein Folding
Computer Graphics Imaging
Lecture 8 Randomized Algorithms
Lecture 5 – Improved Monte Carlo methods in finance: lab
Path Tracing (some material from University of Wisconsin)
Introduction to Computer Graphics with WebGL
Simulation at NASA for the Space Radiation Effort
Introduction to Computer Graphics with WebGL
Exercise 1-1: Generate p-T diagram for C1, CO2 and C8.
A Short Course on Geant4 Simulation Toolkit Introduction
G4GeneralParticleSource Class:
Simulations in data analysis at ILL
Chapter 14 Monte Carlo Simulation
The Transport Equation
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 12
Presentation transcript:

Peter Willendrup, Kim Lefmann A short introduction to Peter Willendrup, Kim Lefmann 1 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

McStas What is it? What is it good for? How is it done? Use? Agenda McStas What is it? What is it good for? How is it done? Use? Tutorial examples 2 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

What is it? Flexible, general simulation utility for neutron scattering experiments. Originally designed for Monte Carlo Simulation of triple axis spectrometers Developed at RISØ National Laboratory, Roskilde, Denmark – primary (2 people) ILL (Institute Laue Langevin), Grenoble, France – primary (2 people) Apx. 100+ users worldwide, some making contributions Original developer/maintainer Kristian Nielsen (KU), MSc Computer Science and Physics 3 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

What is it good for? Instrumentation Planning Optimization Data analysis “I am seeing this strange effect, could it be due to....” “Toy” spectrometer for students and novice users 4 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

Three levels of source code: Instrument file (All users) How is it done? Three levels of source code: Instrument file (All users) Component files (Some users) ANSI c code (no users) 5 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

How is it done? Instrument file: 6 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

How is it done? Component file: 7 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

How is it done? Resulting ANSI-C file: 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. 8 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

How about the neutron? Neutrons in McStas are neutron 'rays' or 'packages', representing a large number of neutrons emitted by the source (Initial Monte Carlo weight). Each As the neutron package carries the physical properties, reflecting interaction with components in the instrument Spatial coordinates: x,y,z Velocity components: vx,,vy,vz Time: t Spin components: sx,sy,sz Monte Carlo weight: p As physics take place, e.g. scattering in a sample or reflection on a monochromator, the weight is adjusted accordingly (taking local probabilities in the component into account). Coordinate systems: Global and local Global: Normally, neutrons originate at the origin... ;-) z axis is initial travelling dirction, y is gravitational axis Local: z axis is directed towards the 'next' component Focusing: Monte Carlo 'trick' to not spend time on 'useless' neutrons, e.g. send all neutrons in the direction that we are interested in, adjusting the weight accordingly... 9 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

Use? 10 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

Use? Detectors Detector data Neutron source 11 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

Use? 12 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas

Lets go :-) ? Let's go through the tutorial... McStas crash course, 2 independent sessions on sept 14th/15th @ILL 6 registrees for session 1 – Still room for more people 5 registrees for session 2 – Still room for more people -> If you are interested in attending, please come see us, a maximum of 12 people pr. session can attend. 13 Peter Willendrup, Kim Lefmann (RISØ) A gentle instroduction to McStas