-
Notifications
You must be signed in to change notification settings - Fork 596
Description
Bug Description
Currently we can produce chain files with reactions and decays. The decay options can contain nuclides ending with _m* as I guess this comes from the ENDF file directly.
However I don't think we can include the production of metastable states from reactions. For example production of Co58m is not possible and I think this is quite an important one for steel activation in fusion
It looks like the chain.REACTIONS currently includes reactions that change the number of protons and neutrons but not the meta_stable state
I've tried calling openmc.deplete.Chain.from_endf with '(n,n1)' reaction and as it is not in the REACTIONS dictionary I get a key error.
Would be be acceptable if we include some more reactions in the chain.REACTIONS dictionary
I notice that data.REACTION_NAME has a line of code to add lots of n,n* reactions
openmc/openmc/data/reaction.py
Line 59 in 847e9b5
| REACTION_NAME.update({i: '(n,n{})'.format(i - 50) for i in range(51, 91)}) |
Perhaps we can add something like the line above to the chain.REACTIONS?
I think if we want to accommodated reactions that result in a metastable then the ReactionInfo namedtuple might need another term. It is currently defined with mts, dadz and secondaries but perhaps it should have another term for meta.
To accommodate this reaction we might what to change from dAdZ to dAdZdM in the named tuple
Steps to Reproduce
chain = openmc.deplete.Chain.from_endf(
decay_files=decay_files,
fpy_files=fpy_files,
neutron_files=neutron_files,
reactions=['(n,n1)']
)Environment
Ubuntu 18.04, python 3.11, current openmc-dev (soon to be 0.14.0)