4. General Format Of Input And Output Files

The PHITS input file is made in a text format that can be edited with a text editor. The input file consists of several sections beginning with [*], and the required information is read in sections according to the purpose and option. The sections can be in any order. Note that up to four spaces at the beginning of [*] are ignored, but any more than that will not be recognized as the beginning of a section. The input format depends on each section, but it basically takes the two formats shown below. One is a method where keywords unique to each section are set as numeric values or strings:

keyword(parameter) = value or character

In this case, spaces are ignored. The other is to set multiple numbers with a space as a delimiter:

parameter1    parameter2    parameter3  ...

The output file is basically in text format, usually .out. By setting an option, an image file in .eps format can also be output.

The units of each physical quantity in PHITS are basically as follows: length in cm, time in ns, and energy in MeV, or MeV/n for quantities per nucleon. The coordinate system is right-handed.

4.1. Sections

Table 4.1.1 and Table 4.1.2 show the sections used in PHITS.

Table 4.1.1 Sections (1)

name

description

[title]

Title

[parameters]

Various types of parameters

[source]

Source definition

[material]

Material definition

[surface]

Surface definition

[cell]

Cell definition

[transform]

Definition of the coordinate transform

[temperature]

Cell temperature definition

[mat time change]

Definition of time-dependent materials

[magnetic field]

Magnetic field definition

[electro magnetic field]

Electro-magnetic field definition

[delta ray]

Definition of \(\delta\)-ray production

[track structure]

Definition for using the track-structure simulation mode

[super mirror]

Definition of super mirror for low-energy neutrons

[elastic option]

Definition of elastic scattering options for low-energy neutrons

[data max]

Definition of maximum energies, dmax, of each nucleus for using data libraries

[frag data]

Definition of user-defined cross sections

[importance]

Definition of region importances

[weight window]

Definition of region weight windows

[ww bias]

Definition of values to bias in [weight window]

[forced collisions]

Forced collision definition

[repeated collisions]

Repeated collision definition

[volume]

Region volume definition

[multiplier]

Multiplier definition

[mat name color]

Material name and color definition for graphical plot

[reg name]

Region name definition for graphical plot

[counter]

Counter definition

[timer]

Timer and clock definition

[user defined interaction]

Control of user-defined interactions

[user defined particle]

Control of user-defined particles

[libout]

Control for icntl=1 and inucr=100 mode

Table 4.1.2 Sections (2)

name

description

[t-track]

Particle fluence in a given region

[t-cross]

Particle fluence or current across a given surface

[t-point]

Particle fluence at a given point

[t-deposit]

Deposit energy in a given region

[t-deposit2]

Deposit energies in two given regions

[t-heat]

Heat generation in a given region. Not recommended. [1]

[t-yield]

Residual nuclei yields in a given region

[t-product]

Reaction products in a given region

[t-dpa]

Displacement Per Atom, DPA, in a given region

[t-let]

LET distribution in a given region

[t-sed]

Microdosimetric quantity distribution in a given region

[t-time]

Time information of particles in a given region

[t-interact] (former name [t-star])

Number of interactions that occurred in a given region

[t-dchain]

Residual nuclide yields for the use of DCHAIN

[t-wwg]

Output parameters for [weight window]

[t-wwbg]

Output parameters for [ww bias]

[t-volume]

Automatic calculation of the volume for a given region

[t-userdefined]

Any quantities defined by users

[t-gshow]

2D geometry visualization

[t-rshow]

2D geometry visualization with physical quantities

[t-3dshow]

3D geometry visualization

[T-4Dtrack]

Particle track files for displaying particle tracks in PHIG-3D

[end]

End of input file

Note that PHITS does not read any input information written below the [end] section.

4.2. Reading Control

Uppercase, lowercase, blank

Discrimination between lowercase and uppercase characters is not performed in PHITS input except in file names. Blanks at the beginning and the end of a line are ignored except for the declaration of [Section Name] as described above.

Tab

A tab is replaced by eight blanks.

Line connecting

The maximum number of characters that can be written in a line is 200. If \ is added at the end of a line, the next line is considered to be a continued line. Multiple lines can be used to write input data using this method, but \ is not necessary in the [surface] and [cell] sections, in which lines are automatically connected without the use of an additional symbol. Note that more than four blanks are required at the beginning of a continued line.

Line dividing

Several short lines can be displayed in one line and divided by ; as follows:

idbg = 0;  ibod = 1;  naz = 0

However, this function is not available when the format is defined in the mesh description.

Comment marks

In a PHITS input file, the following characters can be used as comment marks, and characters written after them are ignored.

  • $ is regarded as a comment mark anywhere in a PHITS input file.

  • # and ! are regarded as comment marks except when they are used in [surface] and [cell].

  • The character c followed by a half-width space is regarded as a comment mark only when it is used within the first five columns of each line.

Note that c followed by a half-width space cannot be used as a comment mark in the [material] section by the default setting. To use it as a comment mark in the [material] section, set icommat=1 in the [parameters] section. Note also that % could be used as a comment mark before version 3.30, but because % is now used for defining character variables, it can no longer be used as a comment mark. If you need to use % as a comment mark, write $RWT=0 before the first section begins.

Blank lines

Blank lines and lines beginning with a comment mark are skipped.

Section reading skip

Adding off after a section name, for example [Section Name] off, disables all definitions in that section. Note that infl: or set: written in the skipped section is also skipped.

Skipping lines within a section

To skip from any place in a section, put qp: at the line head. Lines from qp: to the end of the section are skipped.

Skip all

q: can be used as a terminator of an input file; this works in the same way as [end].

4.3. Inserting Files

Files can be inserted using the following format:

infl: {file.name}[n1-n2]

The name of the file to be inserted should be enclosed in curly brackets, {}, and the number of lines from n1 to n2 of the file should be enclosed in square brackets, []. If [] is omitted, PHITS includes all lines of the specified file.

The following styles can also be used to specify line numbers: [n1-] or [-n2]. These expressions specify the range from the n1-th line to the end, and from the initial line to the n2-th line, respectively. Inserted files can be nested more than once, up to eight times. After reading the end of the included file, the reading process returns to its parent file.

Care should be taken when using the command-line interpreter, Command Prompt, to execute PHITS. If infl: is used, the following text should be written in the first line of the input file:

file = phits.inp

Here, phits.inp is the input file name.

4.4. User-Defined Variables

In the input file, where numbers should be entered, user-defined variables from c1 to c999 can be written instead of numbers. User-defined variables can be set as follows:

set: c1[52.3] c2[2*pi] c3[c1*1.e-8]

The set: definition can be written anywhere. Note that there should be no space between ci and [ in the format ci[]. User-defined variables can be used as numerical values in the input file, and the variables can be re-defined at any time, with the values retained until they are re-defined. In the third case of the above example, c3, another variable, c1, is called in the definition. In this case, the value held by c1 at that time is used. Therefore, even if c1 is re-defined after the definition of c3, the value of c3 is not changed. By default, pi is set to the value of \(\pi\).

The numbers of ci can be output in file(6), with D set to phits.out, by setting ncvalout in [parameters]. The number is output as many times as specified by ncvalout. If you want to check the actual numbers used as user-defined constants, set this parameter.

The set: definition is ignored in the sumtally subsection.

User-defined variables can also be used in user-defined programs such as usrsors.f, usrtally.f, and usrdfn1.f by setting the following:

parameter ( mfc = 100 )
common /rval1/ cval(mfc), aval(mfc)

For example, cval(1) corresponds to c1 defined in the PHITS input file. If a certain user-defined variable is specified multiple times in the input file, the lastly defined value is effective in the user-defined programs.

4.5. User-Defined Characters

From version 3.31 onward, it is possible to use character variables. You can define a character variable as follows:

set: %part_name%[neutron proton alpha]

Parameter names must be defined with % around them. Only character-variable names are case-sensitive in the PHITS input file. As with user-defined variables, they are effective from the next line after they are defined, and the same character variable can be re-set as many times as necessary. However, only one character variable can be defined in one line, unlike user-defined variables. Variables and their values, strings, that can be defined are limited to 100 characters.

To use this feature, PHITS from version 3.31 onward outputs the input information after replacing character variables to a separate file, hereafter called the rewrite file, and then reads that file. The rewrite file is named by adding _rwt before the extension of the original input file name. For example, if the original input file name is phits.inp, the rewrite file name is phits_rwt.inp. [2] The rewrite file also contains the input information read from files included using the infl command.

Whether the rewrite file is created and deleted can be controlled by the special parameter $RWT. $RWT must be defined before the first section begins, and its meaning is as follows:

  • $RWT=0: No rewrite file is created. In this case, character variables cannot be used.

  • $RWT=1: Rewrite file is temporarily created and deleted at the end of the calculation. This is the default.

  • $RWT=2: Rewrite file is created and kept after the PHITS simulation finishes.

  • $RWT=3: Rewrite file is created and PHITS execution stops immediately afterward. This option is available only for icntl=0.

4.6. Using Mathematical Expressions

Mathematical expressions can be used in an input file following Fortran style guidelines. Available intrinsic functions are shown in Section 4.6.

Table 4.6.1 Intrinsic functions

FLOAT, INT, ABS, EXP, LOG, LOG10, MAX, MIN

Numeric conversion, absolute value, exponent, logarithms, maximum, and minimum

MOD, NINT, SIGN, SQRT, ACOS, ASIN, ATAN, ATAN2

Remainder, nearest integer, sign, square root, and inverse trigonometric functions

COS, COSH, SIN, SINH, TAN, TANH

Trigonometric and hyperbolic functions

As an example:

parameter = c1 * 3.5 * sin(55 * pi / 180)

In the above example, because a single numerical value is expected after parameter=, blanks can be used in the expression. However, in some sections multiple numerical values cannot be accommodated. In such cases, an expression can be enclosed in braces, for example { c1 * 2 / pi }.

4.7. Particle specification

The particle species that can be handled by PHITS are listed in Table 4.7.1 and Table 4.7.2 . These particle species can be specified by their respective symbols or kf-codes. Particle species that are not assigned a symbol in Table 4.7.2 (itype=11) are specified only by their kf-codes. Table 4.7.3 lists the particles’ decay-channels and their life-times. Note that these specifications are different from the material definition in [material] .

Nuclei are specified in formats such as 208Pb, Pb208, or Pb-208. If the mass number is omitted and only the symbol is given (e.g., Pb), it represents all isotopes (however, this cannot be used in the [source] section). To specify a nucleus using the kf code, specify the value calculated by Z * 1000000 + A (e.g., 82000208). If you want to explicitly specify an isomer (meta- stable), append m (first isomer), n (second isomer), or g (ground state) to the mass number (e.g., Na-24m, In-116m, In-116n, In-116g). A nucleus with ityp = 19 represents all nuclei except those with ityp = 1, 15, 16, 17, and 18, i.e., proton, deuteron, triton, 3He, and alpha.

Table 4.7.1 List of transport particles (1)

ityp

symbol

kf-code

particle name

1

proton

2212

proton

2

neutron

2112

neutron

3

pion+

211

\(\pi^+\)

4

pion0

111

\(\pi^0\)

5

pion-

-211

\(\pi^-\)

6

muon+

-13

\(\mu^+\)

7

muon-

13

\(\mu^-\)

8

kaon+

321

\(K^+\)

9

kaon0

311

\(K^0\)

10

kaon-

-321

\(K^-\)

11

other

below

other particle

12

electron

11

\(e^-\)

13

positron

-11

\(e^+\)

14

photon [3]

22

\(\gamma\)

15

deuteron

1000002

deuteron

16

triton

1000003

triton

17

3he

2000003

\({}^3\mathrm{He}\)

18

alpha

2000004

\(\alpha\)

19

nucleus

\(Z*1000000+A\)

nucleus

Table 4.7.2 List of transport particles (2)

ityp

symbol

kf-code

particle name

11

nu_e, nu_ebar

12, -12

\(\nu_e\), \(\overline{\nu_e}\)

11

nu_mu, nu_mubar

14, -14

\(\nu_{\mu}\), \(\overline{\nu_{\mu}}\)

11

pbar-

-2212

antiproton

11

nbar0

-2112

antineutron

11

Kbar0

-311

\(\overline{K^0}\)

11

K_L0

130

\(K_L^0\)

11

K_S0

310

\(K_S^0\)

11

eta

221

\(\eta\)

11

eta’

331

\(\eta'\)

11

Lambda0, Lambdabar0

3122, -3122

\(\Lambda^0\), \(\overline{\Lambda^0}\)

11

Sigma+, Sigmabar-

3222, -3222

\(\Sigma^+\), \(\overline{\Sigma^+}\)

11

Sigma0, Sigmabar0

3212, -3212

\(\Sigma^0\), \(\overline{\Sigma^0}\)

11

Sigma-, Sigmabar+

3112, -3112

\(\Sigma^-\), \(\overline{\Sigma^-}\)

11

Xi0, Xibar0

3322, -3322

\(\Xi^0\), \(\overline{\Xi^0}\)

11

Xi-, Xibar+

3312, -3312

\(\Xi^-\), \(\overline{\Xi^-}\)

11

Omega-, Omegabar+

3334, -3334

\(\Omega^-\), \(\overline{\Omega^-}\)

11

nu_tau, nu_taubar

16, -16

\(\nu_{\tau}\), \(\overline{\nu_{\tau}}\)

11

tau-, tau+

15, -15

\(\tau^-\), \(\tau^+\)

11

rho0

113

\(\rho^0\)

11

rho+, rho-

213, -213

\(\rho^+\), \(\rho^-\)

11

omega

223

\(\omega\)

11

a_1(1260)+, a_1(1260)-

20213, -20213

\(a_1^+\), \(a_1^-\)

11

K*0, K*bar0

313, -313

\(K^{*0}\), \(\overline{K^{*0}}\)

11

K*+, K*-

323, -323

\(K^{*+}\), \(K^{*-}\)

11

phi

333

\(\phi\)

11

D+, D-

411, -411

\(D^+\), \(D^-\)

11

D0, Dbar0

421, -421

\(D^0\), \(\overline{D^0}\)

11

D_s+, D_s-

431, -431

\(D_s^+\), \(D_s^-\)

11

B0, Bbar0

511, -511

\(B^0\), \(\overline{B^0}\)

11

B+, B-

521, -521

\(B^+\), \(B^-\)

11

B_s0, B_sbar0

531, -531

\(B_s^0\), \(\overline{B_s^0}\)

11

B_c+, B_c-

541, -541

\(B_c^+\), \(B_c^-\)

The particle decay channels and life times are listed in Table 4.7.3. The branching ratio and decay mode can be changed by modifying and recompiling the source code src/dklos.f. For other particles, refer to data/decay/decay_data_1.dat.

Table 4.7.3 Decay channels and life times

particle

decay channel

branching ratio

life time [s]

\(n\)

\(p + e^- + \overline{\nu}_e\)

100%

\(8.867\times10^2\)

\(\pi^0\)

\(\gamma + \gamma\)

100%

0

\(\pi^+\)

\(\mu^+ + \nu_{\mu}\)

100%

\(2.6029\times10^{-8}\)

\(\pi^-\)

\(\mu^- + \overline{\nu}_{\mu}\)

100%

\(2.6029\times10^{-8}\)

\(\mu^+\)

\(e^+ + \nu_e + \overline{\nu}_{\mu}\)

100%

\(2.19703\times10^{-6}\)

\(\mu^-\)

\(e^- + \overline{\nu}_e + \nu_{\mu}\)

100%

\(2.19703\times10^{-6}\)

\(K_L^0\)

\(\pi^+ + e^- + \overline{\nu}_e\); \(\pi^- + e^+ + \nu_e\); \(\pi^+ + \mu^- + \overline{\nu}_{\mu}\); \(\pi^- + \mu^+ + \nu_{\mu}\); \(\pi^0 + \pi^0 + \pi^0\); \(\pi^+ + \pi^- + \pi^0\)

20.34%; 20.34%; 13.57%; 13.57%; 19.59%; 12.59%

\(5.116\times10^{-8}\)

\(K_S^0\)

\(\pi^0 + \pi^0\); \(\pi^+ + \pi^-\)

30.72%; 69.28%

\(8.954\times10^{-11}\)

\(K^+\)

\(\mu^+ + \nu_{\mu}\); \(\pi^0 + e^+ + \nu_e\); \(\pi^0 + \mu^+ + \nu_{\mu}\); \(\pi^+ + \pi^0\); \(\pi^+ + \pi^0 + \pi^0\); \(\pi^+ + \pi^+ + \pi^-\)

63.56%; 5.07%; 3.352%; 20.67%; 1.760%; 5.583%

\(1.2371\times10^{-8}\)

\(K^-\)

\(\mu^- + \overline{\nu}_{\mu}\); \(\pi^0 + e^- + \overline{\nu}_e\); \(\pi^0 + \mu^- + \overline{\nu}_{\mu}\); \(\pi^- + \pi^0\); \(\pi^- + \pi^0 + \pi^0\); \(\pi^- + \pi^- + \pi^+\)

63.56%; 5.07%; 3.352%; 20.67%; 1.760%; 5.583%

\(1.2371\times10^{-8}\)

\(\eta\)

\(\gamma + \gamma\); \(\pi^0 + \pi^0 + \pi^0\); \(\pi^+ + \pi^- + \pi^0\); \(\pi^+ + \pi^- + \gamma\)

38.9%; 31.9%; 23.7%; other

0

\(\eta'\)

\(\pi^+ + \pi^- + \eta\); \(\pi^0 + \pi^0 + \eta\); \(\pi^+ + \pi^- + \gamma\); \(\gamma + \gamma\)

44.1%; 20.5%; 30.1%; other

0

\(\Lambda\)

\(p + \pi^-\); \(n + \pi^0\)

64.1%; other

\(2.631\times10^{-10}\)

\(\Sigma^+\)

\(p + \pi^0\); \(n + \pi^+\)

51.57%; other

\(7.99\times10^{-11}\)

\(\Sigma^0\)

\(\Lambda + \gamma\)

100%

0

\(\Sigma^-\)

\(n + \pi^-\)

100%

\(1.479\times10^{-10}\)

\(\Xi^0\)

\(\Lambda + \pi^0\)

100%

\(2.90\times10^{-10}\)

\(\Xi^-\)

\(\Lambda + \pi^-\)

100%

\(1.639\times10^{-10}\)

\(\Omega^-\)

\(\Lambda + K^-\); \(\Xi^0 + \pi^-\); \(\Xi^- + \pi^0\)

67.8%; 23.6%; other

\(8.22\times10^{-11}\)

4.8. Summary Output File (phits.out)

Summary information from a PHITS calculation, such as computational time and the number of produced particles, is written to the file specified by file(6), whose default is phits.out. The output information is divided into six categories, and they can be selected by the infout parameter in the [parameters] section.

The categories are as follows:

  • I: Basic information, excluding the items listed separately below

  • II: Input echo

  • III: Information on memory usage and batches

  • IV: Information on transport particles

  • V: Detailed information, including variance reduction, region-wise particle scattering, and material-wise information

  • VI: Information on PHITS developers

The order of the output information is roughly as follows.

Logo, version, developers (Category IV), title, and starting time (Category I except for developers)

The version information is written near the beginning of the file. This version number should be quoted when sending questions to the PHITS forum or PHITS office.

Input echo (Category II)

Input echo, which repeats all parameters defined in the input file, is written between >>> Input Echo >>> and [END] of Input Echo <<<. The meaning of each parameter is also output after the comment mark #. When parameters are specified using equations or user-defined variables, the actual values used in the PHITS simulation are output in the input echo. In RI source mode and cosmic-ray source mode, the actual source spectra are also provided here.

Memory usage (Category III)

Amounts of memory used for geometry, data libraries, tally, bank memory, and others are written together with their total amount. These values refer only to data stored in static memory. Therefore, the values for data libraries and tally are often close to zero in recent PHITS versions because they are stored in dynamic memory.

Information on each source particle

When nwsors>0, detailed information on each source is output up to the first nwsors particles. This includes type, region, material, energy, position, direction, and particle weight.

Information on batch (Category III)

The total history number, ncas, the initial random seed, bitseed, and CPU time for each batch are output.

Information on calculation processes (number of analyz call vs ncol, Category I)

PHITS has a subroutine named analyz, which is called whenever a process occurs, such as a nuclear reaction, boundary crossing, source generation, or the start or end of a batch. Each process is tagged with the ncol parameter; see Section 5.2.26 for details. The number of occurrences of each process is output here.

Information on variance reduction (Category V)

Detailed information on variance reduction using [importance], [weight window], and [forced collisions] is output, including particle splitting and Russian roulette counts in each cell.

Information on region-wise particle scattering (Category V)

Detailed region-wise particle scattering information is output, such as the numbers of high- and low-energy nuclear reactions and the gain and loss of particle fluence in each cell.

Information on medium-wise particle scattering (Category V)

Similar information is also output on a medium-wise basis.

Information on transport particles (Category IV)

Lists of transport particles and their produced, decayed, stopped, and leaked numbers are output.

Information on source (Category I)

Summary information on generated sources, such as total history and batch numbers and their average and total weights, is output.

Information on stopping power database (Category I)

When ndedx is set to 1 or 3, ATIMA is used for calculating the stopping power of charged particles; see Table 5.2.63. In that case, PHITS stores the stopping powers in memory with a maximum table size specified by mdbatima. If the actual size, dedx, reaches mdbatima, it is better to increase mdbatima in [parameters].

Information on geometry error (Category I)

Geometry errors detected during the PHITS simulation are output. Lost particle indicates that a particle has entered an undefined region. When the number of lost particles exceeds nlost, the calculation is terminated. Geometry recovering indicates that PHITS once failed to identify the current cell but recovered by slightly changing the particle coordinate. Unrecovered error indicates that PHITS failed to recover the problem and gave up tracing that particle any further.

Information on random seed (Category I)

The initial random seed used in the current calculation and the next random seed to be used in a restart calculation are output.

Information on CPU time and number of events (Category I)

CPU time and the number of each process that occurred in the PHITS simulation are output. When icput=0, which is the default, output information does not include computational time except for the total CPU time. When infout=8, the numbers of nuclear reaction models called, the numbers that succeeded, and their ratios in percent are additionally output.

total cpu time

Total computational time.

transport

Computational time for transporting particles. This item is output only when icput>0.

set data

Computational time for reading the input file. This item is output only when icput>0.

analysis

Number of all processes that occurred and their computational time.

nevap

Number of evaporation models used and their computational time.

dexgam

Number of nuclear de-excitation models used and their computational time.

other

Computational time for others.

nreac

Number of nuclear reaction models used and their computational time.

dklos

Number of particle decay models used and their computational time.

hydro

Number of nucleon-nucleon scattering models used and their computational time.

n-data

Number of neutron nuclear data libraries used and their computational time.

h-data

Number of proton, deuteron, and alpha nuclear data libraries used and their computational time.

p-data

Number of photon atomic data libraries used and their computational time. This item is output only for negs=-1.

e-data

Number of electron and positron atomic data libraries used and their computational time. This item is output only for negs=-1.

p-egs5

Number of EGS5 photon interaction models used and their computational time.

e-egs5

Number of EGS5 electron and positron interaction models used and their computational time.

e-tsmode

Track-structure mode usage and computational time.

ion-tsmode

Track-structure mode usage and computational time.

photonucl

Number of photonuclear reaction models used and their computational time.

photonucl lib

Number of photonuclear data libraries used and their computational time.

mu-reac

Number of muon nuclear reaction models used and their computational time.

mu-brem

Number of muon bremsstrahlung models used and their computational time.

mu-pprd

Number of muon pair-production models used and their computational time.

mu-cap

Number of muon capture models used and their computational time.

elast

Elastic scattering model usage.

ncasc

Number of cascade and pre-equilibrium models used and their computational time.

bertini

Number of the Bertini model used and their computational time.

isobar

Number of the isobar model used and their computational time.

JAM

Number of the JAM model used and their computational time.

QMD

Number of the JQMD and JQMD-2.0 models used and their computational time.

JAMQMD

Number of the JAMQMD model used and their computational time.

INCL

Number of the INCL model used and their computational time.

INCELF

Number of the INC-ELF model used and their computational time.

frag data

Number of frag data used and their computational time.

SCINFUL

Number of the SCINFUL model used and their computational time.

Citation lists (Category I)

References that should be cited in publications using PHITS results are provided at the end of the summary output file.

4.9. Tally Output File

Tally results are written to the file specified by the file parameter in each tally. In the case of two-dimensional axis values, such as xy, yz, xz, rz, and chart, the statistical errors of the tally results are separately output in a file whose name has _err before the extension of the original tally output file.

When epsout, vtkout, or bmpout is specified in the tally, image files are also generated by changing the extension of the tally output file to .eps, .vtk, or .bmt, respectively. For example, when file is set to track.out, axis is set to xy, and epsout=1, four files are created:

  • track.out: numerical data of the tally results

  • track_err.out: numerical data of the statistical errors

  • track.eps: image data of the tally results

  • track_err.eps: image data of the statistical errors

The recommended extension for a tally output file is .out, but other extensions, or even no extension, can also be used.

At the beginning of a tally output file, input echo, which repeats all parameters defined in the tally section, is written. Then, the tally results are written in a format that can be read by ANGEL. When parameters other than those specified by axis are changed in a tally, multiple pages of graphs are generated and separated by the ANGEL command newpage:.

The following are representative explanations of tally output files for one-dimensional and two-dimensional axes, using track_eng.out and track.out as examples. For two-dimensional axes, the xy plane is viewed from the positive side of the \(z\) axis, the xz plane from the positive side of the \(y\) axis, and the yz plane from the positive side of the \(x\) axis.

track_eng.out

This is an example of a one-dimensional axis plot.

  • Lines 1 to 51 contain input echo.

  • A line with #newpage: indicates the start of graph data for a page.

  • Page number and fixed parameters are output after the comment mark #.

  • Axis labels such as x: Energy [MeV/n] and y: Flux [1/cm^2/(MeV/n)/source] are written explicitly.

  • ANGEL parameters, such as xlog, ylog, and style settings, are written in the line beginning with p:. See the ANGEL parameter section for details of ANGEL parameters.

  • A line beginning with h: specifies how to plot each following data column.

  • A line beginning with # immediately before the data lists the meaning of each output column.

  • The numerical tally results follow.

  • A line such as # sum over gives the total or mean values of the tally results.

  • Page titles and ANGEL title settings are written after the numerical data.

  • Information for restart calculations, such as the next random seed and total history number, is written at the end of the file.

track.out

This is an example of a two-dimensional axis plot.

  • Lines at the beginning contain input echo.

  • #newpage: indicates the start of graph data for a page.

  • Page number and fixed parameters are output after the comment mark #.

  • The page title is written explicitly.

  • ANGEL parameters for graph settings are written next.

  • Lines beginning with # specify the order of the tally data, for example ascending order in \(x\) and descending order in \(y\).

  • A line beginning with hc: provides the coordinate ranges and intervals of the plotting data.

  • The numerical tally results follow in the specified order, with line breaks inserted every 10 values.

  • If spreadsheet-friendly output is required, 2d-type=5 should be selected in the tally setting; see the explanation of 2d-type in the tally section.

  • A line with # gshow indicates the start of geometry-drawing data.

  • After the geometry data, additional ANGEL parameter lines are written.

  • newpage: indicates the start of the next page. In a two-dimensional plot, one graph is created for one part dataset.

  • Information for restart calculations is written at the end of each tally output file.