2016-04-25 19:03:31 -04:00
|
|
|
.. _io_source:
|
2015-09-13 11:36:55 +07:00
|
|
|
|
|
|
|
|
==================
|
|
|
|
|
Source File Format
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
Normally, source data is stored in a state point file. However, it is possible
|
|
|
|
|
to request that the source be written separately, in which case the format used
|
|
|
|
|
is that documented here.
|
|
|
|
|
|
2021-01-08 15:21:37 -06:00
|
|
|
When surface source writing is triggered, a source file named
|
|
|
|
|
``surface_source.h5`` is written with only the sources on specified surfaces,
|
|
|
|
|
following the same format.
|
|
|
|
|
|
2018-04-25 15:18:12 -05:00
|
|
|
**/**
|
2015-09-13 11:36:55 +07:00
|
|
|
|
2018-04-25 15:18:12 -05:00
|
|
|
:Attributes: - **filetype** (*char[]*) -- String indicating the type of file.
|
2026-02-03 01:23:24 -06:00
|
|
|
- **version** (*int[2]*) -- Major and minor version of the source
|
|
|
|
|
file format.
|
2015-09-13 11:36:55 +07:00
|
|
|
|
2018-04-25 15:18:12 -05:00
|
|
|
:Datasets:
|
2019-07-11 06:31:12 -05:00
|
|
|
|
2018-04-25 15:18:12 -05:00
|
|
|
- **source_bank** (Compound type) -- Source bank information for each
|
2020-10-14 15:10:03 -05:00
|
|
|
particle. The compound type has fields ``r``, ``u``, ``E``,
|
2021-09-13 16:01:48 -05:00
|
|
|
``time``, ``wgt``, ``delayed_group``, ``surf_id`` and ``particle``,
|
|
|
|
|
which represent the position, direction, energy, time, weight,
|
2026-02-03 01:23:24 -06:00
|
|
|
delayed group, surface ID, and particle type (PDG number),
|
|
|
|
|
respectively.
|