-
Notifications
You must be signed in to change notification settings - Fork 582
Sensitivity analysis for tallies #3479
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
base: develop
Are you sure you want to change the base?
Conversation
…c/source/pythonapi
…c/source/pythonapi
Calc. Sens. Coeffs. in one run
|
Nice work, I have been using your branch to compute sensitivities. I got some results who seemed consistent. I haven't validated with another code though. A few problems to address : A few suggestions: However, this tool is definitely important to include in OpenMC. |
|
@pferney05, thanks for your review. From your comments I suppose you are solving eigenvalue problem. I have not finished work on the python side to get the result from the statepoint file. I can share script with you to extract energy-dependent sensitivities from the statepoint file. I'm mostly using the code for fixed-source problems where I compute the importance on-the-fly and sensitivities and don't use any importance mesh or filter. Importance of 1 everywhere would work but could give incorrect answers. For the eigenvalue problem, I have not looked at changing the Importance Filter. Computing the importance in an eigenvalue problem can be done within the code in a first run before tallying the sensitivity coefficients in a second run. |
Yes, I am using the eigenvalue mode. I didn't know you could compute importance on the fly in fixed source mode. For eigenvalue mode, you need to use random ray, hence generate mgxs which can be heavy. So I would probably just generate a source from eigenvalue mode and use it in fixed source mode to avoid the need of generating mgxs. |
See #3179 that was closed.
This PR adds tally to score sensitivity coefficients. The tally is useful to perform sensitivity and uncertainty analysis. This feature extends the development by @alhajri on eigenvalue sensitivity analysis to fixed-source problems.
N.B. Benchmarking the sensitivity tally is still ongoing and still needs lot of work. Folks can take a look to provide advice and help clean up the code.
The feature is applicable to both criticality and fixed-source problems. My verification is however focused on fixed-source applications. Usage for fixed-source problems requires to run one OpenMC simulation during which the sensitivity coefficients are calculated. Usage for criticality problems requires two OpenMC runs. Details of how to calculate the sensitivity coefficients can be found in here