-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add script to generate full ENDF/B-VII.1 library using NJOY #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be very helpful to users to customise library. Just two minor comments:
formatter_class=CustomFormatter | ||
) | ||
parser.add_argument('-d', '--destination', type=Path, default=Path('mcnp_endfb71'), | ||
help='Directory to create new library in') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This argument destination
is not used
generate_endf71.py
Outdated
(neutron_dir / 'n-092_U_238.endf', thermal_dir / 'tsl-UinUO2.endf') | ||
] | ||
|
||
temperatures = [250.0, 293.6, 600.0, 900.0, 1200.0, 2500.0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be helpful to allow users to optionally specify temperatures
? Of course, one can also modify this script manually for any desired temperature list.
Thanks for reviewing this @liangjg! Just fixed the script per your suggestion. I didn't add temperatures as an option since it would be a little complicated, but I moved the definition of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. But it seems I need the write access to merge it.
@liangjg Sorry about that. Committers team didn't have write access on the new repo; that should be fixed now. |
No worries @paulromano . Merging now! |
This script will generate a full ENDF/B-VII.1 library including neutron, photon, thermal scattering, and windowed multipole data. Because running NJOY for 400+ nuclides takes quite a bit of time, the processing is parallelized using the Python multiprocessing module.
This script can serve as a template for processing other full libraries.