P HI T S Advanced Lecture (II): variance reduction techniques to improve efficiency of calculation Multi-Purpose Particle and Heavy Ion Transport code.

Slides:



Advertisements
Similar presentations
Lectures 6&7: Variance Reduction Techniques
Advertisements

Lecture 3:Basic Concepts
Stefan Roesler SC-RP/CERN on behalf of the CERN-SLAC RP Collaboration
P HI T S Exercise ( II ) : How to stop , ,  -rays and neutrons? Multi-Purpose Particle and Heavy Ion Transport code System title1 Feb revised.
Implicit Capture Overview Jane Tinslay, SLAC March 2007.
Shielding Studies using MARS Monte Carlo code Noriaki Nakao (SLAC) Jan. 6, 2005, WORKSHOP Machine-Detector Interface at ILC, SLAC.
Cross Section Biasing & Path Length Biasing Jane Tinslay, SLAC March 2007.
Adapted from G G Daquino, Geant4 Workshop, Catania, 5 Oct 2004 Event Biasing in G4: Why and what? Key User Requirements J. Apostolakis, CERN 19 March 2007.
Alex Howard - Event Biasing Mini-Workshop - SLAC Geometrical Event biasing and Variance Reduction – Talk 2 Alex Howard, CERN Event Biasing Mini-Workshop,
Geant4 Event Biasing Jane Tinslay, SLAC May 2007, Geant4 v8.2.p01.
J. Tinslay 1, B. Faddegon 2, J. Perl 1 and M. Asai 1 (1) Stanford Linear Accelerator Center, Menlo Park, CA, (2) UC San Francisco, San Francisco, CA Verification.
Interaction Forcing Overview Jane Tinslay, SLAC March 2007.
1 Stratified sampling This method involves reducing variance by forcing more order onto the random number stream used as input As the simplest example,
Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 12 th September Event biasing – An Overview Alex Howard, CERN Event Biasing Overview.
Variance reduction A primer on simplest techniques.
1 Assessment of Imprecise Reliability Using Efficient Probabilistic Reanalysis Farizal Efstratios Nikolaidis SAE 2007 World Congress.
Radiation therapy is based on the exposure of malign tumor cells to significant but well localized doses of radiation to destroy the tumor cells. The.
Atmospheric Neutrino Oscillations in Soudan 2
Radiation Protection III NUCP 2331
Preliminarily results of Monte Carlo study of neutron beam production at iThemba LABS University of the western cape and iThemba LABS Energy Postgraduate.
1 Lesson 5: Flux, etc. Flux determination Flux determination Cell Cell Surface Surface Flux integral tallies (reaction rates) Flux integral tallies (reaction.
1 Dr. Sandro Sandri (President of Italian Association of Radiation Protection, AIRP) Head, Radiation Protection Laboratory, IRP FUAC Frascati ENEA – Radiation.
Geant4 Event Biasing Marc Verderi, LLR (Heavily copied from Jane Tinslay, SLAC) June 2007.
Radiation Shielding and Reactor Criticality Fall 2012 By Yaohang Li, Ph.D.
1 Everyday Statistics in Monte Carlo Shielding Calculations  One Key Statistics: ERROR, and why it can’t tell the whole story  Biased Sampling vs. Random.
Alpha and Beta Interactions
IEEE Nuclear Science Symposium and Medical Imaging Conference Short Course The Geant4 Simulation Toolkit Sunanda Banerjee (Saha Inst. Nucl. Phys., Kolkata,
Radiation damage calculation in PHITS
Alex Howard - Event Biasing Geant4 Users - Lisbon Event biasing and Variance Reduction - Geometrical Alex Howard, CERN Geant4 Users Workshop, Lisbon.
Lesson 4: Computer method overview
Status of MAPS Geometry Simulation Yoshinari Mikami University of Birmingham 21 th April 2006 MAPS Meeting at Rutherford Appleton Laboratory.
Monte Carlo methods in ADS experiments Study for state exam 2008 Mitja Majerle “Phasotron” and “Energy Plus Transmutation” setups (schematic drawings)
Alex Howard, ETH, Zurich 13 th September 2012, 17 th Collaboration Meeting, Chartres 1 Geometrical Event Biasing Facility Alex Howard ETH, Zurich Geometrical.
P HI T S Melt a snowman by proton beam Multi-Purpose Particle and Heavy Ion Transport code System title1 Aug revised.
P HI T S Setting of various source Part I Multi-Purpose Particle and Heavy Ion Transport code System Title1 Aug revised.
P HI T S Shielding exercise Multi-Purpose Particle and Heavy Ion Transport code System title1 Last revised 2015/10.
Bremsstrahlung Splitting Overview Jane Tinslay, SLAC March 2007.
Improvement of the Monte Carlo Simulation Efficiency of a Proton Therapy Treatment Head Based on Proton Tracking Analysis and Geometry Simplifications.
Workshop On Nuclear Data for Advanced Reactor Technologies, ICTP , A. Borella1 Monte Carlo methods.
Investigating the Feasibility of a Small Scale Transmuter – Part II Roger Sit NCHPS Meeting March 4-5, 2010.
P HI T S PHITS Tutorial How to use DICOM2PHITS Multi-Purpose Particle and Heavy Ion Transport code System Title1 Last revised 2015/3.
CERF simulation Mitsu 14th Feb Simulation components Production Transportation Detector response
Neutron measurement with nuclear emulsion Mitsu KIMURA 27th Feb 2013.
1 Neutron Effective Dose calculation behind Concrete Shielding of Charge Particle Accelerators with Energy up to 100 MeV V. E Aleinikov, L. G. Beskrovnaja,
Alex Howard, CERN - Event Biasing Overview – Hebden Bridge 13 th September Event biasing and Variance Reduction Alex Howard, CERN Event Biasing.
A. Dokhane, PHYS487, KSU, 2008 Chapter1- Neutron Reactions 1 NEWS Lecture1: Chapter 0 is already on my Website.
Marina Golubeva, Alexander Ivashkin Institute for Nuclear Research RAS, Moscow AGeV simulations with Geant4 and Shield Geant4 with Dpmjet-2.5 interface.
1 Simulation of Neutron Backgrounds in the ILC Extraction Line Beam Dump Siva Darbha Supervisors: Lewis Keller and Takashi Maruyama.
1 Giuseppe G. Daquino 26 th January 2005 SoFTware Development for Experiments Group Physics Department, CERN Background radiation studies using Geant4.
Seoul National University Han-wool Ju CUNPA Kick-off Meeting Aug.22-23, 2013.
1 Activation by Medium Energy Beams V. Chetvertkova, E. Mustafin, I. Strasik (GSI, B eschleunigerphysik), L. Latysheva, N. Sobolevskiy (INR RAS), U. Ratzinger.
FCAL Krakow meeting, 6. May LumiCal concept including the tracker R. Ingbir, P.Růžička, V. Vrba.
P HI T S Setting of various source Part II Multi-Purpose Particle and Heavy Ion Transport code System Title1 May 2016 revised.
INTERACTION OF PARTICLES WITH MATTER
variance reduction techniques to improve efficiency of calculation A
variance reduction techniques to improve efficiency of calculation B
CEA – Saclay, DRT/LNHB/LMD, Gif-sur-Yvette, France
Multi-Purpose Particle and Heavy Ion Transport code System
variance reduction techniques to improve efficiency of calculation B
Guidance for hands-on exercise Neutron target
Setting of various sources A
Multi-Purpose Particle and Heavy Ion Transport code System
variance reduction techniques to improve efficiency of calculation A
Guidance for hands-on exercise Medical linac
How to stop a, b, g-rays and neutrons?
How to stop a, b, g-rays and neutrons?
Microdosimetric Distributions for a Mini-TEPC due to Photon Radiation
Multi-Purpose Particle and Heavy Ion Transport code System
Setting of various source Part II
Lesson 4: Application to transport distributions
Presentation transcript:

P HI T S Advanced Lecture (II): variance reduction techniques to improve efficiency of calculation Multi-Purpose Particle and Heavy Ion Transport code System title1 Jun revised

Contents of Lecture [importance] Geometry splitting and Russian Roulette [weight window] Weight windows 2. Neutron deep penetration calculation 3. Calculation of particle production in thin target [forced collision] 2 1. Introduction

Neutron deep penetration calculation 14 MeV neutron with 1 cm radius maxcas = 1500 maxbch = 1 Calculate neutron transport in thick shield and dose rate distribution to depth 3 Execute “imp.inp” and measure computational time (you can find CPU time in phits.out “total CPU time”) Concrete 50cm radius x 180 cm thick cylinder Air

Neutron deep penetration calculation Number of history= 1,500 Need to improve the efficiency of Monte Carlo simulation! Use variance reduction techniques Normal calculation using a single CPU (1.5GHz AMD) 4 Number of history= 270,000 total cpu time = sec total cpu time = sec imp-dose-xz.eps

Concept of weight in Monte Carlo calculation Example : track length tally 5 Weight : Importance of the particle in Monte Carlo simulation always to be 1 for normal calculation* Merit of controlling weight Artificially increase the probability of rare event occurrences Kill events that are not so important Inadequate weight control induces wrong simulation results Frequency distribution per a history cannot be calculated, e.g. [t-deposit] with output = deposit, NO MORE event generator! Demerit of controlling weight *Not the case for low-energy neutron transport simulation

Contents of Lecture [importance] Geometry splitting and Russian Roulette [weight window] Weight windows 2. Neutron deep penetration calculation 3. Calculation of particle production in thin target [forced collision] 6 1. Introduction

Set important I to each cell. When a particle passes through the boarder of cell 1 and cell 2, multiple its weight by I 1 /I 2  For I 1 < I 2, split the particle into I 2 /I 1, and multiple its weight by I 1 /I 2  For I 1 > I 2, play Russian Roulette, and multiple its weight by I 1 /I 2 W=1 W=1/3 I 1 =1I 2 =3 e.g.1 I 2 /I 1 = 3 (integer) Always split into 3 Weights of all split particles are 1/3 e.g. 2 I 2 /I 1 = 2.75 (not an integer) Split into 3 by 75% Split into 2 by 25% Weights of all split particles are 1/2.75 W=1 W=3 W=1 I 1 =1I 2 =1/3 e.g.3 I 2 /I 1 = % of particles survives, rests are killed Weights of all survived particle are 3 Cell Importance Method

Check the Trajectory of Single Particle 8 Execute “imp-hist.inp”, and check the neutron trajectory Importance for all cells is set to 1.0 in the default setting I 10 =1.0I 1 =1.0I 2 =1.0 空気コンクリート ( R= 20cm , Depth = 8cm×2 ) imp-trajectory.eps 5MeV Neutron

9 Let’s Increase Importance imp-hist.inp [importance] part = neutron reg imp divided into 2 neutrons here Reaction occurs here I 10 =1I 1 =2I 2 =4 imp-trajectory.eps

10 Let’s Decrease Importance imp-hist.inp [importance] part = neutron reg imp /2 2 1/4 I 10 =1I 1 =1/2I 2 =1/4 imp-trajectory.eps 1/2 neutron survives 1/2 neutron is killed

Let’s Increase Importance EXTREMELY! 11 imp-hist.inp [importance] part = neutron reg imp I 10 =1I 1 =2I 2 =100 imp-trajectory.eps “A Sample Problem for Variance Reduction in MCNP” LA MS DE It is better to set 2~3 for max importance ratio between neighboring cells. Particles are divided too much You waste your machine time without improving statistics!

[importance] part = neutron reg imp 1 2.5** ** ** ** ** ** ** ** ** ** ** **11 Thickness of 1 cell is 15 cm I i+1 /I i = Activate the [importance] section in “imp.inp”, and execute PHITS Example of calculation using [importance] 14 MeV neutron with 1 cm radius Concrete 50cm radius x 180 cm thick cylinder

total history = 1, GHz, single [importance] off [importance] 13 More neutrons penetrate to deeper locations total cpu time = sec total cpu time = sec Dose Relative error Example of calculation using [importance] ・ Check statistical uncertainty Red:1.0, Yellow: ~0.1, Green: ~0.01

14 Agreement in neutron fluence in each cell indicate the adequacy of importance setting Neutron energy fluence in cell 3 Example of calculation using [importance] Dose rate in each cell (15 cm thickness) Original data : imp-dose-reg.out Original data : imp-energy-reg.out

Important Notice of Setting [importance] Good example Bad example It is better to set 2~3 for max importance ratio between neighboring cells. source Reference: “A Sample Problem for Variance Reduction in MCNP” LA MS DE

Bad Example for using [importance] Bad example: Very large importance gap between cell 5 & 6 Relative error Dose Relative errors are too large in comparison to previous setting! [[importance] part = neutron reg imp 1 2.5** ** ** ** ** ** ** ** ** ** ** **11 Let’s try a bad example!

Contents of Lecture [importance] Geometry splitting and Russian Roulette [weight window] Weight windows 2. Neutron deep penetration calculation 3. Calculation of particle production in thin target [forced collision] 17 1. Introduction

Difference between cell importance and weight window methods “Cell importance method” assign a single value of weight for each cell. “Weight window method” assign allowed weight range (window) for each cell and each energy group. Efficient simulation with focusing on the important energy region, such as high-energy neutron. W L =0.5 Weight W 1 =1 Weight I 1 =1 I 2 =3 W 2 =1/3 Number of particle 1 → I 2 /I 1 =3 region1 energy group1 region1 W U =2.5 W L =0.25 W U =1.25 region2 energy group2 W=1 W L =0.5 Weight W U =2.5 W L =0.15 W U =0.75 W 1 =1 W 2 =0.5 1→1→W 1 /W 2 =2 Number of particle 1 → 1 Cell importance methodWeight window method 18

Parameters Related to Weight Window wupn: Ratio of the upper and lower limits of allowed weight (D=5.0) mxspln: Maximum number of split per event (D=5.0) mwhere: Timing for considering weight window (D=0) -1: reaction, 0: both, 1: crossing surface 19 See manual “4.2.4 Cut off time, cut off weight, and weight window” in more detail

20 Let’s execute “weight-hist.inp”, and check the neutron trajectory weight-trajectory.eps Air Water ( r= 10cm , Depth = 5cm×2 ) 5MeV neutron Check the Trajectory of Single Particle

Set [Weight Window] Section 21 Weight of neutron is within the weight window range -> No split and No Russian Roulette Activate the 1 st [weight window] section in weight-hist.inp, and execute PHITS! [weight window] part = neutron reg ww W L =0.25 Weight Cell 1 W U =5 x W L =1.25 W L =0.25 W1=1 Cell 2 Same weight window for all energies Lower limit of allowed weights, W L, for each cell is defined in [weight window] Upper limit of allowed weights, W U, is automatically set to W L x wupn (D=5) weight-trajectory.eps weight-hist.inp

Let’s Decrease Weight Window in Cell 2 22 W L =0.25 Weight Cell 1 W U =1.25 W L =0.133 W U =0.67 W1=1 Cell 2 Decrease the lower limit of allowed weights in cell 2, and execute PHITS! Particle Split Neutron is divided into 2 because its weight (=1) is higher than the upper limit (=0.67) [weight window] part = neutron reg ww weight-hist.inp weight-trajectory.eps

23 W L =0.25 Weight Cell 1 W U =1.25 W L =0.005 W U =0.025 W1=1 Cell 2 It is better to set 2~3 for max weight window ratio between neighboring cells Divided into 40 neutrons (but maximum number of split per event = 5) [weight window] part = neutron reg ww weight-hist.inp weight-trajectory.eps Let’s Decrease Weight Window in Cell 2 EXTREMELY! Decrease the lower limit of allowed weights in cell 2 EXTREMELY, and execute PHITS!

Set different Weight Window for Each Energy Group 24 weight-hist.inp [weight window] part = neutron eng = e5 reg ww1 ww Let’s “off” the 1 st [weight window], and activate the 2 nd one & execute PHITS W1=1 W L =0.25 Weight Cell 1 W U =1.25 W L =0.133 W U =0.67 Cell 2 Particle Split E < 0.01 MeV W1=1 W L =0.25 Weight Cell 1 W U =1.25 W L =0.133 W U =0.67 Cell 2 Particle Split 0.01 MeV < E < 10 5 MeV 2 energy groups are defined But the weight window are the same for each group weight-trajectory.eps Maximum energy for each group Neutron is divided into 2 because its weight (=1) is higher than the upper limit (=0.67) (Same as 2 pages before)

Increase Weight Window Only for Low-Energy Neutrons 25 Reduce the production of low-energy neutrons, and concentrate on high-energy neutron transport simulation Get poor and better statistics at shallower and deeper locations, respectively weight-hist.inp Increase weight window for low-energy neutrons by 10 times, and execute PHITS [weight window] part = neutron eng = e5 reg ww1 ww * * W1=1 W L =2.5 Weight Cell 1 W U =12.5 W L =1.33 W U =6.65 Cell 2 Russian Roulette E < 0.01 MeV W1=1 W L =0.25 Weight Cell 1 W U =1.25 W L =0.133 W U =0.67 Cell 2 Particle Split 0.01 MeV < E < 10 5 MeV Low-energy neutron is killed weight-trajectory.eps

26 Geometry, source, history are the same as imp.inp [weight window] set: c10[1.0] part = neutron eng = 2 1.0e-3 1e5 reg ww1 ww2 1 c10*2.5**(-1) 2.5**(-1) 2 c10*2.5**(-2) 2.5**(-2) 3 c10*2.5**(-3) 2.5**(-3) ・・・ Cylindrical Concrete (r = 50cm, depth = 1.8 m) Depth of each cell = 15 cm Execute PHITS using weight.inp, and check your CPU time Decrease weight window of neighboring cells by 1/2.5 for particle split Set same weight window for all energy groups (because c10=1.0) total cpu time = sec 14MeV neutron weight-dose-xz_err.eps weight-dose-xz.eps weight.inp Example of calculation using [weight window]

27 Increase the weight window for low-energy neutrons by 10 times, and execute PHITS Most low-energy neutrons are immediately killed when they produced, because of Russian Roulette Low-energy neutrons have short range, so statistical uncertainties of deeper locations do not change that much total cpu time = > [weight window] set: c10[10.0] part = neutron eng = 2 1.0e-3 1e5 reg ww1 ww2 1 c10*2.5**(-1) 2.5**(-1) 2 c10*2.5**(-2) 2.5**(-2) 3 c10*2.5**(-3) 2.5**(-3) ・・・ weight.inp weight-dose-xz_err.eps weight-dose-xz.eps sec Example of calculation using [weight window]

Comparison of CPU time 28 total cpu time = sec total cpu time = sec total cpu time = sec total cpu time = sec Use [weight window]; same value for all energies Use [importance] Normal calculation (No [importance], No [weight window]) Use [weight window]; different values for low- and high-energy neutrons

Dose Reduction Rate in Concrete 29 You can improve the efficiency of your calculation by appropriately setting weight window for each neutron energy group 180 cm 90 cm Good agreement except for deeper location doses obtained from default setting

Contents of Lecture [importance] Geometry splitting and Russian Roulette [weight window] Weight windows 2. Neutron deep penetration calculation 3. Calculation of particle production in thin target [forced collision] 30 1. Introduction

Forced collision The forced collision is useful for analyzing secondary particles generated from a thin target Split into two particles Forced collision cell Weight of uncollided particle : W i ×exp(-σd) Collided particle Incoming weight W i σ: macroscopic cross section Collide position is decided by cross section and random number. d: distance across cell Uncollided particle Weight of collided particle : W i ×{1-exp(-σd)} Forced collision factor |fcl| fcl < 0 = applies only to particles entering the cell (weight cut-off is not applied) fcl > 0 = applies to all particles surviving weight cutoff (weight cut-off is applied) 31 1 fcl = 0: no forced collision in cell, |fcl| = 1: 100% forced collision

Example of forced collision Energy distribution of neutron and alpha produced by reaction of 100MeV proton incidence on 1  m thick Si. force.inp 32 Secondary particle flux calculated without forced collision : No collision occurred in such thin target maxcas = maxbch = 2 [forced collisions] part = proton reg fcl Secondary particle flux calculated with forced collision : You can get good statistic data!!

Summary 33  Cell importance and weight window methods are effective in deep penetration calculations.  Ratios of importance and weight window between neighboring cells are better to be be less than 3.  Weight window method with energy dependence is more efficient than other methods for deep penetration calculations.  Forced collision method is effective to calculate particle production in a thin target.