A PHITS wrapper for targetry design
phitar - A PHITS wrapper for targetry design
perl phitar.pl [run_mode] [--rpt_subdir=dname] [--rpt_fmts=ext ...]
[--rpt_flag=str] [--nopause]
phitar is a PHITS wrapper written in Perl, intended for the design of
bremsstrahlung converters and Mo targets. phitar can:
- examine ranges of source and geomeric parameters
according to user specifications
- generate ANSYS MAPDL table and macro files
- collect information from PHITS tally outputs and generate
report files
- collect information from PHITS general outputs and generate
report files
- modify ANGEL inputs and outputs
- calculate yields and specific yields of Mo-99 and Au-196
- convert ANGEL-generated .eps files to various image formats
- generate animations using the converted rasters
run_mode
file
Input file specifying simulation conditions.
Refer to 'args.phi' for the syntax.
-d
Run simulations with the default settings.
--dump_src=<particle>
electron
photon
neutron
Run simulations using a dump source.
(as of v1.03, particles entering a Mo target are used
as the dump source)
--rpt_subdir=dname (short: --subdir, default: reports)
Name of subdirectory to which report files will be stored.
--rpt_fmts=ext ... (short: --fmts, default: dat,xlsx)
Output file formats. Multiple formats are separated by the comma (,).
all
All of the following ext's.
dat
Plain text
tex
LaTeX tabular environment
csv
comma-separated value
xlsx
Microsoft Excel 2007
json
JavaScript Object Notation
yaml
YAML
--rpt_flag=str (short: -flag)
The input str followed by an underscore is appended to
the names of the following files:
- maximum total fluences
- cputimes
Use this option when different materials are simulated
in the same batch to prevent unintended overwriting.
--nopause
The shell will not be paused at the end of the program.
Use it for a batch run.
perl phitar.pl args.phi
perl phitar.pl -d
perl phitar.pl --dump=electron --rpt_flag=elec_dmp args.phi
perl phitar.pl args.phi > phitar.log -nopause
perl phitar.pl --rpt_flag=au args.phi
perl phitar.pl --rpt_flag=moo3 args_moo3.phi
Perl 5
Moose, namespace::autoclean
Text::CSV, Excel::Writer::XLSX, JSON, YAML
PHITS, Ghostscript, Inkscape, ImageMagick, FFmpeg, gnuplot
(optional) ANSYS MAPDL
phitar in a paper: Nucl. Instrum. Methods Phys. Res. A 987 (2021) 164815
Jaewoong Jang jangj@korea.ac.kr
Copyright (c) 2018-2020 Jaewoong Jang
This software is available under the MIT license; the license information is found in ‘LICENSE’.