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

MCNP implementation greatly increases runtime #29

Open
jbae11 opened this issue Jan 11, 2022 · 1 comment
Open

MCNP implementation greatly increases runtime #29

jbae11 opened this issue Jan 11, 2022 · 1 comment

Comments

@jbae11
Copy link

jbae11 commented Jan 11, 2022

Investigated and organized by Katarzyna Borowiec at ORNL (@KatarzynaBorowiec)

Problem description

Implementation of the user defined neutron source caused significant slowdown of MCNP run. The following slowdown was observed (from 3.5M histories/hr using SDEF to 0.02M histories/hr for user-defined source). Upon investigation, this is caused by source particles being tracked until the statistical weight of the particle reaches 0.0 for the user defined source.

Identified cause

The default value of the swtm variable is set to 0. The variable is used in the MCNP initialization to determine the weight cutoffs. If the user defined source is used, swtm remains equal to 0 and the weight cutoffs are also set to 0. If the general source (e.g., SDEF card) is used this variable is set to the minimum weight of source particle.

Possible solutions

  1. The swtm variable can be specified using the CUT card in the input file. It would be helpful to explicitly state the need for this card in the repo's manual or readme.
  2. Changes to the MCNP source code changing the default of the swtm at the initialization stage.
  3. Explicitly evaluating/setting weight cutoffs in the user defined subroutine.
@makeclean
Copy link
Contributor

Thanks for reporting, do you have a preferred solution?

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

No branches or pull requests

2 participants