Professional Documents
Culture Documents
MCNPCode ATD SLRI 140926 PDF
MCNPCode ATD SLRI 140926 PDF
Introduction
Simulation using MCNP
Visual Editor
Variance Reduction
Siriyaporn Sangaroon
25 September 2014 1
Introduction
2
The Monte Carlo Method
3
Number of publications on various MC codes
4
The Monte Carlo Particle Transportation Grand
Prix, during last 10 years
5
Tools for modelling and simulation of particle transport
7
GEANT
8
FLUKA
1962: MC code(s) for high-energy proton beams J. Ranft (Leipzig) and H.
Geibel (CERN)
1970: Study of event-by-event fluctuations in calorimeters =>
FLUktuierende Kaskade, Mainly used for radiation shielding studies
1970-1987: Development by J. Ranft and J.H. M๖hring (Leipzig) with
significant contributions from P. Aarnio and J. Routti (Helsinki), J.M.
Zazula (Cracow) and A. Fass๒ and G.R. Stephenson (CERN)
1989-: A. Ferrari and P.R. Sala (INFN Milano), together with A. Fass and J.
Ranft, transforms FLUKA into a general purpose MC code
2003: CERN-INFN Collaboration Agreement
2006: Many improvements, free format input, nice tools…
2011: Gfortran option available 9
MCNP
10
My work on MCNP Simulation (2013-2014)
12
MCNP Simulation
Last release of MCNP5 (version 1.60) (NPE)
Last release of MCNPX (version 2.7.0)
o Capable of tracking 34 particle types
o Energy range:
Neutron: 0.01 MeV – 20 MeV
Photon: 1 keV – 100 GeV
Electron: 1 keV – 1 GeV
MCNP6
o Essential features of MCNPX and MCNP5 available in MCNP6
o MCNP6 Version 1.0 released Aug 2013.
13
Applications
14
Documentation
15
Compiling
16
Execution
17
Execution
18
Input file
1. Word pad
2. The Visual Editor for Monte Carlo N-Particle : code for visually creating
and graphically displaying input files for MCNP
19
Input file
TITLE CARD
CELL CARDS
SURFACE CARDS
DATA CARDS
22
Cell Cards
Once you have defined surfaces, then you combine those surfaces into
cells using the intersection and/or the union of surfaces.
Cells are the basic unit of MCNP geometry
Cells are defined by Surfaces
Cartesian Coordinate System
Must account for all phase space
Every xyz point will lie either on a surface or within a uniquely
defined cell.
At least one cell will describe the “outside world”, exterior to
the problem cells (with importance of zero).
23
All phase space defined
24
Cell Card Format
25
Boolean Intersection
26
Boolean Union
27
Order Of Operations
28
Example (2 cubes nested)
29
Macrobodies Simplify Cell Descriptions
30
Macrobodies
31
2 Cube Example with Macrobodies
32
MACROBODIES (cont)
33
Macrobody Limitations
34
Data Cards
35
Mn (Material) Card
36
Importances
Either an IMP or WWN card is required; most of the other cards are for 37
optional variance reduction techniques
The Visual Editor for Monte Carlo N-Particle
Surface
*Note:
Visual
Editor
Macro
body Surface wizard 38
Cell
*Note:
Visual
Editor
39
More Problem Cutoff Options
STOP card/stop<inp> file
40
MODE Card
41
MCNP Particles
42
Auxiliary Input Files (READ Card)
• SSR/SSW
43
Source Description
44
SDEF Description
45
SDEF1 Input File
Plot source
Plot track
46
Checking The Source (output)
47
First 50 Particles
48
SDEF Description
49
SI, SP, SB, and DS CARDS
50
Specific SDEF Example
on Plasma Fusion
51
Tallies
Definitions
52
Tally Types
53
Basic Tally Format
54
Additional Tally Capabilities
55
Visual Editor
The Visual Editor for Monte Carlo N-Particle : code for visually
creating and graphically displaying input files for MCNP
56
What is the Visual Editor?
57
Complete Interface for MCNP
58
Complete Interface for MCNP
59
60
Example geometry
BOX (x=0.525 cm, y=0.03 cm, z=12cm)
Electron source
62
Plot Tracks
63
Tally
65
Variance Reduction
66
Definitions
67
Ten Statistical Checks (Output file)
68
Variance reduction techniques used to improve
efficiency
69
Cell Importance Cards: IMP
The importance of a cell is used to
terminate the particle’s history if the
Y axis importance is zero, for geometry
splitting and Russian roulette to help
Simple Geometry particles move to more important
regions of the geometry.
Slab of lead divided into
10 cell by planes
Tally:
f1:p 20
70
Example 1: imp:p 1 10r 0
All cell in side the universe have the important = 1
FOM = 290
71
Example 2: Random the cell importance value
Tally
21 1 -11 -30 10 -11 imp:p=2
22 1 -11 -30 11 -12 imp:p=4
23 1 -11 -30 12 -13 imp:p=8 Source
24 1 -11 -30 13 -14 imp:p=16
25 1 -11 -30 14 -15 imp:p=32
26 1 -11 -30 15 -16 imp:p=64
27 1 -11 -30 16 -17 imp:p=128
28 1 -11 -30 17 -18 imp:p=256
29 1 -11 -30 18 -19 imp:p=512
30 1 -11 -30 19 -20 imp:p=1024
31 0 (-10:30:20) -31 imp:p=1
32 0 31 imp:p=0
Cell 21 ........... 30
FOM = 4806 (very high) but it did not pass 1 of 10 statistical checks 72
Weight Window Cards
Weight windows can be either cell-based or mesh-based.
LEAD
Neutron capture
in HDPE
75
Tally plots
ctme 1 (min)
No weight window
neutron gamma
(imp = 0, 1)
76
Note
77
78
79
80
81
82
83
84
Beam* SDEF Example
85