mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Write surface source files per batch (#3124)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com> Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
b54de4d761
commit
9686851e7a
14 changed files with 167 additions and 48 deletions
|
|
@ -923,6 +923,15 @@ attributes/sub-elements:
|
|||
|
||||
*Default*: None
|
||||
|
||||
:max_source_files:
|
||||
An integer value indicating the number of surface source files to be written
|
||||
containing the maximum number of particles each. The surface source bank
|
||||
will be cleared in simulation memory each time a surface source file is
|
||||
written. By default a ``surface_source.h5`` file will be created when the
|
||||
maximum number of saved particles is reached.
|
||||
|
||||
*Default*: 1
|
||||
|
||||
:mcpl:
|
||||
An optional boolean which indicates if the banked particles should be
|
||||
written to a file in the MCPL_-format instead of the native HDF5-based
|
||||
|
|
|
|||
|
|
@ -336,6 +336,17 @@ or particles going to a cell::
|
|||
.. note:: The ``cell``, ``cellfrom`` and ``cellto`` attributes cannot be
|
||||
used simultaneously.
|
||||
|
||||
To generate more than one surface source files when the maximum number of stored
|
||||
particles is reached, ``max_source_files`` is available. The surface source bank
|
||||
will be cleared in simulation memory each time a surface source file is written.
|
||||
As an example, to write a maximum of three surface source files:::
|
||||
|
||||
settings.surf_source_write = {
|
||||
'surfaces_ids': [1, 2, 3],
|
||||
'max_particles': 10000,
|
||||
'max_source_files': 3
|
||||
}
|
||||
|
||||
.. _compiled_source:
|
||||
|
||||
Compiled Sources
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue