mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 22:45:33 -04:00
Co-authored-by: GuySten <62616591+GuySten@users.noreply.github.com> Co-authored-by: Amanda Lund <alund1187@gmail.com>
28 lines
1 KiB
ReStructuredText
28 lines
1 KiB
ReStructuredText
.. _io_source:
|
|
|
|
==================
|
|
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.
|
|
|
|
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.
|
|
|
|
**/**
|
|
|
|
:Attributes: - **filetype** (*char[]*) -- String indicating the type of file.
|
|
- **version** (*int[2]*) -- Major and minor version of the source
|
|
file format.
|
|
|
|
:Datasets:
|
|
|
|
- **source_bank** (Compound type) -- Source bank information for each
|
|
particle. The compound type has fields ``r``, ``u``, ``E``,
|
|
``time``, ``wgt``, ``delayed_group``, ``surf_id`` and ``particle``,
|
|
which represent the position, direction, energy, time, weight,
|
|
delayed group, surface ID, and particle type (PDG number),
|
|
respectively.
|