variance reduction techniques to improve efficiency of calculation A

Slides:



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

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.
Estimation of the effects of a lead vest on dose reduction for NPP workers using Monte Carlo calculations KIM JEONG-IN.
Using FLUKA to study Radiation Fields in ERL Components Jason E. Andrews, University of Washington Vaclav Kostroun, Mentor.
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.
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,
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.
P HI T S Advanced Lecture (II): variance reduction techniques to improve efficiency of calculation Multi-Purpose Particle and Heavy Ion Transport code.
1 Stratified sampling This method involves reducing variance by forcing more order onto the random number stream used as input As the simplest example,
Variance reduction A primer on simplest techniques.
Lecture 12 Monte Carlo Simulations Useful web sites:
P HI T S Basic Lecture II: Definition of Tally Multi-Purpose Particle and Heavy Ion Transport code System title1 Oct revised.
Preliminarily results of Monte Carlo study of neutron beam production at iThemba LABS University of the western cape and iThemba LABS Energy Postgraduate.
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.
Monte Carlo methods in ADS experiments Study for state exam 2008 Mitja Majerle “Phasotron” and “Energy Plus Transmutation” setups (schematic drawings)
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.
Experimental Studies of Spatial Distributions of Neutrons Produced by Set-ups with Thick Lead Target Irradiated by Relativistic Protons Vladimír Wagner.
P HI T S Shielding exercise Multi-Purpose Particle and Heavy Ion Transport code System title1 Last revised 2015/10.
P HI T S Exercises using Recommendation Settings and Utilities Multi-Purpose Particle and Heavy Ion Transport code System title1 Jun revised.
Workshop On Nuclear Data for Advanced Reactor Technologies, ICTP , A. Borella1 Monte Carlo methods.
P HI T S PHITS Tutorial How to use DICOM2PHITS Multi-Purpose Particle and Heavy Ion Transport code System Title1 Last revised 2015/3.
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,
1 Giuseppe G. Daquino 26 th January 2005 SoFTware Development for Experiments Group Physics Department, CERN Background radiation studies using Geant4.
1 Activation by Medium Energy Beams V. Chetvertkova, E. Mustafin, I. Strasik (GSI, B eschleunigerphysik), L. Latysheva, N. Sobolevskiy (INR RAS), U. Ratzinger.
P HI T S Setting of various source Part II Multi-Purpose Particle and Heavy Ion Transport code System Title1 May 2016 revised.
AQA A2 Physics A Nuclear Physics Section 9 Properties of Alpha, Beta and Gamma Radiation.
INSTITUTE OF NUCLEAR SCIENCE AND TECHNOLOGY
Multi-Purpose Particle and Heavy Ion Transport code System
Induced-activity experiment:
Inter-comparison of Particle production (2)
variance reduction techniques to improve efficiency of calculation A
Neutron and 9Li Background Calculations
PHYS 3446 – Lecture #14 Energy Deposition in Media Particle Detection
THE USE OF MONTE CARLO CODE FOR RADIATION TRANSPORT AND DOSIMETRY CALCULATION FOR NEUTRON RADIOGRAPHY EXPOSURE ROOM FACILITY AT REACTOR TRIGA MARK II PUSPATI.
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
Multi-Purpose Particle and Heavy Ion Transport code System
Basic Lecture II: Definition of Tally
variance reduction techniques to improve efficiency of calculation B
Guidance for hands-on exercise Neutron target
Basic Lecture III: Parameter Setting
Guidance for hands-on exercise Environmental radioactivity
Setting of various sources A
Multi-Purpose Particle and Heavy Ion Transport code System
Tagging in T(b) (I) Generated 1M events of e + Pb208 collisions at 10  40 GeV/n with 1 < Q2 < 20, 0.3 < y < 0.95, parameter settings tuned by Mark, genShd.
Guidance for hands-on exercise Detector
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?
Performed experiments Nuclotron – set up ENERGY PLUS TRANSMUTATION
Microdosimetric Distributions for a Mini-TEPC due to Photon Radiation
Multi-Purpose Particle and Heavy Ion Transport code System
Estimation of the effects of a lead vest on dose reduction for NPP workers using Monte Carlo calculations KIM JEONG-IN.
Monte Carlo simulations for the ODIN shielding at ESS
Setting of various source Part II
Lesson 4: Application to transport distributions
PHYS 3446 – Lecture #14 Energy Deposition in Media Particle Detection
Presentation transcript:

variance reduction techniques to improve efficiency of calculation A PHITS Multi-Purpose Particle and Heavy Ion Transport code System variance reduction techniques to improve efficiency of calculation A August 2018 revised

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

Neutron deep penetration calculation Calculate neutron transport in thick shield and dose rate distribution to depth imp.inp Execute “imp.inp” and measure computational time Number of history: 1,500 you can find CPU time in phits.out “total CPU time”. [ P a r a m e t e r s ] icntl = 0 maxcas = 8000 maxbch = 1 ... [ T - T r a c k ] (3rd) mesh = xyz … axis = xz z-txt = Effective dose [pSv/source] file = imp-dose-xz.out part = neutron epsout = 1 gshow = 1 multiplier = all mat mset1 all ( 1.0 -202 ) Concrete 50cm radius x 180 cm thick cylinder Air 14 MeV neutron Effective dose is obtained by multiplying neutron fluence by dose conversion coefficient in PHITS.

Calculation of effective dose Fluence calculated by [t-track] can be multiplied with several functions that are pre-defined or defined in [multiplier] section Excerpt of data for dose conversion coefficient in /phits/data/multiplier [ T - T r a c k ] (2nd and 3rd ) … multiplier = all mat mset1 all ( 1.0 -202 ) ID number Dose conversion coefficient pSv cm2 -200 H*(10) -201 Effective dose based on ICRP60 (AP irradiation) -202 Effective dose based on ICRP103 -203 (ISO irradiation) (C k): C normalization factor k ID number Source intensity Dose conversion coefficient Dose with pSv unit is calculated when fluence is normalized by source intensity In this time, source intensity is not used in the normalized factor C. Fluence (1/cm2/source) x Dose conversion coefficient (pSv・cm2) = Dose (pSv/source) Please see manual for the [multiplier] section 4

Neutron deep penetration calculation Normal calculation using a single CPU (Intel Core i5-4590 CPU @ 3.30GHz) Number of history= 8,000 total cpu time = 6.39 sec imp-dose-xz.eps Number of history= 500,000 total cpu time = 215.36 sec imp-dose-xz.eps Need to improve the efficiency of Monte Carlo simulation! Use variance reduction techniques

Concept of weight in Monte Carlo calculation Example:track length tally   Li: track length of i-th particle Wi: weight of i-th particle n0: total history number Weight: Importance of the particles in Monte Carlo simulation is always 1 in normal calculation* Artificially increase the probability of rare event occurrences. Frequency distribution per a history cannot be calculated, e.g. [t-deposit] with output = deposit, NO MORE event generator! *Not the case for low-energy neutron transport simulation

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

Cell Importance Method Set important I to each cell. When a particle passes through the boarder of cell 1 and cell 2, set I2/I1 I2/I1>1: Particle split e.g.  I2/I1 is integer. I2/I1 = 3: Always split into 3 I2/I1 is not an integer I2/I1 = 2.75: Split into 3 by 75% Split into 2 by 25%   I1=1 I2=3 W=1/3 W=1/3 W=1/3 W=1 I2/I1<1: Russian Roulette killed or alive I1=1 I2=1/3 W=3 1/3 probability W=1 2/3 probability killed

Check the Trajectory of Single Particle [importance] part = neutron reg imp 10 1 1 1 2 1 Execute “imp-hist.inp”, and check the neutron trajectory imp-hist.inp Air Concrete (R= 20cm, Depth = 8cm×2) 5MeV Neutron I10=1.0 I1=1.0 I2=1.0 Importance for all cells is set to 1.0 in the default setting imp-trajectory.eps

Let’s Increase Importance part = neutron reg imp 10 1 1 2 2 4 imp-hist.inp Reaction occurs here I10=1 I1=2 I2=4 divided into 2 neutrons here imp-trajectory.eps

Let’s Decrease Importance part = neutron reg imp 10 1 1 1/2 2 1/4 imp-hist.inp 1/2 neutron survives 1/2 neutron is killed I10=1 I1=1/2 I2=1/4 imp-trajectory.eps

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

Example of calculation using [importance] Activate the [importance] section in “imp.inp”, and execute PHITS Ii+1/Ii = 2.5 [importance] part = neutron reg imp 1 2.5**0 2 2.5**1 3 2.5**2 4 2.5**3 5 2.5**4 6 2.5**5 7 2.5**6 8 2.5**7 9 2.5**8 10 2.5**9 11 2.5**10 12 2.5**11 Concrete: 50cm radius x 180 cm thick cylinder, 15cm thick cell x 12 14MeV neutrons with 1cm radius incidence along with z axis total history = 1,500 14 MeV neutron Thickness of 1 cell is 15 cm

Example of calculation using [importance] 3.30GHz, single total history = 8,000 [importance] off total cpu time = 6.39 sec Dose Relative error imp-dose-xz_err.eps imp-dose-xz.eps [importance] total cpu time = 48.39 sec 1 ・Check statistical uncertainty Red:1.0, Yellow: ~0.1, Green: ~0.01 More neutrons penetrate to deeper locations

Example of calculation using [importance] 15 With importance Without importance Original data:imp-dose-reg.out Dose rate in each cell (15 cm thickness)

Important Notice of Setting [importance] Large ratio among cells cause many particle splits. source Good example 1 2 4 8 16 32 Bad example 1 1 8 8 8 32 It is better to set 2~3 for max importance ratio between neighboring cells. Reference: “A Sample Problem for Variance Reduction in MCNP” LA-10363-MS DE86 004380

Bad Example for using [importance] Let’s try a bad example! Bad example: Very large importance gap between cell 5 & 6 [importance] part = neutron reg imp 1 2.5**0 2 2.5**0 3 2.5**0 4 2.5**0 5 2.5**0 6 2.5**5 7 2.5**6 8 2.5**7 9 2.5**8 10 2.5**9 11 2.5**10 12 2.5**11 imp-dose-xz.eps imp-dose-xz_err.eps Relative errors are too large in comparison to previous setting!

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

What is forced collision? Radiation is forced to collide with a very thin target (film). 10μm thick Si 10μm thick Si 100MeV proton with forced collision: Proton always collide with Si. without forced collision: No collision occurred in such thin target. Example of application: Simulation of particle production measurements with a film

Simulation of particle production measurements with a film. [t-product]: energy distribution of alpha and Si produced in a target → true cross section [t-cross]:energy distribution of alpha and Si in a detector → measured cross section Without forced collision: protons do not collide with a film. force.inp Let’s execute force.inp maxcas = 5000 maxbch = 5 Radius 0.5cm, 10μm thick Si product.eps 100MeV proton void detector cross.eps

Forced collision The forced collision is useful for analyzing secondary particles generated from a thin target Split into two particles Weight of uncollided particle:Wi×exp(-Sd) d: distance across cell Incoming weight Wi Uncollided particle Weight of collided particle: Wi×{1-exp(-Sd)} Collided particle Forced collision cell S: macroscopic cross section Collide position is decided by cross section at random. Method of forced collision decreases history variance, but calculation time per history increases. fcl: Forced collision factor (normally, fcl = -1) fcl = -1: applies only to particles entering the cell (weight cut-off is not applied) fcl = 1: applies to all particles surviving weight cutoff (weight cut-off is applied)

Let’s force particles to collide with a film Tally information in a film at particle production force.inp forced collision [Forced Collisions] off part = proton reg fcl 1 -1.0 Delete off and execute it product.eps Weight of particles produced by forced collision are below weight cutoff, wc2. ⇒ It is hard to transport secondary particles due to Russian Roulette. track-xz.eps α cross.eps

How to transport secondaries produced by forced collision? Let’s set a small number on weight cutoff, wc2. force.inp [parameters] ………. wc2(1) = 1.0E-12 # weight cutoff of proton wc2(18) = 1.0E-12 # weight cutoff of Alpha wc2(19) = 1.0E-12 # weight cutoff of Nucleus product.eps α Si cross.eps track-xz.eps This experiment can not measure Si production cross sections correctly because many Si are stopped within a target.

Summary Cell importance method is effective in deep penetration calculations. Ratios of importance between neighboring cells are better to be less than 3 → Appropriate setting of [importance] is very important. It is better to use Weight Window Generator for complicated geometry (weight B). Forced collision method is effective to calculate particle production in a thin target.