mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Read in total_nu as a derived product for MT=18 if it only exists as summed, and more correctly treated yields
This commit is contained in:
parent
14e3684a6a
commit
20ce145e36
2 changed files with 30 additions and 23 deletions
|
|
@ -511,6 +511,9 @@ class IncidentNeutron(EqualityMixin):
|
|||
rxs = [data[mt] for mt in SUM_RULES[mt_sum] if mt in data]
|
||||
if len(rxs) > 0:
|
||||
data.summed_reactions[mt_sum] = rx = Reaction(mt_sum)
|
||||
if rx.mt == 18 and 'total_nu' in group:
|
||||
tgroup = group['total_nu']
|
||||
rx.derived_products.append(Product.from_hdf5(tgroup))
|
||||
for T in data.temperatures:
|
||||
rx.xs[T] = Sum([rx_i.xs[T] for rx_i in rxs])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue