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

Add script to generate full ENDF/B-VII.1 library using NJOY #2

Merged
merged 2 commits into from
Feb 14, 2019

Conversation

paulromano
Copy link
Contributor

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.

Copy link
Contributor

@liangjg liangjg left a 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')
Copy link
Contributor

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

(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]
Copy link
Contributor

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.

@paulromano
Copy link
Contributor Author

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 temperatures further up to make it more obvious.

Copy link
Contributor

@liangjg liangjg left a 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.

@paulromano
Copy link
Contributor Author

@liangjg Sorry about that. Committers team didn't have write access on the new repo; that should be fixed now.

@liangjg
Copy link
Contributor

liangjg commented Feb 14, 2019

No worries @paulromano . Merging now!

@liangjg liangjg merged commit 2e001d8 into openmc-dev:master Feb 14, 2019
@paulromano paulromano deleted the generate-endf branch February 14, 2019 14:36
shimwell pushed a commit that referenced this pull request Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants