-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #966 from nuclearkevin/rxn_rate_scores
Add common reaction rate scores
- Loading branch information
Showing
11 changed files
with
296 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<geometry> | ||
<cell id="1" material="1" region="-1" universe="1" /> | ||
<cell id="2" material="2" region="-2" universe="1" /> | ||
<cell id="3" material="3" region="-3" universe="1" /> | ||
<cell id="4" material="4" region="1 2 3 4 -5 6 -7 8 -9" universe="1" /> | ||
<surface coeffs="0.0 0.0 0.0 1.5" id="1" type="sphere" /> | ||
<surface coeffs="0.0 0.0 4.0 1.5" id="2" type="sphere" /> | ||
<surface coeffs="0.0 0.0 8.0 1.5" id="3" type="sphere" /> | ||
<surface boundary="reflective" coeffs="-2.5" id="4" name="minimum x" type="x-plane" /> | ||
<surface boundary="reflective" coeffs="2.5" id="5" name="maximum x" type="x-plane" /> | ||
<surface boundary="reflective" coeffs="-2.5" id="6" name="minimum y" type="y-plane" /> | ||
<surface boundary="reflective" coeffs="2.5" id="7" name="maximum y" type="y-plane" /> | ||
<surface boundary="reflective" coeffs="-2.0" id="8" type="z-plane" /> | ||
<surface boundary="reflective" coeffs="10.0" id="9" type="z-plane" /> | ||
</geometry> |
2 changes: 2 additions & 0 deletions
2
test/tests/neutronics/tallies/reaction_rates/gold/openmc_out.csv
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,2 @@ | ||
time,fluid_abs,fluid_fis,fluid_sca,fluid_tot,max_err_abs,max_err_fis,max_err_sca,max_err_tot,pebble1_abs,pebble1_fis,pebble1_sca,pebble1_tot,pebble2_abs,pebble2_fis,pebble2_sca,pebble2_tot,pebble3_abs,pebble3_fis,pebble3_sca,pebble3_tot,total_abs,total_fis,total_sca,total_tot | ||
2,4149.6966831807,680.47521645749,296062.06592204,300211.76260522,0.056733496208636,0.056604251482993,0.055791612323537,0.055791025495985,192976.8576854,39318.916021239,7071351.6419481,7264328.4996335,275273.85825425,103528.67789506,7056891.3237557,7332165.1820099,374173.7454997,179011.11385643,7060000.1112522,7434173.8567519,12226931.171582,4433961.3918573,357830861.2212,370057792.39278 |
40 changes: 40 additions & 0 deletions
40
test/tests/neutronics/tallies/reaction_rates/materials.xml
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,40 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<materials> | ||
<material depletable="true" id="1"> | ||
<density units="g/cc" value="5.0" /> | ||
<nuclide ao="9.051308944870946e-05" name="U234" /> | ||
<nuclide ao="0.010126612654073502" name="U235" /> | ||
<nuclide ao="0.9897364895065476" name="U238" /> | ||
<nuclide ao="4.63847499302226e-05" name="U236" /> | ||
<nuclide ao="1.999242" name="O16" /> | ||
<nuclide ao="0.000758" name="O17" /> | ||
</material> | ||
<material depletable="true" id="2"> | ||
<density units="g/cc" value="5.0" /> | ||
<nuclide ao="0.0004523305496680539" name="U234" /> | ||
<nuclide ao="0.05060678290832386" name="U235" /> | ||
<nuclide ao="0.948709083169038" name="U238" /> | ||
<nuclide ao="0.00023180337297007338" name="U236" /> | ||
<nuclide ao="1.999242" name="O16" /> | ||
<nuclide ao="0.000758" name="O17" /> | ||
</material> | ||
<material depletable="true" id="3"> | ||
<density units="g/cc" value="5.0" /> | ||
<nuclide ao="0.0009040745407538578" name="U234" /> | ||
<nuclide ao="0.10114794158928406" name="U235" /> | ||
<nuclide ao="0.8974846777145036" name="U238" /> | ||
<nuclide ao="0.00046330615545845175" name="U236" /> | ||
<nuclide ao="1.999242" name="O16" /> | ||
<nuclide ao="0.000758" name="O17" /> | ||
</material> | ||
<material depletable="true" id="4"> | ||
<density units="g/cc" value="0.1" /> | ||
<nuclide ao="1.99968852" name="H1" /> | ||
<nuclide ao="0.00031148" name="H2" /> | ||
<nuclide ao="0.999621" name="O16" /> | ||
<nuclide ao="0.000379" name="O17" /> | ||
<nuclide ao="5.4e-05" name="U234" /> | ||
<nuclide ao="0.007204" name="U235" /> | ||
<nuclide ao="0.992742" name="U238" /> | ||
</material> | ||
</materials> |
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,179 @@ | ||
[Mesh] | ||
[sphere] | ||
type = FileMeshGenerator | ||
file = ../../meshes/sphere.e | ||
[] | ||
[solid] | ||
type = CombinerGenerator | ||
inputs = sphere | ||
positions = '0 0 0 | ||
0 0 4 | ||
0 0 8' | ||
[] | ||
[solid_ids] | ||
type = SubdomainIDGenerator | ||
input = solid | ||
subdomain_id = '100' | ||
[] | ||
[fluid] | ||
type = FileMeshGenerator | ||
file = ../../heat_source/stoplight.exo | ||
[] | ||
[fluid_ids] | ||
type = SubdomainIDGenerator | ||
input = fluid | ||
subdomain_id = '200' | ||
[] | ||
[combine] | ||
type = CombinerGenerator | ||
inputs = 'solid_ids fluid_ids' | ||
[] | ||
[] | ||
|
||
[Problem] | ||
type = OpenMCCellAverageProblem | ||
verbose = true | ||
|
||
source_strength = 1e6 | ||
|
||
temperature_blocks = '100 200' | ||
density_blocks = '200' | ||
cell_level = 0 | ||
|
||
initial_properties = xml | ||
|
||
[Tallies] | ||
[Cell] | ||
type = CellTally | ||
score = 'absorption fission scatter total' | ||
blocks = '100 200' | ||
[] | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
[] | ||
|
||
[Postprocessors] | ||
[total_abs] | ||
type = ElementIntegralVariablePostprocessor | ||
variable = absorption | ||
[] | ||
[fluid_abs] | ||
type = PointValue | ||
variable = absorption | ||
point = '0.0 0.0 2.0' | ||
[] | ||
[pebble1_abs] | ||
type = PointValue | ||
variable = absorption | ||
point = '0.0 0.0 0.0' | ||
[] | ||
[pebble2_abs] | ||
type = PointValue | ||
variable = absorption | ||
point = '0.0 0.0 4.0' | ||
[] | ||
[pebble3_abs] | ||
type = PointValue | ||
variable = absorption | ||
point = '0.0 0.0 8.0' | ||
[] | ||
[max_err_abs] | ||
type = TallyRelativeError | ||
tally_score = 'absorption' | ||
[] | ||
|
||
[total_fis] | ||
type = ElementIntegralVariablePostprocessor | ||
variable = fission | ||
[] | ||
[fluid_fis] | ||
type = PointValue | ||
variable = fission | ||
point = '0.0 0.0 2.0' | ||
[] | ||
[pebble1_fis] | ||
type = PointValue | ||
variable = fission | ||
point = '0.0 0.0 0.0' | ||
[] | ||
[pebble2_fis] | ||
type = PointValue | ||
variable = fission | ||
point = '0.0 0.0 4.0' | ||
[] | ||
[pebble3_fis] | ||
type = PointValue | ||
variable = fission | ||
point = '0.0 0.0 8.0' | ||
[] | ||
[max_err_fis] | ||
type = TallyRelativeError | ||
tally_score = 'fission' | ||
[] | ||
|
||
[total_sca] | ||
type = ElementIntegralVariablePostprocessor | ||
variable = scatter | ||
[] | ||
[fluid_sca] | ||
type = PointValue | ||
variable = scatter | ||
point = '0.0 0.0 2.0' | ||
[] | ||
[pebble1_sca] | ||
type = PointValue | ||
variable = scatter | ||
point = '0.0 0.0 0.0' | ||
[] | ||
[pebble2_sca] | ||
type = PointValue | ||
variable = scatter | ||
point = '0.0 0.0 4.0' | ||
[] | ||
[pebble3_sca] | ||
type = PointValue | ||
variable = scatter | ||
point = '0.0 0.0 8.0' | ||
[] | ||
[max_err_sca] | ||
type = TallyRelativeError | ||
tally_score = 'scatter' | ||
[] | ||
|
||
[total_tot] | ||
type = ElementIntegralVariablePostprocessor | ||
variable = total | ||
[] | ||
[fluid_tot] | ||
type = PointValue | ||
variable = total | ||
point = '0.0 0.0 2.0' | ||
[] | ||
[pebble1_tot] | ||
type = PointValue | ||
variable = total | ||
point = '0.0 0.0 0.0' | ||
[] | ||
[pebble2_tot] | ||
type = PointValue | ||
variable = total | ||
point = '0.0 0.0 4.0' | ||
[] | ||
[pebble3_tot] | ||
type = PointValue | ||
variable = total | ||
point = '0.0 0.0 8.0' | ||
[] | ||
[max_err_tot] | ||
type = TallyRelativeError | ||
tally_score = 'total' | ||
[] | ||
[] | ||
|
||
[Outputs] | ||
execute_on = final | ||
csv = true | ||
[] |
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,16 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<settings> | ||
<run_mode>fixed source</run_mode> | ||
<particles>100</particles> | ||
<batches>50</batches> | ||
<inactive>10</inactive> | ||
<source strength="1.0"> | ||
<space type="box"> | ||
<parameters>-5.0 -5.0 0 5.0 5.0 12.0</parameters> | ||
</space> | ||
</source> | ||
<temperature_default>600.0</temperature_default> | ||
<temperature_method>nearest</temperature_method> | ||
<temperature_multipole>false</temperature_multipole> | ||
<temperature_range>294.0 1600.0</temperature_range> | ||
</settings> |
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,9 @@ | ||
[Tests] | ||
[reaction_rates] | ||
type = CSVDiff | ||
input = openmc.i | ||
csvdiff = openmc_out.csv | ||
requirement = "The system shall allow tallying of absorption/fission/scattering/total reaction rates in fixed source mode." | ||
required_objects = 'OpenMCCellAverageProblem' | ||
[] | ||
[] |