MCNP
MCNP
Volodymyr Mosorov
outgoing researcher at University of Bergen,
Norway
Computer Engineering Department
Technical University of Lodz
18/22 Stefanowskiego, 90-924 Lodz, Poland
[email protected]
February, 2009
Outline
2
Reminding
3
Stochastic nature of photons transport
The main reason:
Different mechanisms
of Gamma-Ray
Interactions with matter
(see a previous class)
4
Monte Carlo Method vs.
Deterministic Method (e.g.
Lambert-Beers Law)
EGS4 (http://slac.stanford.edu/egs)
Geant (http://geant4.web.cern.ch/geant4/)
7
MCNP
What is the MCNP?
MCNP is a general-purpose Monte Carlo N-Particle code
that can be used for neutron, photon, electron, or coupled
neutron/photon/electron transport.
What MCNP can do
radiation protection and dosimetry,
radiation shielding,
radiography,
medical physics,
nuclear criticality safety,
accelerator target design,
fission and fusion reactor design
etc.
8
From MCNP workshop
MCNP details:
Version:
4A ~1994
4B ~1997
4C1 ~2000
of development)
MCNP5 package
Written in FORTRAN 90
Computer Platforms:
Disadvantages:
very computationally extensive,
poor interface,
time-consuming
13
MCNP code concept
Place initial photons parameters on stack Y
Photon energy Y
Terminate history
< cutoff?
N
Determine distance to next interaction
Transport photon taking into acount geometry
Has Y
photon left volume
of interest?
N
Determine type of interaction; Photoelectric,
Compton, Rayleigh, Pair production
Interaction space
Union :
Complement #
Surface command
Example
r
be
m
ns
ic
nu
sio
on
ce
en
ne
fa
m
r
di
Su
J t params
F(x,y,z)=S
Where
F is the function of surface
x,y,z are the coordinates of and arbitrary point
S sense of the point:
positive
negative
Surface sense cd
point 1 Y
0+0+0-9 = -0 :
Sphere
negative sense R=3
point 2
0+36+0-9 = 27 : positive sense Point 1
Cell 1
Cell 1 (0,0,0)
Cell # Mat # Den Surface
1 3 1.65e-2 -1
Cell 2
Cell 2
Cell # Mat # Den Surface
2 3 1.65e-2 +1
Point 2 (0,-6,0)
Boolean Operator
Union - :
Complement - #
Intersection
Logical AND
Only space between Surface 2
BOTH criteria are true Surface 1
Surface 4
y
Surface 3
x
Cell I
Surface Sense
Positive Negative
1 X
2 X
3 X
4 X
Boolean Union
Surface 2
Logical OR Surface 1
Cell # Mat # Den Surface
1 4 XXXX -1 : -2
Cell I
Boolean Union: Example
Surface 4
y
Cell II
Surface 3
x
Cell II
Surface Sense
Positive Negative
1 X
2 X
3 X
4 X
Complement Operator
Surface 4
# n means that the description of
the current cell is the complement Cell I Surface 2
Surface 1
of the description of cell n
Cell card y
Cell II
1 +1 -2 +3 -4 Surface 3
2 -1 : +2 : -3 : +4 x
Cell 2 also can be described as
2 #1
Summary of MCNP Cells
Cells are basic geometry unit
Cartesian coordinate system
Surfaces are used to define space
Sign defines surface sense (+ or -)
Class Mnemonic
Materials m
Importance imp
Source sdef
Tallies f
Problem cutoffs nps
Any card other than cells and surfaces goes to data cards
Materials card
General sdef
Surface
User-supplied:
Energy
Time
Direction u v w
Position xyz
Particle type
Weight
SDEF Card
Example:
sdef ERG=D1 POS=x y z CEL=m RAD=D2 EXT=D3 AXS=I j k
SI1 H 0.001 0.01 0.1 1 10
SP1 10 0.1 0.01 1 15
SI2 r1
SI3 a
100
i,j,k
r1 10
Pr obabi l i t y
1
0. 1
a
0. 01
0. 001
x,y,z 0. 001 0. 01 0. 1 1 10
Cell m Ener gy( MeV)
Tally Card (detector)
MCNP execution
Examples;
mcnp inp=test1 outp=test1o ip
mcnp i=test1 ixz
Example
Problem description
40.64 cm
Source: 252Cf
VisEd
Problem setup
Material surface cell data run
Useful link