Introduction to the Monte Carlo method



Similar documents
VARIANCE REDUCTION TECHNIQUES FOR IMPLICIT MONTE CARLO SIMULATIONS

Monte Carlo Sampling Methods

Atomic and Nuclear Physics Laboratory (Physics 4780)

Calculation of Source-detector Solid Angle, Using Monte Carlo Method, for Radioactive Sources with Various Geometries and Cylindrical Detector

Monte Carlo (MC) Model of Light Transport in Turbid Media

Appendix A. An Overview of Monte Carlo N-Particle Software

Chapter NP-5. Nuclear Physics. Nuclear Reactions TABLE OF CONTENTS INTRODUCTION OBJECTIVES 1.0 NUCLEAR REACTIONS 2.0 NEUTRON INTERACTIONS

A Priori Efficiency Calculations For Monte Carlo Applications In Neutron Transport Andreas J. van Wijk. Supervisor: dr. ir. J.

Biasing. 7 th FLUKA Course NEA Paris, Sept.29-Oct.3, 2008

[2] At the time of purchase of a Strontium-90 source, the activity is Bq.

Lecture 2 Macroscopic Interactions Neutron Interactions and Applications Spring 2010

Monte Carlo Simulation for Solid Angle Calculations in Alpha Particle Spectrometry

Chapter 3 RANDOM VARIATE GENERATION

Vacuum Evaporation Recap

Notes on Continuous Random Variables

Chapter 4 Variance Reduction Techniques

90 degrees Bremsstrahlung Source Term Produced in Thick Targets by 50 MeV to 10 GeV Electrons

Nuclear Physics. Nuclear Physics comprises the study of:

The Monte Carlo method is a statistical STAN ULAM, JOHN VON NEUMANN, and the MONTE CARLO METHOD. by Roger Eckhardt

Jorge E. Fernández Laboratory of Montecuccolino (DIENCA), Alma Mater Studiorum University of Bologna, via dei Colli, 16, Bologna, Italy

AP2 Magnetism. (c) Explain why the magnetic field does no work on the particle as it moves in its circular path.

Radioactivity III: Measurement of Half Life.

ACCELERATORS AND MEDICAL PHYSICS 2

Clinical Physics. Dr/Aida Radwan Assistant Professor of Medical Physics Umm El-Qura University

Self-adjusting Importances for the Acceleration of MCBEND

Tutorial on Markov Chain Monte Carlo

Variance reduction techniques used in BEAMnrc

Nuclear Physics and Radioactivity

1 Prior Probability and Posterior Probability

Using Monte Carlo method for simulation of electromagnetic radiation penetration in body ' s tissues

AP Physics 1 and 2 Lab Investigations

physics 1/12/2016 Chapter 20 Lecture Chapter 20 Traveling Waves

CHAPTER 6: Continuous Uniform Distribution: 6.1. Definition: The density function of the continuous random variable X on the interval [A, B] is.

Let s consider a homogeneous medium characterized by the extinction coefficient β ext, single scattering albedo ω 0 and phase function P(µ, µ').

Radiation Detection and Measurement

PHOTON mapping is a practical approach for computing global illumination within complex

Solutions to Problems in Goldstein, Classical Mechanics, Second Edition. Chapter 7

Computer Animation of Extensive Air Showers Interacting with the Milagro Water Cherenkov Detector

Monday 11 June 2012 Afternoon

arxiv: v1 [physics.ins-det] 14 Jan 2014

Energy Transport. Focus on heat transfer. Heat Transfer Mechanisms: Conduction Radiation Convection (mass movement of fluids)

L 2 : x = s + 1, y = s, z = 4s Suppose that C has coordinates (x, y, z). Then from the vector equality AC = BD, one has

Blackbody radiation. Main Laws. Brightness temperature. 1. Concepts of a blackbody and thermodynamical equilibrium.

General Sampling Methods

ON-STREAM XRF ANALYSIS OF HEAVY METALS AT PPM CONCENTRATIONS

Simulation of Neutron Backgrounds from the ILC Extraction Line Beam Dump. Siva Darbha. Office of Science, SULI Program. University of Toronto

Other GEANT4 capabilities

Fundamentals of modern UV-visible spectroscopy. Presentation Materials

Measurement of Charge-to-Mass (e/m) Ratio for the Electron

Basics of Nuclear Physics and Fission

Basic Nuclear Concepts

Student Performance Q&A:

Algebra Academic Content Standards Grade Eight and Grade Nine Ohio. Grade Eight. Number, Number Sense and Operations Standard

Cross section, Flux, Luminosity, Scattering Rates

2008 AP Calculus AB Multiple Choice Exam

Solar Energy. Outline. Solar radiation. What is light?-- Electromagnetic Radiation. Light - Electromagnetic wave spectrum. Electromagnetic Radiation

Assessment Anchors and Eligible Content

APPLIED MATHEMATICS ADVANCED LEVEL

Free Electron Fermi Gas (Kittel Ch. 6)

Magnetic Field and Magnetic Forces

AN INVESTIGATION INTO THE USEFULNESS OF THE ISOCS MATHEMATICAL EFFICIENCY CALIBRATION FOR LARGE RECTANGULAR 3 x5 x16 NAI DETECTORS

Chapter 4 - Lecture 1 Probability Density Functions and Cumul. Distribution Functions

Generating Random Numbers Variance Reduction Quasi-Monte Carlo. Simulation Methods. Leonid Kogan. MIT, Sloan , Fall 2010

GAMMA-RAY SPECTRA REFERENCES

MASS DEFECT AND BINDING ENERGY

2 Absorbing Solar Energy

Electromagnetism Laws and Equations

ENERGY LOSS OF ALPHA PARTICLES IN GASES

PHYA5/1. General Certificate of Education Advanced Level Examination June Unit 5 Nuclear and Thermal Physics Section A

[Image removed due to copyright concerns]

Notes: Most of the material in this chapter is taken from Young and Freedman, Chap. 13.

5. Continuous Random Variables

GCE Physics A. Mark Scheme for June Unit G485: Fields, Particles and Frontiers of Physics. Advanced GCE. Oxford Cambridge and RSA Examinations

MCRT: L6. Initial weight of packet: W = L / N MC At each interaction multiply weight by probability of scattering: W = a W

Exam 1 Review Questions PHY Exam 1

The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION MATHEMATICS B. Tuesday, August 16, :30 to 11:30 a.m.

Current Standard: Mathematical Concepts and Applications Shape, Space, and Measurement- Primary

Advanced Computer Graphics. Rendering Equation. Matthias Teschner. Computer Science Department University of Freiburg

The Monte Carlo Simulation of Radiation Transport

PHOTOELECTRIC EFFECT AND DUAL NATURE OF MATTER AND RADIATIONS

Signal to Noise Instrumental Excel Assignment

Specific Intensity. I ν =

1 Sufficient statistics

Introduction to Monte Carlo. Astro 542 Princeton University Shirley Ho

Experiment #1, Analyze Data using Excel, Calculator and Graphs.

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus

1090 IEEE TRANSACTIONS ON NUCLEAR SCIENCE, VOL. 50, NO. 4, AUGUST Intelligent Gamma-Ray Spectroscopy Using 3-D Position-Sensitive Detectors

Lecture L6 - Intrinsic Coordinates

Math Placement Test Practice Problems

What are the place values to the left of the decimal point and their associated powers of ten?

Magnetic Field of a Circular Coil Lab 12

AP1 Oscillations. 1. Which of the following statements about a spring-block oscillator in simple harmonic motion about its equilibrium point is false?

Chapter 8. Low energy ion scattering study of Fe 4 N on Cu(100)

High-Concentration Submicron Particle Size Distribution by Dynamic Light Scattering

2. Orbits. FER-Zagreb, Satellite communication systems 2011/12

Least-Squares Intersection of Lines

The rate of change of velocity with respect to time. The average rate of change of distance/displacement with respect to time.

Volumetric Path Tracing

A METHOD OF CALIBRATING HELMHOLTZ COILS FOR THE MEASUREMENT OF PERMANENT MAGNETS

Monte Carlo Simulations: Efficiency Improvement Techniques and Statistical Considerations

Transcription:

Some history Simple applications Radiation transport modelling Flux and Dose calculations Variance reduction Easy Monte Carlo

Pioneers of the Monte Carlo Simulation Method: Stanisław Ulam (1909 1984) Stanislaw Ulam is a Polish mathematician who participated in the Manhattan Project and proposed the Teller Ulam design of thermonuclear weapons. While in Los Alamos, he suggested the Monte Carlo method for evaluating complicated mathematical integrals that arise in the theory of nuclear chain reactions (not knowing that Enrico Fermi and others had used a similar method earlier). This suggestion led to the more systematic development of Monte Carlo by Von Neumann, Metropolis, and others.

Pioneers of the Monte Carlo Simulation Method: John von Neumann (1903 1957) Von Neumann was taken by the idea of doing statistical sampling using newly developed electronic computing techniques. The approach seemed to him to be especially suitable for exploring behavior of neutron chain reactions in fission devices. In particular, neutron multiplication rates could be estimated and used to predict the explosive behavior of the various fission weapons then being developed. In March of 1947, he wrote about this to Robert Richtmyer, at that time the Theoretical Division Leader at Los Alamos (see Figure).

Pioneers of the Monte Carlo Simulation Method: Nicholas Metropolis (1915-1999) A team headed by Metropolis carried out the first actual Monte Carlo calculations on the ENIAC computer (the world's first electronic digital computer, built at the University of Pennsylvania) in 1948. The Metropolis algorithm, first described in a 1953 paper by Metropolis, A. Rosenbluth, M. Rosenbluth, A. Teller, and Edward Teller, was cited in Computing in Science and Engineering as being among the top 10 algorithms having the "greatest influence on the development and practice of science and engineering in the 20th century."

Simple Monte Carlo Application: Function Integration If the two numbers x i and y i are selected randomly from the range and domain, respectively, of the function f, then each pair of numbers represents a point in the function s coordinate plane (x, y). When y i > f(x i ) the point lies above the curve for f(x), and x i is rejected; when y i f(x i ) the points lies on or below the curve, and x i is accepted. Thus, the fraction of the accepted points is equal to the fraction of the area below the curve. This technique, first proposed by John von Neumann, is also known as the acceptancerejection method of generating random numbers for arbitrary Probability Density Function (PDF).

Another Example: Calculation of the π Number 1 Let us consider a square that encompasses a circle with the radius R = 1. Then, Area of the square = 2 2 = 4 0 Area of the circle = π 1 2 = π -1-1 0 1 A simple Monte Carlo simulation to approximate the value of π could involve randomly selecting of n points (x i,y i ) in the unit square and determining the ratio ρ = m / n, where m is number of points that satisfy x i 2 + y i 2 1. In a typical simulation of sample size n = 1000 there were 787 points satisfying x i 2 + y i 2 1, shown in Figure. Using this data, one can obtain ρ = 787 / 1000 = 0,787 and π = 4 0,787 = 3.148 π / π = m -1/2 3.6 %

Advanced Application : Neutron Transport A schematic of some of the decisions that are made to generate the history of a neutron in a Monte Carlo calculation. Initial Velocity and Position of Neutron v? x? g v and g x Assumed from Initial Conditions Length of Free Flight L? g L Determined from Material Properties g L Determined from Properties of New Material Crossing of Material Boundary Collision g k Determined from Known Branching Ratios Length of Free Flight in new Material L? Type of collision k? Crossing of Material Boundary Collision Scattering New velocity v? Fission Number and velocities of new neutrons n? v 1 v 2 v 3? Absorption Chain Terminated g v Determined from Scattering Cross Sections and Incoming Velocity n 1 n 2 n 3 g n g v1 g v2 g v3 Determined from Fission Cross Sections The non-uniform random-number distribution g used in the decisions are determined from a variety of nuclear data.

Sampling Type of the Collision : Photons Photon interactions : Coherent (Rayleigh) scattering Incoherent (Compton) scattering Photo-effect on K, L 1, L 2 L 3 atomic shells Pair production (nuclear field) Triplet production (electron field) Photonuclear reactions 10 kev 10 MeV At the given photon energy the contribution of the different interaction processes can be obtained from the energy dependant photon attenuation coefficients shown in the Figure to the right. Let us consider the 10 kev photon : Branching ratios (or probabilities) : Figure. Photon attenuation coefficients for lead. Process 1: p 1 = µ Compton / µ tot Process 2: p 2 = µ Rayleigh / µ tot Process 3: p 3 = µ Photo-effect / µ tot Let us stack the probabilities to obtain the Probability Distribution Function. Then one can sample the type of the collision (i.e. the process number) using the random number ξ, which is uniformly distributed on [0,1]. See explanation of this algorithms on the graph to the right. 1 ξ 0 p 1 + p 2 + p 3 p 1 + p 2 p 1 1 2 3 Process No.

Neutron / Photon Transport : Free Flight / Free Path Simulation Let us consider the random quantity x with continuum values from the interval [a,b]. If p(x) is the respective Probability Density Distribution Function, then, using the analogy with the stacked probabilities from the previous slide, one can obtain the Probability Distribution Function F(x) as shown below: p(x) F(x) 1 ξ 0 a b x a x b x Mathematically the sampling procedure can be expressed using the function F -1 (x), the inverse to the Probability Distribution Function F(x): This is the essence of the inverse function method, which was proposed by John von Neumann for generating random values for such random quantities as particle free path, energy and angular distributions etc. Photon free path simulation using the inverse function method: Here ξ is the random quantity with uniform distribution in the interval [0,1].

Sampling Photon Collision: Compton scattering This example shows how the properties of the photon and electron resulting from the Compton scattering can be modeled. The properties are the energy and angular distributions of the new particles scattered photon and recoil electron. Two approaches are shown on the graph (Germanium, 100 kev photons): solid lines represent sampling technique which is based on the well-known theoretical Klein-Nishina formula for the Compton scattering PDF on free electrons, stacks show more advanced simulation approach that takes into account atomic electron binding and Doppler broadening effects. Click on the graph to see the movie.

Scoring or Tallying : Two Fundamental Tallies N - total number of tracks sampled M - number of tracks, which crossed surface A A θ µ = cos θ Particle Current: The number of particles crossing surface A normalized per one source particle Particle Flux: The number of particles crossing surface A normalized per one source particle and per square centimeter of the surface area seen from the direction of the particle. This area is calculated as A µ = A µ, where µ is the absolute value of cosine of angle between surface normal and particle trajectory. Note: The particle current and particle flux can be expressed using the conventional units, i.e. [J] = s -1 and [Φ] = cm -2 s -1, by multiplying them by the source strength (number of particles emitted per second).

Cell Particle Flux: Track-Length Estimator The particle flux definition on the previous slide gives the value of the flux averaged over a surface, so called the Surface Flux Tally. If we are interested in the particle flux averaged over a cell, then the Track-Length Tally will be more suitable. N - total number of tracks sampled M - number of tracks, which crossed cell V θ 1 V S T 2 S 1 θ 2 The estimate of the particle flux averaged over cell is given by the following formula: Where, T is the track length of particles inside the cell, and V is the cell volume.

Tallying Gamma / Neutron Dose Rates The Gamma / Neutron Dose Rate (Sv/h) can be presented as the linear functional from the photon flux energy distribution Φ(E) (MeV -1 cm -2 s -1 ) in the point of interest: Here f D (E) is energy dependent "photon-flux-todose-rate" conversion function, which depends on the radiation type and energy of particles, the properties of absorbing medium (air, water, tissue etc.), the dose value of interest (KERMA, absorbed, equivalent, ambient or effective dose). Thus, to calculate the dose rate, one needs to score the product of a flux estimate (e.g., given by the surface or cell flux tally) with an appropriate value of the corresponding "photon-flux-to-doserate" conversion function. M. Pelliccioni, Overview of Fluence-to-Effective Dose and Fluence-to- Ambient Dose Equivalent Conversion Coefficients for High Energy Radiation Calculated Using Fluka Code, Radiation Protection Dosimetry, 88(4) (2000) 279 297.

Accuracy, Precision, Relative Error & Figure of Merit Accuracy True value Monte Carlo estimate Precision Systematic error is a measure of how close the expected value <x> is to the true physical quantity µ x being estimated. The difference between them is called the systematic error, which is seldom known. refers to the uncertainty of the Monte Carlo estimate and not to the accuracy. It is possible to calculate a highly precise result that is far from the physical truth because nature has not been modelled faithfully. Relative error Figure of Merit is the measure of the calculation (statistical) precision of the Monte Carlo result. Guidelines for Interpreting the Relative Error: Range of R 0.5 1.0 0.2 0.5 0.1 0.2 < 0.1 < 0.05 Quality of the result Garbage Factor of a few Questionable Generally reliable except for point detector Generally reliable for point detector Here T N is the computer time needed to sample N histories. FOM serves: as the reliability indicator for tally (it must be constant except for small statistical variations), as the measure of the efficiency of the Monte Carlo calculation (the higher FOM the better the efficiency), and as a useful tool for estimating the time needed to achieve given statistical precision.

Variance Reduction Example: Point Detector Tally For very small volumes and heavily shielded sources it can be almost impossible to get either a track-length or surface crossing estimate because of the low probability of crossing into the small volume or because of the very low particle flux outside a heavily shielded object. In such cases the use of the Point Detector Tally (one of the Variance Reduction Techniques) can provide much greater efficiency (FOM) of the calculation. Interaction point θ 1 Emission point θ 2 R 2 R 1 Detector In the Point Detector approach the tally is scored, first, when particles emitted from the source, and, then, after each interaction of primary particles, by calculating the probability for all secondary particles to be emitted or scattered directly to the detector. The approach therefore is also frequently called as the Next Event Estimator. p(µ) probability density function for a particle to be emitted / scattered into detector, µ - cosine of angle between particle trajectory and detector, R distance to detector, λ - total mean free path to detector.

Summary: The primary components of a Monte Carlo simulation method Probability distribution functions (pdf's) - the physical (or mathematical) system must be described by a set of pdf's. Random number generator - a source of random numbers uniformly distributed on the unit interval must be available. Sampling rule - a prescription for sampling from the specified pdf's, assuming the availability of random numbers on the unit interval, must be given. Scoring (or tallying) - the outcomes must be accumulated into overall tallies or scores for the quantities of interest. Error estimation - an estimate of the statistical error (variance) as a function of the number of trials and other quantities must be determined. Variance reduction techniques - methods for reducing the variance in the estimated solution to reduce the computational time for Monte Carlo simulation Parallelization and vectorization - algorithms to allow Monte Carlo methods to be implemented efficiently on advanced computer architectures.

Nucleonica : Easy Monte Carlo for Gamma & Neutron Dosimetry & Shielding Calculations through Web

Thank you for your attention