forked from openmc-dev/openmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of Shannon Entropy for Random Ray (openmc-dev#3030)
Co-authored-by: Ethan Krammer <ethan@DESKTOP-MGFGK9N> Co-authored-by: John Tramm <john.tramm@gmail.com>
- Loading branch information
Showing
14 changed files
with
282 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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
Empty file.
This file contains 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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<geometry> | ||
<cell id="1" material="1" universe="1"/> | ||
<cell fill="2" id="2" name="assembly" region="-2 1 -4 3 -6 5" universe="3"/> | ||
<lattice id="2"> | ||
<pitch>12.5 12.5 12.5</pitch> | ||
<dimension>8 8 8</dimension> |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1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
|
||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 | ||
1 1 1 1 1 1 1 1 </universes> | ||
</lattice> | ||
<surface boundary="reflective" coeffs="0.0" id="1" type="x-plane"/> | ||
<surface boundary="reflective" coeffs="100.0" id="2" type="x-plane"/> | ||
<surface boundary="reflective" coeffs="0.0" id="3" type="y-plane"/> | ||
<surface boundary="reflective" coeffs="100.0" id="4" type="y-plane"/> | ||
<surface boundary="reflective" coeffs="0.0" id="5" type="z-plane"/> | ||
<surface boundary="reflective" coeffs="100.0" id="6" type="z-plane"/> | ||
</geometry> |
This file contains 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<materials> | ||
<cross_sections>mgxs.h5</cross_sections> | ||
<material id="1" name="Core Material"> | ||
<density units="macro" value="1.0"/> | ||
<macroscopic name="CoreMaterial"/> | ||
</material> | ||
</materials> |
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
tests/regression_tests/random_ray_entropy/results_true.dat
This file contains 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
k-combined: | ||
1.000000E+00 0.000000E+00 | ||
entropy: | ||
8.863421E+00 | ||
8.933584E+00 | ||
8.960553E+00 | ||
8.967921E+00 | ||
8.976016E+00 | ||
8.981856E+00 | ||
8.983670E+00 | ||
8.986584E+00 | ||
8.987732E+00 | ||
8.988186E+00 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<settings> | ||
<run_mode>eigenvalue</run_mode> | ||
<particles>100</particles> | ||
<batches>10</batches> | ||
<inactive>5</inactive> | ||
<energy_mode>multi-group</energy_mode> | ||
<random_ray> | ||
<source particle="neutron" strength="1.0" type="independent"> | ||
<space type="box"> | ||
<parameters>0.0 0.0 0.0 100.0 100.0 100.0</parameters> | ||
</space> | ||
</source> | ||
<distance_inactive>40.0</distance_inactive> | ||
<distance_active>400.0</distance_active> | ||
</random_ray> | ||
</settings> |
Oops, something went wrong.