mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Add source file format in documentation.
This commit is contained in:
parent
1d774235aa
commit
f13c4c7218
2 changed files with 22 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ as debugging.
|
|||
workflow
|
||||
xml-parsing
|
||||
statepoint
|
||||
source
|
||||
particle_restart
|
||||
track
|
||||
voxel
|
||||
|
|
|
|||
21
docs/source/devguide/source.rst
Normal file
21
docs/source/devguide/source.rst
Normal 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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue