0% found this document useful (0 votes)
17 views15 pages

Tutorial en

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views15 pages

Tutorial en

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Lecture note

Revised July 2021

title 1
Before Starting the Course

• Extract phits###.zip (### is the version number) to your


PC

• Input “phits@JAEA” for unzip password (not necessary


for some cases)

• Open tutorial-en.ppt (this file)

Installation 2
Supplement for PHITS course
Beginning of course
1. Distributed materials
2. PHITS installation & execution

End of course
1. /phits/ folder structure
2. PHITS code license
3. Subscription to mailing list

Table of contents 3
PHITS installation
Installers for Windows, Mac, and Linux are available
• Windows: Move to “win” folder and double-click setup-eng.vbs (see
win/instruction-eng.pptx)
• Mac: Move to “mac” folder and Control-click
“PHITS_Installer.command” and select “open” from the shortcut menu
(see mac/README-eng.pdf)
• Linux: Move to “linux” folder and see README-eng.txt

Important notice
• Approximately 10 GB disk space is required.
• Please do not change the path (folder name) to install PHITS from its
default setting (e.g. c:/ for Windows).
• If PHITS has been already installed in the default setting path, please
rename the former folder’s name (e.g. “phits” to “phits-old”) before the
installation.

Installation 4
Confirmation of Installation
When installation is completed, open
/phits/lecture/basic/lec01/
folder and execute PHITS with an input file lec01.inp

How to run PHITS

 Windows: Select an input file -> Right click -> Send to -> Select
PHITS
 Mac: Drag & drop in input file to a blue PHITS icon in the dock
 Linux: type “phits.sh lec01.inp” in your console

Please see instruction files in each folder in more detail

Execution 5
Check PHITS simulation results
When PHITS execution is finished, output files phits.out, track_xz.out,
track_xz.eps, track_xz_err.out, track_xz_err.eps, batch.out are created. Open
track_xz.eps and check whether eps file is shown or not.

track_xz.eps

If you cannot see this figure, please install software for opening EPS file by
referring the instruction files in each folder

6
Installation of Text Editor
Install text editor that can show line number. Our recommended text
editor is Notepad++. for Windows and CotEditor for Mac.

If you select Notepad++, please do not forget to make shortcuts to PHITS

See pages 9-10 in win/instruction-eng.pptx

(Windows only) Associate *.inp and *.out files with the installed text
editor (e.g. Notepad++)

See pages 11 in win/instruction-eng.pptx

7
Run from Terminal (Mac only)
Once you run PHITS by dragging & drop an input file into PHITS
icon, a terminal window is opened. We recommend to run PHITS
via the terminal window from the next time
How to run PHITS via terminal
1. Drag & drop an input file (e.g. lec01.inp) into PHITS icon.
A terminal window is opened and PHITS is executed in the terminal
2. Click the terminal and press cursor key “↑”
Previous command (e.g. phits.sh lec01.inp) is shown in the terminal
3. Press “Enter” for running the same input file.
4. Change the input file name (e.g. phits.sh lec01-test.inp) to run
another input file in the same folder
It’s much easier and faster to run PHITS many times

For Mac users 8


Confirmation of PHIG-3D
PHITS Interactive Geometry Viewer in 3D
In the folder of “/phits/lecture/basic/lec01”
(Windows)
Right-click lec01.inp and select “SEND TO”→ ”PHIG-3D”
(Mac)
Drag lec01.inp & drop into the icon of ”PHIG-3D”

Installation of additional library is occasionally necessary

9
Important Notice!
Electricity supply of laptops
During the course, please be sure that AC electricity is
supplied to your laptop. Otherwise, power saving mode setup
will be applied depending on the OS setup. In that case you
may suffer from CPU power limitation.

Installation folder name


For Windows, we recommend to install PHITS into “c:\”
(default folder) because all sample input files expect the
installation folder name of “c:\phits”. In addition, you cannot
move or rename “phits” folder after the installation finished
for both Windows and Mac.

Power supply for laptop PC 10


Supplement for PHITS course
Beginning of course
1. Distributed materials
2. PHITS installation & execution

End of course
1. /phits/ folder structure
2. PHITS code license
3. Subscription to mailing list

Table of contents 11
PHITS folder structure
In the /phits/ folder, following folders are included
• /bin/ ------ Shell scripts and exe files of PHITS
• /data/ ------ Data files used by PHITS
• /dchain-sp/ ------ Programs related to “DCHAIN-SP”
• /document/ ------ ppt files on recent updates
• /lecture/ ------ Lecture notes
• /manual/ ------ Manuals for PHITS and ANGEL
• /phig3d/ ------ Files related to geometry visualizing software PHIG-3D
• /recommendation/ ------ Sample inputs for various purpose
• /sample/ ------ Sample inputs for benchmark, surface, & tally
• /src/ ------ PHITS source files in FORTRAN
• /utility/ ------ Useful scripts and external programs
• /XS/ ------ Nuclear/Atomic cross section data library

Folder tree 12
Utility folder
• /animation/ ------ Conversion of PHITS results into GIF animation
• /FLUENT/ ------ PHITS-FLUENT coupling analysis
• /icru90/ ------ ICRU90 stopping power
• /magmap/ ------ Magnetic field map
• /ParaView/ ------ 3D-visualization application
• /PSFC4PHITS/ ------ Phase Space File Converter for PHITS
• /RTphits/ ------ Radio Therapy package based on PHITS
• /script/ ------ Script for successively executing PHITS
• /ShieldingDistribution/ ------ Shielding thickness calculation
• /SimpleGEO/ ------ GUI application for making 3D-geometry
• /sumtally/ ------ Function for summing up two (or more) tally results
• /SuperMC/ ------ Conversion of CAD files to PHITS format
• /TetraGEOM/ ------ Tetrahedron geometry
• /usrtally/ ------ Sample program of User defined tally [t-userdefined]

Utility folder 13
PHITS code license
PHITS is exclusively licensed to individual and secondary
distribution is not permitted.

If you change your affiliation, you have to get PHITS license


again by submitting application form via PHITS website

You can install PHITS to your own computer or to your personnel


account in a shared computer. Please be careful to avoid the
leakage of PHITS to unsubscribed people.

License 14
Question and Update Announcement
 You can ask questions via PHITS forum or contact page of PHITS website,
but please refer manual and FAQ before sending questions.
 The information on PHITS update and PHITS course are announced through
the PHITS mailing list. If you do not wish to receive Email from us, please
unsubscribe your address using contact page of PHITS website
 Please also check PHITS Facebook page and promotional video

https://meteor.nucl.kyushu-u.ac.jp/phitsforum/

https://phits.jaea.go.jp/contact/edit/en

15

You might also like