Add source file format in documentation.

This commit is contained in:
Paul Romano 2015-09-13 11:36:55 +07:00
commit f13c4c7218
2 changed files with 22 additions and 0 deletions

View file

@ -17,6 +17,7 @@ as debugging.
workflow
xml-parsing
statepoint
source
particle_restart
track
voxel

View file

@ -0,0 +1,21 @@
.. _devguide_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.
**/filetype** (*int*)
Flags what type of file this is. A value of -1 indicates a statepoint file,
a value of -2 indicates a particle restart file, a value of -3 indicates a
source file, and a value of -4 indicates a track file.
**/source_bank** (Compound type)
Source bank information for each particle. The compound type has fields
``wgt``, ``xyz``, ``uvw``, and ``E`` which represent the weight, position,
direction, and energy of the source particle, respectively.