Repository navigation
Add script to generate full ENDF/B-VII.1 library using NJOY - #2
Conversation
liangjg
left a comment
There was a problem hiding this comment.
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.
This argument destination is not used
| (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.
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 |
liangjg
left a comment
There was a problem hiding this comment.
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.