mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 14:35:27 -04:00
Co-authored-by: GuySten <62616591+GuySten@users.noreply.github.com> Co-authored-by: Amanda Lund <alund1187@gmail.com>
36 lines
1.7 KiB
ReStructuredText
36 lines
1.7 KiB
ReStructuredText
.. _io_track:
|
|
|
|
=================
|
|
Track File Format
|
|
=================
|
|
|
|
The current revision of the particle track file format is 3.1.
|
|
|
|
**/**
|
|
|
|
:Attributes: - **filetype** (*char[]*) -- String indicating the type of file.
|
|
- **version** (*int[2]*) -- Major and minor version of the track
|
|
file format.
|
|
|
|
:Datasets:
|
|
- **track_<b>_<g>_<p>** (Compound type) -- Particle track information
|
|
for source particle in batch *b*, generation *g*, and particle
|
|
number *p*. particle. The compound type has fields ``r``, ``u``,
|
|
``E``, ``time``, ``wgt``, ``cell_id``, ``cell_instance``, and
|
|
``material_id``, which represent the position (each coordinate in
|
|
[cm]), direction, energy in [eV], time in [s], weight, cell ID,
|
|
cell instance, and material ID, respectively. When the particle is
|
|
present in a cell with no material assigned, the material ID is
|
|
given as -1. Note that this array contains information for one or
|
|
more primary/secondary particles originating. The starting index
|
|
for each primary/secondary particle is given by the ``offsets``
|
|
attribute.
|
|
|
|
:Attributes: - **n_particles** (*int*) -- Number of
|
|
primary/secondary particles for the source history.
|
|
- **offsets** (*int[]*) Offset (starting index) into
|
|
the array for each primary/secondary particle. The
|
|
last offset should match the total size of the
|
|
array.
|
|
- **particles** (*int32_t[]*) -- Particle type for
|
|
each primary/secondary particle (PDG number).
|