-
Notifications
You must be signed in to change notification settings - Fork 569
Random Ray Eigenvalue Flux Normalization Change #3595
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
Open
jtramm
wants to merge
6
commits into
openmc-dev:develop
Choose a base branch
from
jtramm:rrm_no_fission
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
15e3dd4
working
jtramm 5ab5f29
normalization improvements
jtramm 018135f
updated tests due to new random ray flux normalization in eigenvalue …
jtramm 1081b78
regenerated tests involving MGXS creation using the expected nndc data
jtramm 774d0af
Update src/random_ray/flat_source_domain.cpp
jtramm b11c043
fix for infinite medium random ray k-eff roundoff
jtramm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
244 changes: 122 additions & 122 deletions
244
tests/regression_tests/random_ray_adjoint_k_eff/results_true.dat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,171 +1,171 @@ | ||
k-combined: | ||
1.006640E+00 1.812969E-03 | ||
tally 1: | ||
6.684129E+00 | ||
8.939821E+00 | ||
2.685967E+00 | ||
1.443592E+00 | ||
1.208044E+00 | ||
2.920182E-01 | ||
4.854426E-01 | ||
4.715453E-02 | ||
0.000000E+00 | ||
0.000000E+00 | ||
6.358774E+00 | ||
8.091444E+00 | ||
9.687217E-01 | ||
1.878029E-01 | ||
1.149242E+00 | ||
2.643067E-01 | ||
1.750801E-01 | ||
6.134563E-03 | ||
0.000000E+00 | ||
0.000000E+00 | ||
5.963160E+00 | ||
7.117108E+00 | ||
1.932332E-01 | ||
7.473914E-03 | ||
1.077743E+00 | ||
2.324814E-01 | ||
3.492371E-02 | ||
2.441363E-04 | ||
0.000000E+00 | ||
0.000000E+00 | ||
5.137593E+00 | ||
5.283310E+00 | ||
1.714616E-01 | ||
5.884834E-03 | ||
1.086218E-06 | ||
2.361752E-13 | ||
4.857253E+00 | ||
4.719856E+00 | ||
5.689580E-02 | ||
6.476286E-04 | ||
2.989356E-03 | ||
1.787808E-06 | ||
4.830516E+00 | ||
4.666801E+00 | ||
7.203015E-03 | ||
1.037676E-05 | ||
3.620020E+00 | ||
2.620927E+00 | ||
5.161382E+00 | ||
5.328124E+00 | ||
6.786255E-02 | ||
9.210763E-04 | ||
5.531943E+00 | ||
6.120553E+00 | ||
5.414034E+00 | ||
5.864661E+00 | ||
9.285362E-01 | ||
1.725808E-01 | ||
3.098889E-02 | ||
1.922297E-04 | ||
1.963161E-07 | ||
7.714727E-15 | ||
8.778641E-01 | ||
1.541719E-01 | ||
1.028293E-02 | ||
2.115448E-05 | ||
5.402741E-04 | ||
5.839789E-08 | ||
8.730274E-01 | ||
1.524358E-01 | ||
1.301813E-03 | ||
3.389450E-07 | ||
6.542525E-01 | ||
8.560964E-02 | ||
9.328247E-01 | ||
1.740366E-01 | ||
1.226491E-02 | ||
3.008584E-05 | ||
9.997969E-01 | ||
1.999204E-01 | ||
9.784958E-01 | ||
1.915688E-01 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
5.632338E+00 | ||
6.347626E+00 | ||
1.017952E+00 | ||
2.073461E-01 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
5.682608E+00 | ||
6.462382E+00 | ||
1.027039E+00 | ||
2.110955E-01 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
5.310716E+00 | ||
5.645180E+00 | ||
9.598240E-01 | ||
1.844004E-01 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
4.945409E+00 | ||
4.893171E+00 | ||
8.937969E-01 | ||
1.598332E-01 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
4.842688E+00 | ||
4.690352E+00 | ||
8.752275E-01 | ||
1.532052E-01 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
5.117198E+00 | ||
5.237280E+00 | ||
9.248400E-01 | ||
1.710699E-01 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
0.000000E+00 | ||
6.938711E+00 | ||
9.633345E+00 | ||
2.835258E+00 | ||
1.608212E+00 | ||
1.254054E+00 | ||
3.146708E-01 | ||
5.124223E-01 | ||
5.253093E-02 | ||
0.000000E+00 | ||
0.000000E+00 | ||
6.549505E+00 | ||
8.584036E+00 | ||
1.015138E+00 | ||
2.061993E-01 | ||
1.183712E+00 | ||
2.803961E-01 | ||
1.834683E-01 | ||
6.735381E-03 | ||
0.000000E+00 | ||
0.000000E+00 | ||
6.050651E+00 | ||
7.327711E+00 | ||
1.992816E-01 | ||
7.948424E-03 | ||
1.093555E+00 | ||
2.393604E-01 | ||
3.601678E-02 | ||
2.596341E-04 | ||
0.000000E+00 | ||
0.000000E+00 | ||
5.113981E+00 | ||
5.234801E+00 | ||
1.732323E-01 | ||
6.006619E-03 | ||
1.097435E-06 | ||
2.410627E-13 | ||
4.837033E+00 | ||
4.680541E+00 | ||
5.760042E-02 | ||
6.637112E-04 | ||
3.026377E-03 | ||
1.832205E-06 | ||
4.827049E+00 | ||
4.660105E+00 | ||
7.319913E-03 | ||
1.071647E-05 | ||
3.678770E+00 | ||
2.706730E+00 | ||
5.175337E+00 | ||
5.356957E+00 | ||
6.923046E-02 | ||
9.586177E-04 | ||
5.643451E+00 | ||
6.370016E+00 | ||
6.693323E+00 | ||
8.964322E+00 | ||
2.753307E+00 | ||
1.516683E+00 | ||
9.242694E-01 | ||
1.709967E-01 | ||
3.130894E-02 | ||
1.962084E-04 | ||
1.983437E-07 | ||
7.874400E-15 | ||
8.742100E-01 | ||
1.528879E-01 | ||
1.041026E-02 | ||
2.167970E-05 | ||
5.469644E-04 | ||
5.984780E-08 | ||
8.724009E-01 | ||
1.522171E-01 | ||
1.322938E-03 | ||
3.500386E-07 | ||
6.648691E-01 | ||
8.841161E-02 | ||
9.353464E-01 | ||
1.749781E-01 | ||
1.251209E-02 | ||
3.131171E-05 | ||
1.019947E+00 | ||
2.080664E-01 | ||
1.209708E+00 | ||
2.928214E-01 | ||
4.976146E-01 | ||
4.954258E-02 | ||
0.000000E+00 | ||
0.000000E+00 | ||
6.358384E+00 | ||
8.090233E+00 | ||
9.912008E-01 | ||
1.965868E-01 | ||
1.149174E+00 | ||
2.642694E-01 | ||
1.791431E-01 | ||
6.421530E-03 | ||
0.000000E+00 | ||
0.000000E+00 | ||
5.957484E+00 | ||
7.103246E+00 | ||
1.974033E-01 | ||
7.798286E-03 | ||
1.076718E+00 | ||
2.320295E-01 | ||
3.567737E-02 | ||
2.547314E-04 | ||
0.000000E+00 | ||
0.000000E+00 | ||
5.130744E+00 | ||
5.268844E+00 | ||
1.749233E-01 | ||
6.123348E-03 | ||
1.108148E-06 | ||
2.457474E-13 | ||
4.857340E+00 | ||
4.720019E+00 | ||
5.816659E-02 | ||
6.768049E-04 | ||
3.056125E-03 | ||
1.868351E-06 | ||
4.830629E+00 | ||
4.667018E+00 | ||
7.366289E-03 | ||
1.085264E-05 | ||
3.702077E+00 | ||
2.741125E+00 | ||
5.164864E+00 | ||
5.335279E+00 | ||
6.947917E-02 | ||
9.655086E-04 | ||
5.663725E+00 | ||
6.415806E+00 | ||
9.272977E-01 | ||
1.721077E-01 | ||
3.161443E-02 | ||
2.000179E-04 | ||
2.002789E-07 | ||
8.027290E-15 | ||
8.778794E-01 | ||
1.541769E-01 | ||
1.051257E-02 | ||
2.210729E-05 | ||
5.523400E-04 | ||
6.102818E-08 | ||
8.730477E-01 | ||
1.524429E-01 | ||
1.331320E-03 | ||
3.544869E-07 | ||
6.690816E-01 | ||
8.953516E-02 | ||
9.334544E-01 | ||
1.742707E-01 | ||
1.255707E-02 | ||
3.153710E-05 | ||
1.023613E+00 | ||
2.095641E-01 |
2 changes: 1 addition & 1 deletion
2
tests/regression_tests/random_ray_auto_convert/material_wise/results_true.dat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
k-combined: | ||
7.356667E-01 6.637270E-03 | ||
7.356667E-01 6.637266E-03 |
2 changes: 1 addition & 1 deletion
2
tests/regression_tests/random_ray_auto_convert/stochastic_slab/results_true.dat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
k-combined: | ||
7.551716E-01 8.117378E-03 | ||
7.551716E-01 8.117379E-03 |
2 changes: 1 addition & 1 deletion
2
tests/regression_tests/random_ray_diagonal_stabilization/results_true.dat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
k-combined: | ||
7.201808E-01 1.506596E-02 | ||
7.201807E-01 1.506630E-02 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Does this make sense?
norm_factor = k_eff_new / total_fission_neutrons
= (k_eff_ * (fission_rate_new / fission_rate_old)) / (fission_rate_new * simulation_volume_)
= k_eff_ / (fission_rate_old * simulation_volume_)
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.
It does seem a little odd. I wonder if (effectively) scaling by some property of the previous iteration as I'm proposing creates extra noise, whereas perhaps there is a way that only uses the current iteration's properties and thus might have lower variance? It seems this would be inevitable though as k_new is inherently a function of the ratio of fluxes between two batches, so you have to incorporate previous batch info into this. I suppose
k_new / F_new = k_old / F_old
may be in inherent property of power iteration and eigenvalues & the magnitude of eigenvectors (F)? Any other ideas for scaling the fluxes?