mcnp/mcnpx intermediate workshopfisica.mib.infn.it/local/dottorato/dottdirs/carlo_cazzaniga/... ·...

31
MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo Cazzaniga

Upload: vutu

Post on 06-Feb-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

MCNP/MCNPX Intermediate Workshop

NEA,NEA Paris France

October 22 - 26, 2012

Carlo Cazzaniga

Page 2: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Outline

● Introduction

● MCNP tools: geometry, sources, materials, tallies

● Variance reduction techniques

● Criticality

● My application

Page 3: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Introduction

Page 4: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

History of MCNP

● Monte Carlo N-Particle Transport Code (MCNP) is a software package for simulating nuclear processes. It is developed by Los Alamos National Laboratory.

● More than 70 years of history.

● MCNPX (Monte Carlo N-Particle eXtended) was also developed at Los Alamos National Laboratory, and is capable of simulating particle interactions of 34 different types of particles (nucleons and ions) and 2000+ heavy ions

Enrico Fermi

The ENIAC computer

Page 5: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Applications (2012)

Page 6: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

MC simulation of transport in the matter

Per la simulazione di un dato esperimento generiamo casualmente la storia di N particelle. Per questo ci serve un modello di interazione (Cross sections).

Cross sections per generare:

1) Libero cammino tra un'interazione e la successiva

2) Tipo di interazione che avviene

3) Angolo di scattering e perdita di energia in un particolare evento (e

stato iniziale delle nuove particelle formate, se presenti)

Se il numero di storie generate è sufficiente si possono ricavare informazioni

quantitative sui processi di trasporto.

Page 7: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Example

Page 8: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Neutral and charged particles

Interazione di particelle neutre

● Cammini semplici tra un'interazione e l'altra

● Rare

● Approccio alla simulazione: singola collisione

Interazione di particelle cariche

● Interazioni frequenti

● Interazioni a lungo raggio (forza di Coulomb)

● Approccio alla simulazione: rompere la traiettoria in brevi segmenti, lunghi abbastanza perchè sia valida una statistica, corti abbastanza perchè ∆E=0

Page 9: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

MCNP input file

10 0 10

11 0 -10 20 50

20 0 -20

50 4 -1.0 -50

10 S 0 0 0 1000

20 RCC -16.9 0 -16.9 -0.00707 0 -0.00707 1.27

50 RCC 0 0 0 -0.140 0 -0.14 4

MODE N H

IMP:N 0 1 1 1

IMP:H 0 1 1 1

M4 6012 1 1001 2 $polietilene

MT4 poly.60t

PHYS:N 100 0 0 -1 -1 0 1

SDEF ERG=80 PAR=N POS=0 0 2 RAD=D4 AXS=0 0 1 EXT=0.0 VEC=0 0 1 DIR=-1

SI4 H 0.0 2 $flat beam of radius 2 cm

SP4 -21 1

F11:H 20.3

F21:N 20.3

E11 0 1 48I 80

CTME 20

CELL CARDS

SURFACE CARDS

DATA CARDS● Source● Materials● Physics ● Tally

Page 10: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

MCNP tools (examples): geometry, sources, materials, tallies

Page 11: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Exercise: Geometry and materials

Page 12: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Advanced geometry

Exercise: Make a lattice with some changes in the materials

Exercise: Make an hexagonal lattice of rods in a moderator material

Page 13: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Source (MCNPX) and Tally

Page 14: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Tally example: neutron moderation

● Isotropic source of monoenergetic 14 MeV neutrons in the center

● Simulation of the energy spectrum at the surface for different radii

● R=1 cm → fast spectrum; R=100 cm → thermal spectrum

R

Polyethylene Sphere

Page 15: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Mesh example:Energy deposition in hadron therapy

1 MeV Photons

166 MeV/u Carbon Nuclei150 MeV Protons

Ions have a peaked profile which allows greater tumour dose at lower dose to the normal tissue around. Changing the ion energy shifts in depth the position of energy deposition.

Page 16: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Comparison of dose distributions between IMPT (right) and IMRT (left)

Page 17: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Variance Reduction Techniques

Page 18: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

A million years problem(Variance Reduction techniques)

● Exercise: Calculate the dose at the detector position. Use variance reduction techniques to compute the problem in a finite time

Detector

Gamma source

Lead shielding (10 cm)

Total absorber (a lot of Lead)

Water phantom

Page 19: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Motivation for Variance Reduction

● Exchange user efficiency for computational efficiency.

● Few hours of user time often reduces computational time by 10-1000.

● Some problems can't be solved without.

● Most techniques decrease R2 more than T is increased.

Cautions:

● Don't get too elaborate too quickly

● Study the manual before using VRT

● Balance user time with computation time

● Study the output for peculiarities (eg. Weight balance table, FOM table...)

FOM=1

R2T

Page 20: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Weight WindowsSplitting Russian Rulette

Forced CollisionDxtran sphere

Page 21: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Criticality

Page 22: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Criticality

The k parameter is the multiplication factor defined as the ratio of « useful » neutrons produced in average per fission of one generation to the number of « useful » neutrons of the previous generation.

How to simulate k using Monte Carlo? If you follow every particle the simulation can't find a solution

Page 23: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

“K” according to BoltzmannThe most general neutron transport equation (Boltzmann equation) is a balance statement that conserves neutrons. Each term represents a gain or a loss of a neutron, and the balance, in essence, claims that neutrons gained equals neutrons lost. It is formulated as follows:

Escape+Absorbtion=Fission−dNdt

Escape+Absorbtion=1kFission

An advantage of k eigenvalue formulation lies in the physical interpretations of theeigenvalue and the iterative technique derived from it. The technique is a powerful method forcarrying out criticality calculations.

A system containing fissionable material is said to be critical if there is a self-sustaining time-independent solution. But if we try to find a solution to and find that none exists? Criticality calculations are normally cast into the form of Eigenvalue problems, where the Eigenvalue provides a measure of whether the system is critical or subcritical and by how much.

Page 24: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

What does MCNP do?

1) Start from your guess:

➔ Initial guess for k (usually 1 is ok)

➔ Initial guess for source distribution (put one source in every fissionable material)

➔ Watt fission spectrum (default)

2) Cycle (M times)

➔ Iteration of N neutrons per cycle

➔ Eigenvalue estimation

3) Did k converge?

Page 25: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Example of reactor core

Page 26: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo
Page 27: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

My applications

Page 28: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Response of the LaBr3 gamma ray spectrometer

Response to gamma rays

Response to background induced by 2.5 and 14 MeV neutrons mostly via inelastic scattering and (n,2n) reactions.

Geometry of the detector

Page 29: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

Study for a proton recoil neutron spectrometer

Ep'

= En cos2(θ)

Simulazione dei diversi contributi alla risoluzione con neutroni da 50 MeV

Page 30: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo

THE END

Page 31: MCNP/MCNPX Intermediate Workshopfisica.mib.infn.it/local/dottorato/dottdirs/Carlo_Cazzaniga/... · MCNP/MCNPX Intermediate Workshop NEA, NEA Paris France October 22 - 26, 2012 Carlo