Skip to content

Commit 78d7a60

Browse files
committed
Documentation
1 parent eb16af8 commit 78d7a60

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

docs/source/usersguide/kinetics.rst

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ are needed to compute kinetics parameters in OpenMC:
6767
Obtaining kinetics parameters
6868
-----------------------------
6969

70+
The ``Model`` class can be used to automatically generate all IFP tallies using the Python API
71+
with ``settings.ifp_n_generation`` greater than 0::
72+
73+
model = openmc.model.Model(settings = settings)
74+
model.export_to_xml()
75+
76+
Additionally, each of the tallies can be manually defined individually with group-wise or total
77+
:math:`\beta_{\text{eff}}` specified by providing a 6-group ``openmc.DelayedGroupFilter``::
78+
79+
beta_tally = openmc.Tally(name="group-beta-score")
80+
beta_tally.scores = ["ifp-beta-numerator"]
81+
82+
#Add DelayedGroupFilter to enable group-wise tallies
83+
beta_tally.filters = [openmc.DelayedGroupFilter(list(range(1, 7)))]
84+
7085
Here is an example showing how to declare the three available IFP scores in a
7186
single tally::
7287

@@ -95,6 +110,18 @@ for ``ifp-denominator``:
95110
96111
\beta_{\text{eff}} = \frac{S_{\text{ifp-beta-numerator}}}{S_{\text{ifp-denominator}}}
97112
113+
The parameters can be directly retrieved from a statepoint file direction using the ``ifp_results``
114+
method::
115+
116+
with openmc.StatePoint(output_path) as sp:
117+
results = sp.ifp_results()
118+
119+
#Retrieve generation lifetime
120+
generation_lifetime = results['Generation Time']
121+
122+
#Retrieve 6-group delayed neutron fraction array
123+
beta_eff = results['Beta Effective']
124+
98125
.. only:: html
99126

100127
.. rubric:: References
@@ -107,4 +134,4 @@ for ``ifp-denominator``:
107134
of the Iterated Fission Probability Method in OpenMC to Compute Adjoint-Weighted
108135
Kinetics Parameters", International Conference on Mathematics and Computational
109136
Methods Applied to Nuclear Science and Engineering (M&C 2025), Denver, April 27-30,
110-
2025 (to be presented).
137+
2025.

0 commit comments

Comments
 (0)