Beruflich Dokumente
Kultur Dokumente
PHITS
Jun. 2013 revised
title
You can obtain this kind of results at the end of this lecture Particle fluence (left) and depth-dose distribution (right) for the simulation condition for homework
Purpose
Contents of Lecture II
Introduction and usage of Tally
What is Tally? Kinds of Tally How to use Tally for checking geometry How to use Tally for calculating physical quantities
Summary
Contents
What is Tally?
Tally: a record of the number or amount of something, especially one that you can keep adding to;
[Oxford Advanced Learners Dictionary (7th edition), OXFORD.]
In PHITS, the word of Tally used for functions to Deduce physical quantities such as flux and heat, or Depict the 2D or 3D geometry in certain area
What is tally?
Concept of Tally
PHITS simulates the motion of each particle using the Monte Carlo method. You can estimate their average behavior by calculating various physical quantities as flux and deposition energy in a certain region, using Tally
How many particles were passed through this region? Use track-length tally
What is tally?
Contents of Lecture II
Introduction and usage of Tally
What is Tally? Kinds of Tally How to use Tally for checking geometry How to use Tally for calculating physical quantities
Summary
Contents
Tally Types
Various tally functions are implemented in PHITS Many physical quantities can be deduced from the PHITS simulation by selecting appropriate tally
For example
Particle flux [t-track], [t-cross] Heat and deposition energy [t-heat], [t-deposit] Secondary particles [t-yield], [t-product] LET or microdosimetric distribution [t-let], [t-sed]
Checking geometry
2-dimensional visualization [t-gshow], [t-rshow] 3-dimensional visualization [t-3dshow]
Visualize geometry
[t-3dshow]
Tally for visualizing the geometry in 3-dimension from a viewpoint of a certain location in PHITS virtual space Activated only when icntl=11 in the [parameters] section
[t-gshow]
Tally for visualizing the geometry in 2-dimension cut by certain slices Show region boundary, cell number, material ID etc. Other tallies can be used for this purpose by setting icntl=8 in the [parameters] section (see Lecture I)
10
[t-track]
Tally for calculating track-length (cm) of particles in certain regions Average flux (/cm2) in the region can be also deduced from this tally, dividing the track length (cm) by the volume of the region (cm3)
You can visualize the trajectory of particle using [t-track] by setting small mesh for tallying regions
11
x-axis
12
x-axis
13
x-axis
14
x-axis
15
x-axis
16
[t-cross]
Tally for calculating flux or current (/cm2) of particles crossing certain surfaces Current is simply added by 1 when a particle cross the surface, while flux is added by 1/cos(q)
17
[t-heat], [t-deposit]
Tally for calculating deposition energy (MeV) in certain regions Only ionization energy losses by charged particles are scored by [t-deposit] tally Event-by-event data can be also deduced! Neutron and photon doses are calculated by the Kerma approximation in [t-heat] tally
18
[t-yield], [t-product]
Tally for calculating the number of secondary particles generated by nuclear reactions in certain regions Energy or time distribution of secondary particles can be obtained from [t-product] tally Yield of each nuclide can be depicted on nuclear chart using [t-yield] tally
19
[t-dpa]
Tally for calculating the radiation damage index DPA in certain regions DPA is the average number of displaced atoms per atom of a material, and is calculated from the flux multiplied with the damage cross section
20
[t-let], [t-sed]
Tally for calculating the probability densities of deposition energy or flux in terms of LET, lineal energy (y), or specific energy (z) in microscopic sites distributed in certain regions Useful for radiobiological calculations
21
[t-deposit2]
Tally for calculating event-by-event deposition energies in two regions Output the contour map of their correlation Useful for simulating experimental data obtained by using two detectors
22
[t-dchain]
Tally for generating the input files for DCHAIN-SP, which can calculate the time evolution of the radioactive nuclides during and after irradiation DCHAIN-SP is also included in the PHITS package
Irradiation Cooling
Time dependence of radioactivities inside water phantom irradiated by 150 MeV proton for 6 min
23
Contents of Lecture II
Introduction and usage of Tally
What is Tally? Kinds of Tally How to use Tally for checking geometry How to use Tally for calculating physical quantities
Summary
Contents
24
Geometry Check
Every time you construct new geometry, it is better to check the geometry using [t-3dshow] or [t-gshow]
Otherwise you would obtain wrong results without noticing miss-definition of the geometry, especially when you make an overlapping region!
25
Activate [t-3dshow]
Z
3dshow.eps
Water cylinder with radius 10 cm and height 50cm
26
Polar Coordinates
27
X X X
3dshow.eps
28
You can rotate [t-3dshow] picture using Python software See /phits/utility/rotate3dshow in more detail Tally for checking geometry 29
[t-gshow]
lec02.inp
[Parameters] Activate icntl = 11 7 [t-gshow] [T-Gshow] axis = xy output = 6 file = xy_gshow.out title = Check geometry epsout = 1 [T-Gshow] axis = xz output = 6 file = xz_gshow.out title = Check geometry using [T-gshow] tally epsout = 1
30
Contents of Lecture II
Introduction and usage of Tally
What is Tally? Kinds of Tally How to use Tally for checking geometry How to use Tally for calculating physical quantities
Summary
Contents
31
32
Example of [t-track]
If you would like to visualize particle trajectory lec02.inp
[T-TRACK] mesh = xyz x-type = 2 nx = 100 xmin = -25. xmax = 25. y-type = 1 ny = 1 -5.0 5.0 z-type = 2 nz = 200 zmin = -20. zmax = 80. part = all e-type = 1 ne = 1 0.0 5000.0 unit = 1 axis = xz file = xz_track_all.out gshow = 1 epsout = 1
[T-track]: Tally for calculating track-length or flux of particles in certain regions [T-track] can be used for visualizing particle trajectories by setting small mesh for tallying region
Output file Making an eps file using name specified by file=. (***.out ***.eps) In the case of 2D-plot, error files (_err.eps) are made.
33
xy_track_all.eps
xz_track_all.eps
Particle trajectory for carbon 290 MeV/u beam with radius = 2.5cm
34
xy_track_all_err.eps
xz_track_all_err.eps
35
36
Geometrical Mesh
lec02.inp
[T-TRACK] mesh = xyz x-type = 2 nx = 100 xmin = -25. xmax = 25. y-type = 1 ny = 1 -5.0 5.0 z-type = 2 nz = 200 zmin = -20. zmax = 80. part = all e-type = 1 ne = 1 0.0 5000.0 unit = 1 axis = xz file = xz_track_all.out gshow = 1 epsout = 1
mesh = xyz :Define tally region according to xyz coordinates You need to specify x-type, y-type, z-type X-axis (x-type = 2) : xmin (minimum value) : xmax (maximum value) : nx (number of mesh) Y-axis (y-type = 1) : ny (number of mesh) : -5.0 5.0 (Boundaries, ny+1
37
2,3: Define #mesh and their minimum & maximum values (2: linear, 3: logarithmic interval)
e-type = 2 ne = 100 emin = 0 emax = 1000 e-type = 3 ne = 100 emin = 0.1 emax = 5000
4,5: Define interval of mesh and their minimum & maximum values (4: linear, 5: logarithmic interval)
e-type = 4 edel = 100 emin = 0 emax = 5000 e-type = 5 edel = 1.301 =log10(20) emin = 0.1 emax = 5000
38
r-z mesh:
Divide the regions in Cylindrical coordinates
Z R
reg mesh:
Divide the regions in cells defined in PHITS virtual space
Y X
39
1. 2. 3. 4.
Copy [t-track] tally Change to mesh = r-z Make r-type sub-section Delete x-type and y-type sub-sections
40
41
42
43
44
12C
proton
neutron
45
46
1. Copy [t-track] section with r-z mesh 2. Change to axis = eng 3. Change energy-mesh sub-section 4. Change the tallied region into one region
[T-TRACK] mesh = r-z r-type = 2 nr = 1 rmin = 0. rmax = 25. z-type = 2 nz = 1 zmin = -20. zmax = 80. part = 12C proton neutron e-type = 2 ne = 100 emin = 0.0 emax = 5000.0 in MeV unit = 1 (not MeV/n) axis = eng file = eng_track_12C-p-n.out gshow = 1 epsout = 1
47
lec02.inp
[T-TRACK] mesh = r-z r-type = 2 nr = 1 rmin = 0. rmax = 25. z-type = 2 nz = 1 zmin = -20. zmax = 80. part = 12C proton neutron e-type = 2 ne = 100 emin = 0.0 emax = 5000.0 unit = 1 axis = eng file = eng_track_12C-p-n.out gshow = 1 epsout = 1
48
lec02.inp
[T-TRACK] mesh = r-z r-type = 2 nr = 1 rmin = 0. rmax = 25. z-type = 2 nz = 1 zmin = -20. zmax = 80. part = 12C proton neutron e-type = 3 Logarithmic ne = 100 Scale emin = 1.0 emax = 5000.0 unit = 1 axis = eng file = eng_track_12C-p-n.out gshow = 1 epsout = 1
49
lec02.inp
Change Z-Mesh
[T-TRACK] mesh = r-z r-type = 2 nr = 1 rmin = 0. rmax = 25. z-type = 2 nz = 2 zmin = -20. zmax = 80. part = 12C proton neutron -20z30 e-type = 3 ne and = 100 30 1.0 80 emin z = emax = 5000.0 unit = 1 axis = eng file = eng_track_12C-p-n.out gshow = 1 epsout = 1 angel = ymin(1e-11) ymax(1e-4)
Few carbon ions can reach over 30 cm depth (behind Bragg peak)
ANGEL parameter: To change layouts of eps figures. (See the ANGEL Manual)
50
lec02.inp
Change Z-Mesh
-20z0
[T-TRACK] mesh = r-z r-type = 2 nr = 1 rmin = 0. rmax = 25. z-type = 1 nz = 3 -20. 0. 30. 80. part = 12C proton neutron e-type = 3 -20 z0 ne = 100 and 0z30 emin = 1.0 0z emax =30 5000.0 unit and = 1 axis 30= zeng 80 file = eng_track_12C-p-n.out gshow = 1 epsout = 1 angel = ymin(1e-11) ymax(1e-4)
30z80
51
52
Change Unit
lec02.inp
[T-TRACK] mesh = r-z r-type = 2 nr = 1 rmin = 0. rmax = 25. z-type = 1 nz = 3 -20. 0. 30. 80. part = 12C proton neutron e-type = 3 ne = 100 emin = 1.0 emax = 5000.0 unit = 1 axis = eng file = eng_track_12C-p-n.out gshow = 1 epsout = 1 angel = ymin(1e-11) ymax(1e-4) [T-TRACK] mesh = r-z r-type = 2 nr = 1 rmin = 0. rmax = 25. z-type = 1 nz = 3 -20. 0. 30. 80. part = 12C proton neutron e-type = 3 ne = 100 emin = 1.0 emax = 5000.0 unit = 2 axis = eng file = eng_track_12C-p-n.out gshow = 1 epsout = 1 angel = ymin(1e-11) ymax(1e-4)
53
Change Unit
lec02.inp
[T-TRACK] mesh = r-z r-type = 2 nr = 1 rmin = 0. rmax = 25. z-type = 1 nz = 3 -20. 0. 30. 80. part = 12C proton neutron e-type = 3 ne = 100 emin = 1.0 emax = 5000.0 unit = 2 axis = eng file = eng_track_12C-p-n.out gshow = 1 epsout = 1 angel = ymin(1e-11) ymax(1e-4)
54
Contents of Lecture II
Introduction and usage of Tally
What is Tally? Kinds of Tally How to use Tally for checking geometry How to use Tally for calculating physical quantities
Summary
Contents
55
Summary
A variety of information can be deduced from the PHITS simulation using functions called Tally 2 types of tallies are implemented in PHITS, one is for visualizing PHITS geometry, and the other is for calculating physical quantities
Properness of the geometry can be checked by the tallies for its visualization: [t-3dshow] and [t-gshow]
For defining tally, you have to determine what kind of physical quantity in where of what particle in which unit in what output form
Summary
56
Homework
Depict the neutron and proton fluences, respectively, in your homework study Adjust [t-deposit] to see the Bragg peak of proton
Change the minimum & maximum values of y axis in the graph for the depth-dose distribution (use angel parameters) Investigate the difference of the depth-dose distributions between the inside and outside of beam center (within the radius of 2.5cm or not)
Homework
57
Example Answer
Proton (up) and neutron (down) fluences Depth-dose distribution inside (up) and outside (down) beam radius
Homework
58