Multi-Purpose Particle and Heavy Ion Transport code System

Slides:



Advertisements
Similar presentations
Request Dispatching for Cheap Energy Prices in Cloud Data Centers
Advertisements

SpringerLink Training Kit
Luminosity measurements at Hadron Colliders
From Word Embeddings To Document Distances
Choosing a Dental Plan Student Name
Virtual Environments and Computer Graphics
Chương 1: CÁC PHƯƠNG THỨC GIAO DỊCH TRÊN THỊ TRƯỜNG THẾ GIỚI
THỰC TIỄN KINH DOANH TRONG CỘNG ĐỒNG KINH TẾ ASEAN –
D. Phát triển thương hiệu
NHỮNG VẤN ĐỀ NỔI BẬT CỦA NỀN KINH TẾ VIỆT NAM GIAI ĐOẠN
Điều trị chống huyết khối trong tai biến mạch máu não
BÖnh Parkinson PGS.TS.BS NGUYỄN TRỌNG HƯNG BỆNH VIỆN LÃO KHOA TRUNG ƯƠNG TRƯỜNG ĐẠI HỌC Y HÀ NỘI Bác Ninh 2013.
Nasal Cannula X particulate mask
Evolving Architecture for Beyond the Standard Model
HF NOISE FILTERS PERFORMANCE
Electronics for Pedestrians – Passive Components –
Parameterization of Tabulated BRDFs Ian Mallett (me), Cem Yuksel
L-Systems and Affine Transformations
CMSC423: Bioinformatic Algorithms, Databases and Tools
Some aspect concerning the LMDZ dynamical core and its use
Bayesian Confidence Limits and Intervals
实习总结 (Internship Summary)
Current State of Japanese Economy under Negative Interest Rate and Proposed Remedies Naoyuki Yoshino Dean Asian Development Bank Institute Professor Emeritus,
Front End Electronics for SOI Monolithic Pixel Sensor
Face Recognition Monday, February 1, 2016.
Solving Rubik's Cube By: Etai Nativ.
CS284 Paper Presentation Arpad Kovacs
انتقال حرارت 2 خانم خسرویار.
Summer Student Program First results
Theoretical Results on Neutrinos
HERMESでのHard Exclusive生成過程による 核子内クォーク全角運動量についての研究
Wavelet Coherence & Cross-Wavelet Transform
yaSpMV: Yet Another SpMV Framework on GPUs
Creating Synthetic Microdata for Higher Educational Use in Japan: Reproduction of Distribution Type based on the Descriptive Statistics Kiyomi Shirakawa.
MOCLA02 Design of a Compact L-­band Transverse Deflecting Cavity with Arbitrary Polarizations for the SACLA Injector Sep. 14th, 2015 H. Maesaka, T. Asaka,
Hui Wang†*, Canturk Isci‡, Lavanya Subramanian*,
Fuel cell development program for electric vehicle
Overview of TST-2 Experiment
Optomechanics with atoms
داده کاوی سئوالات نمونه
Inter-system biases estimation in multi-GNSS relative positioning with GPS and Galileo Cecile Deprez and Rene Warnant University of Liege, Belgium  
ლექცია 4 - ფული და ინფლაცია
10. predavanje Novac i financijski sustav
Wissenschaftliche Aussprache zur Dissertation
FLUORECENCE MICROSCOPY SUPERRESOLUTION BLINK MICROSCOPY ON THE BASIS OF ENGINEERED DARK STATES* *Christian Steinhauer, Carsten Forthmann, Jan Vogelsang,
Particle acceleration during the gamma-ray flares of the Crab Nebular
Interpretations of the Derivative Gottfried Wilhelm Leibniz
Advisor: Chiuyuan Chen Student: Shao-Chun Lin
Widow Rockfish Assessment
SiW-ECAL Beam Test 2015 Kick-Off meeting
On Robust Neighbor Discovery in Mobile Wireless Networks
Chapter 6 并发:死锁和饥饿 Operating Systems: Internals and Design Principles
You NEED your book!!! Frequency Distribution
Y V =0 a V =V0 x b b V =0 z
Fairness-oriented Scheduling Support for Multicore Systems
Climate-Energy-Policy Interaction
Hui Wang†*, Canturk Isci‡, Lavanya Subramanian*,
Ch48 Statistics by Chtan FYHSKulai
The ABCD matrix for parabolic reflectors and its application to astigmatism free four-mirror cavities.
Measure Twice and Cut Once: Robust Dynamic Voltage Scaling for FPGAs
Online Learning: An Introduction
Factor Based Index of Systemic Stress (FISS)
What is Chemistry? Chemistry is: the study of matter & the changes it undergoes Composition Structure Properties Energy changes.
THE BERRY PHASE OF A BOGOLIUBOV QUASIPARTICLE IN AN ABRIKOSOV VORTEX*
Quantum-classical transition in optical twin beams and experimental applications to quantum metrology Ivano Ruo-Berchera Frascati.
The Toroidal Sporadic Source: Understanding Temporal Variations
FW 3.4: More Circle Practice
ارائه یک روش حل مبتنی بر استراتژی های تکاملی گروه بندی برای حل مسئله بسته بندی اقلام در ظروف
Decision Procedures Christoph M. Wintersteiger 9/11/2017 3:14 PM
Limits on Anomalous WWγ and WWZ Couplings from DØ
Presentation transcript:

Multi-Purpose Particle and Heavy Ion Transport code System PHITS Multi-Purpose Particle and Heavy Ion Transport code System Useful Functions PHITS講習会 入門実習 Feb. 2017 revised Title 1

Table of Contents [transform] [magnetic field] [counter] PHITS講習会 入門実習 Table of Contents 2

[transform] section You can translate and/or rotate the geometries defined in [source], [surface], [cell], [magnetic field] sections as well as r-z and xyz meshes defined in any tally. Z Y Rotation X XYZ coordinate system Translation [transform] 3

How to use In the case of M=1, 𝐵 1 = cos 𝑥 ′ ,𝑥 𝐵 2 = cos 𝑥 ′ ,𝑦 After making [transform] section, you can use this function by setting trcl=n in [cell], [source], and so on. [ T r a n s f o r m ] Trn O1 O2 O3 B1 B2 B3 B4 B5 B6 B7 B8 B9 M In the case of M=1, 𝐵 1 = cos 𝑥 ′ ,𝑥 𝐵 2 = cos 𝑥 ′ ,𝑦 𝐵 3 = cos 𝑥 ′ ,𝑧 𝐵 4 = cos 𝑦 ′ ,𝑥 𝐵 5 = cos 𝑦 ′ ,𝑦 𝐵 6 = cos 𝑦 ′ ,𝑧 𝐵 7 = cos 𝑧 ′ ,𝑥 𝐵 8 = cos 𝑧 ′ ,𝑦 𝐵 9 = cos 𝑧 ′ ,𝑧 𝑥′ 𝑦′ 𝑧′ = 𝐵 1 𝐵 2 𝐵 3 𝐵 4 𝐵 5 𝐵 6 𝐵 7 𝐵 8 𝐵 9 𝑥 𝑦 𝑧 + 𝑂 1 𝑂 2 𝑂 3 n: ID of transformation O1,O2,O3: Displacement vector B1~B9: Elements of rotation matrix M: Parameter to change the equation of the transformation(The case of M=1 is shown here.) [transform] 4

Convenient Way to Use You can use the following sample to easily transform the coordinate. [ T r a n s f o r m ] set: c10[0] $ angle of around Z (degree) set: c20[0] $ angle of around Y (degree) set: c30[0] $ angle of around X (degree) tr1 0 0 0 cos(c10/180*pi)*cos(c20/180*pi) sin(c10/180*pi)*cos(c30/180*pi)+cos(c10/180*pi)*sin(c20/180*pi)*sin(c30/180*pi) sin(c10/180*pi)*sin(c30/180*pi)-cos(c10/180*pi)*sin(c20/180*pi)*cos(c30/180*pi) -sin(c10/180*pi)*cos(c20/180*pi) cos(c10/180*pi)*cos(c30/180*pi)-sin(c10/180*pi)*sin(c20/180*pi)*sin(c30/180*pi) cos(c10/180*pi)*sin(c30/180*pi)+sin(c10/180*pi)*sin(c20/180*pi)*cos(c30/180*pi) sin(c20/180*pi) -cos(c20/180*pi)*sin(c30/180*pi) cos(c20/180*pi)*cos(c30/180*pi) 1 Rotation angles around X-, Y-, and Z-axes. X-, Y-, and Z components for translation [transform] 5

Example transform.inp [transform] 6 Execute to see the geometry. [ M a t e r i a l ] mat[1] H 2 O 1 [ S u r f a c e ] 10 so 500. 11 cz 5. 12 pz 0. 13 pz 10. [ C e l l ] 100 -1 10 101 1 -1. -11 12 -13 110 0 -10 #101 Let’s rotate the cylinder around Y-axis by 30 degrees. track_xy.eps Cylinder with radius of 5cm and height of 10cm track_xz.eps [transform] 6

Example (Rotation) transform.inp [transform] 7 [ S u r f a c e ] 10 so 500. 11 cz 5. 12 pz 0. 13 pz 10. [ C e l l ] 100 -1 10 101 1 -1. -11 12 -13 trcl=1 110 0 -10 #101 [ T r a n s f o r m ] set: c10[0] $ angle of around Z (degree) set: c20[30] $ angle of around Y (degree) set: c30[0] $ angle of around X (degree) tr1 0 0 0 ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ [ T r a n s f o r m ] set: c10[0] $ angle of around Z (degree) set: c20[0] $ angle of around Y (degree) set: c30[0] $ angle of around X (degree) tr1 0 0 0 ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ Rotation angles around X-, Y-, and Z-axes. Transformation of cell 101 by tr1. X-, Y-, and Z-components for the translation. Let’s rotate the cylinder around Y-axis by 30 degrees! track_xz.eps [transform] 7

Example (translation) transform.inp [ T r a n s f o r m ] set: c10[0] $ angle of around Z (degree) set: c20[30] $ angle of around Y (degree) set: c30[0] $ angle of around X (degree) tr1 0 0 50 ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ [ T r a n s f o r m ] set: c10[0] $ angle of around Z (degree) set: c20[30] $ angle of around Y (degree) set: c30[0] $ angle of around X (degree) tr1 0 0 0 ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ Rotation angles around X-, Y-, and Z-axes. X-, Y-, and Z-components for the translation. In the case of M=1, the translation is performed after the rotation. Move this cylinder along the positive direction of the Z-axis by 50 cm! track_xz.eps [transform] 8

Exercise 1 transform.inp [transform] 9 Let’s rotate the cylinder around Y-axis by 45 degrees, then transform it along with X-axis by 10 cm and Z-axis by 45 cm! [ T r a n s f o r m ] set: c10[0] $ angle of around Z (degree) set: c20[45] $ angle of around Y (degree) set: c30[0] $ angle of around X (degree) tr1 10 0 45 ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ [ T r a n s f o r m ] set: c10[0] $ angle of around Z (degree) set: c20[30] $ angle of around Y (degree) set: c30[0] $ angle of around X (degree) tr1 0 0 50 ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ track_xz.eps [transform] 9

Exercise 2 Construct the geometry shown below by adding 3 cells. Do not change [surface] section. Change [cell] & [transform] section. In [transform] section, copy & paste lines below set: c10[*] by 3 times, and assign each transform equation by tr2, tr3, tr4, respectively. track_xz.eps [transform] 10

Table of Contents [transform] [magnetic field] [counter] PHITS講習会 入門実習 Table of Contents 11

[magnetic field] section You can set magnetic fields (dipole and quadrupole) in certain region in PHITS geometry to bend and deflect the charged particle trajectories. Example of dipole magnet: Homogeneous magnetic field F=ev×B [magnetic field] 12

[magnetic field] section You can set magnetic fields (dipole and quadrupole) in certain region in PHITS geometry to bend and deflect the charged particle trajectories. Example of quadrupole magnet: Converge charged particle trajectory N S X-axis Y-axis Schematic image of quadrupole magnet [magnetic field] 13

Direction of Magnetic Field How to use After making [magnetic field] section, you can use this function by setting imagnf=1 in [parameters]. [ Magnetic Field ] reg typ gap mgf trcl 1 4 10.0 -5.0 3 2 4 10.0 5.0 1 3 2 10.0 -10.0 0 *For electrons and positrons, this function is available only when you use EGS5 (after PHITS version 2.90). reg: cell ID to set the magnetic field typ: dipole (=2) or quadrupole (=4) gap: half distance between magnet in cm (not used for dipole but need to be input) mgf: strength of magnetic field in kG trcl: transform ID Direction of Magnetic Field Y-axis (positive direction) for dipole →positive charged particle bends to the negative direction of X-axis when it is going to the positive direction of Z-axis For quadrupole →positive charged particle converges along to X-axis and diverges along to Y-axis when it is going to the positive direction of Z-axis [magnetic field] 14

Example magfield.inp [magnetic field] 15 Check geometry and perform simulation by setting icntl=0. [ S o u r c e ] s-type = 1 proj = proton dir = 1 r0 = 2.5 z0 = -10. z1 = -10. e0 = 290 [ S u r f a c e ] 10 so 500. 11 cz 5. 12 pz 0. 13 pz 10. [ C e l l ] 100 -1 10 101 1 -1. -11 12 -13 trcl=1 102 1 -1. -11 12 -13 trcl=2 103 1 -1. -11 12 -13 trcl=3 104 1 -1. -11 12 -13 trcl=4 110 0 -10 #101 #102 #103 #104 track_xz.eps [magnetic field] 15

Example for Dipole Magnet magfield.inp [ P a r a m e t e r s ] icntl = 0 maxcas = 100 maxbch = 10 imagnf = 1 file(6) = phits.out ・ ・ ・ ・ ・ ・ [magnetic field] reg typ gap mgf 104 2 10 100 [ P a r a m e t e r s ] icntl = 0 maxcas = 100 maxbch = 10 $ imagnf = 1 file(6) = phits.out ・ ・ ・ ・ ・ ・ [magnetic field] reg typ gap mgf 104 2 10 100 track_xz.eps [magnetic field] 16

Example for Quadrupole Magnet magfield.inp [ P a r a m e t e r s ] icntl = 0 maxcas = 100 maxbch = 10 imagnf = 1 file(6) = phits.out ・ ・ ・ ・ ・ ・ [magnetic field] reg typ gap mgf 104 4 10 100 [ P a r a m e t e r s ] icntl = 0 maxcas = 100 maxbch = 10 imagnf = 1 file(6) = phits.out ・ ・ ・ ・ ・ ・ [magnetic field] reg typ gap mgf 104 2 10 100 track_xz.eps [magnetic field] 17

Exercise1 magfield.inp [magnetic field] 18 Check divergence of particles along to the Y-axis! magfield.inp [ T - T R A C K ] mesh = xyz x-type = 2 nx = 100 xmin = -25. xmax = 25. y-type = 2 ny = 100 ymin = -25. ymax = 25. z-type = 1 nz = 1 -5.0 5.0 part = proton ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ file = track_xy.out [ T - T R A C K ] mesh = xyz x-type = 2 nx = 100 xmin = -25. xmax = 25. y-type = 2 ny = 100 ymin = -25. ymax = 25. z-type = 1 nz = 3 30.0 40.0 50.0 60.0 part = proton ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ file = track_xy.out track_xz.eps track_xy.eps [magnetic field] 18

Exercise2 [magnetic field] 19 Bend and converge the beam to hit the cell 101 like the picture below (You do not have to consider the divergence of beam along to Y-axis). Set two difference magnetic fields. Control the beam by changing the direction and strength of the magnetic fields. track_xz.eps [magnetic field] 19

Table of Contents [transform] [magnetic field] [counter] PHITS講習会 入門実習 Table of Contents 20

What is “Counter” in PHITS? Each particle has its own “Counter” number to identify what it has been experienced, such as entering, exiting from, reacting in, and reflected by a certain region. To investigate the origin of tallied particle → What are the difference between particles Produced in each region? Tally When a particle collides in a region, count = counter +1. [counter] 21

How to use After making [counter] section, you can use this function by setting ctmin(i), ctmax(i) in each tally section (i is counter ID). [ C o u n t e r ] counter = 1 part = neutron proton reg in out coll ref 1 1 10000 0 0 2 1 10000 0 0 Counter: counter ID (up to 3) part: Countered particle (Particle type followed by this counter) Event Types in: Enter the cell out: Exit from the cell coll*: React in the cell ref: Reflected by the cell Cells for activating this counter Action 0: Nothing happens 10000: Set counter = 0 Other: Counter = Counter + Number *You can distinguish further detailed channels for coll. (See the next slide.) [counter] 22

classification of coll coll is classified as nucl, atom, and dcay. Furthermore, nucl and atom have 3 and 8 channels, respectively. coll: reactions nucl: nuclear interactions elst: elastic scatterings iels: inelastic scatterings fiss: fissions atom: atomic interactions delt: generation of delta-rays fluo: generation of fluorescence x-rays auge: generation of Auger electrons brem: Bremsstrahlung phel: photoelectric effects cmpt: Compton scatterings pprd: production of electron-positron pairs anih: annihilation of electron-positron pairs dcay: particle decays [counter] 23

Example counter.inp [counter] 24 Check geometry and perform simulation by setting icntl=0. [ M a t e r i a l ] MAT[ 1 ] H 2 O 1 MAT[ 2 ] N 8 O 2 MAT[ 3 ] Cu 1 [ C e l l ] 100 -1 10 101 1 -1. -11 12 -13 trcl=1 102 1 -1. -11 12 -13 trcl=2 103 2 -1.20e-03 -11 12 -13 trcl=3 104 3 -8.93 -11 12 -13 trcl=4 110 0 -10 #101 #102 #103 #104 ・ ・ ・ ・ ・ ・ [ C o u n t e r ] counter = 1 part = proton reg in out coll ref 102 0 0 1 0 track_xz.eps [counter] 24

Example counter.inp [counter] 25 From 110 to 101 cross.eps [ T - C r o s s ] title = Particle current using [T-cross] tally mesh = reg reg = 1 non r-in r-out area 1 110 101 1.0 e-type = 3 emin = 1.0 emax = 500. ne = 30 unit = 1 axis = eng file = cross.dat output = current part = proton angel = ymin[1.E-06] ymax[1.E-02] epsout = 1 From 110 to 101 cross.eps [counter] 25

Example counter.inp [counter] 26 Add conditions related the counter option to the [t-cross] section! ctmin(1)=1, ctmax(1)=1 counter.inp [ C o u n t e r ] counter = 1 part = proton reg in out coll ref 102 0 0 1 0 [ T - C r o s s ] ・ ・ ・ ・ ・ ・ file = cross-c1.dat output = current part = proton angel = ymin[1.E-06] ymax[1.E-02] epsout = 1 ctmin(1) = 1 ctmax(1) = 1 cross-c1.eps Min & Max values of the counter ID1 for tallied particle Scattered protons only in the region 102 are tallied. [counter] 26

Exercise 1 counter.inp [counter] 27 Add neutron to “part” in the [t-cross] section to consider their origin. [ C o u n t e r ] counter = 1 part = proton reg in out coll ref 102 0 0 1 0 [ T - C r o s s ] ・ ・ ・ ・ ・ ・ file = cross-c1.dat output = current part = proton neutron angel = ymin[1.E-06] ymax[1.E-02] epsout = 1 ctmin(1) = 1 ctmax(1) = 1 [ C o u n t e r ] counter = 1 part = proton reg in out coll ref 102 0 0 1 0 [ T - C r o s s ] ・ ・ ・ ・ ・ ・ file = cross-c1.dat output = current part = proton angel = ymin[1.E-06] ymax[1.E-02] epsout = 1 ctmin(1) = 1 ctmax(1) = 1 cross-c1.eps Neutrons can also be estimated with the condition as in the protons. [counter] 27

Exercise 2 Let’s tally scattered particles from the 103 and 104 regions as in 102. Define counter 2 and 3 in the [counter] section to count events occurred in 103 and 104, respectively. Copy & paste the [t-cross] section (2 times), and set a condition of counter 2 and 3. (change their output file names) tally [counter] 28

Answer 2 counter.inp [counter] 29 cross-c2.eps cross-c3.eps ・ ・ ・ ・ ・ ・ counter = 2 part = proton reg in out coll ref 103 0 0 1 0 counter = 3 104 0 0 1 0 [ T - C r o s s ] file = cross-c2.dat output = current part = proton neutron angel = ymin[1.E-06] ymax[1.E-02] epsout = 1 ctmin(2) = 1 ctmax(2) = 1 cross-c2.eps cross-c3.eps No reaction occurs in the air region. Protons scattered from 104 are very little. [counter] 29

Summary You can set up complex geometries as well as source and tallies using [transform] section. You can simulate the particle trajectories in magnetic fields using [magnetic field] section. You can analyze the simulation results in more detail using [counter] section. 《休憩はさむ》 まとめ Summary 30