mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Don't put free neutron in depletion chain
This commit is contained in:
parent
7ee08d5280
commit
b9ff205090
1 changed files with 7 additions and 0 deletions
|
|
@ -59,6 +59,10 @@ def replace_missing(product, decay_data):
|
|||
Z, A, state = openmc.data.zam(product)
|
||||
symbol = openmc.data.ATOMIC_SYMBOL[Z]
|
||||
|
||||
# Replace neutron with proton
|
||||
if Z == 0 and A == 1:
|
||||
return 'H1'
|
||||
|
||||
# First check if ground state is available
|
||||
if state:
|
||||
product = '{}{}'.format(symbol, A)
|
||||
|
|
@ -167,6 +171,9 @@ class Chain(object):
|
|||
decay_data = {}
|
||||
for f in decay_files:
|
||||
data = openmc.data.Decay(f)
|
||||
# Skip decay data for neutron itself
|
||||
if data.nuclide['atomic_number'] == 0:
|
||||
continue
|
||||
decay_data[data.nuclide['name']] = data
|
||||
|
||||
print('Processing fission product yield sub-library files...')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue