Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for the use of elementary.ParticleID in ENDFtk #122

Open
whaeck opened this issue Feb 23, 2021 · 0 comments
Open

Allow for the use of elementary.ParticleID in ENDFtk #122

whaeck opened this issue Feb 23, 2021 · 0 comments

Comments

@whaeck
Copy link
Member

whaeck commented Feb 23, 2021

Elementary is an NJOY component that allows us to identify nuclides, nuclei, elements, etc. See here for more information: https://github.com/njoy/elementary

A development version has python bindings for this library.

One of the inconveniences with ENDFtk, is that we need to know the MAT number in order to extract a material from a tape (python pseudo code):

tape = ENDFtk.tree.Tape.from_file( 'some_file_for_U235.endf' )
material = tape.material( 9228 ).parse()

Being able to use an elementary ParticleID would be a big advantage:

u235 = elementary.ParticleID( 'U235_e0' )
tape = ENDFtk.tree.Tape.from_file( 'some_file_for_U235.endf' )
material = tape.material( u235 ).parse()

Using the elementary identifiers elsewhere in ENDFtk (e.g. to extract reaction products, fission yields, etc.) would be a large improvement as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant