mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -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
|
|
@ -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