diff --git a/.gitignore b/.gitignore index 41b046d..8a8e189 100644 --- a/.gitignore +++ b/.gitignore @@ -94,6 +94,8 @@ ENV/ # OpenMC output files *.h5 *.out +*.ppm +*.png # Temp files *.xml~ \ No newline at end of file diff --git a/2x2-periodic/build-xml.py b/2x2-periodic/build-xml.py index 55665f7..8ef379f 100644 --- a/2x2-periodic/build-xml.py +++ b/2x2-periodic/build-xml.py @@ -187,6 +187,28 @@ settings_file.sourcepoint_write = False settings_file.export_to_xml() +#### Create OpenMC "plots.xml" file + +# Initialize the BEAVRS color mapping scheme +beavrs.write_openmc_plots() + +# Create a plot colored by materials +plot = openmc.Plot() +bounds = two_by_two.bounds +plot.width = [two_by_two.max_x - two_by_two.min_x, + two_by_two.max_y - two_by_two.min_y] +plot.origin = [bounds[0] + (bounds[3] - bounds[0]) / 2., + bounds[1] + (bounds[4] - bounds[1]) / 2., + bounds[2] + (bounds[5] - bounds[2]) / 2.] +plot.color = 'mat' +plot.filename = '2x2-periodic' +plot.col_spec = beavrs.plots.colspec_mat +plot.pixels = [1000, 1000] + +plot_file = openmc.Plots([plot]) +plot_file.export_to_xml() + + #### Create OpenMC MGXS libraries # Get all cells filled with a "fuel" material diff --git a/2x2-periodic/geometry.xml b/2x2-periodic/geometry.xml index 2f3b1b7..1542126 100644 --- a/2x2-periodic/geometry.xml +++ b/2x2-periodic/geometry.xml @@ -1,245 +1,245 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.25984 1.25984 1000.0 + 17 17 1 + -10.70864 -10.70864 -500.0 + +14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 +14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 +14 14 14 14 14 7 14 14 7 14 14 7 14 14 14 14 14 +14 14 14 7 14 14 14 14 14 14 14 14 14 7 14 14 14 +14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 +14 14 7 14 14 7 14 14 7 14 14 7 14 14 7 14 14 +14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 +14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 +14 14 7 14 14 7 14 14 16 14 14 7 14 14 7 14 14 +14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 +14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 +14 14 7 14 14 7 14 14 7 14 14 7 14 14 7 14 14 +14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 +14 14 14 7 14 14 14 14 14 14 14 14 14 7 14 14 14 +14 14 14 14 14 7 14 14 7 14 14 7 14 14 14 14 14 +14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 +14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 + + 21.41728 21.41728 1000.0 2 2 1 -21.41728 -21.41728 -500.0 -139 140 -140 139 +134 135 +135 134 - + 1.25984 1.25984 1000.0 17 17 1 -10.70864 -10.70864 -500.0 -70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 -70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 -70 70 70 70 70 138 70 70 138 70 70 138 70 70 70 70 70 -70 70 70 138 70 70 70 70 70 70 70 70 70 138 70 70 70 -70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 -70 70 138 70 70 138 70 70 138 70 70 138 70 70 138 70 70 -70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 -70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 -70 70 138 70 70 138 70 70 74 70 70 138 70 70 138 70 70 -70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 -70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 -70 70 138 70 70 138 70 70 138 70 70 138 70 70 138 70 70 -70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 -70 70 70 138 70 70 70 70 70 70 70 70 70 138 70 70 70 -70 70 70 70 70 138 70 70 138 70 70 138 70 70 70 70 70 -70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 -70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 70 +36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 +36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 +36 36 36 36 36 37 36 36 37 36 36 37 36 36 36 36 36 +36 36 36 37 36 36 36 36 36 36 36 36 36 37 36 36 36 +36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 +36 36 37 36 36 37 36 36 7 36 36 37 36 36 37 36 36 +36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 +36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 +36 36 37 36 36 7 36 36 16 36 36 7 36 36 37 36 36 +36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 +36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 +36 36 37 36 36 37 36 36 7 36 36 37 36 36 37 36 36 +36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 +36 36 36 37 36 36 36 36 36 36 36 36 36 37 36 36 36 +36 36 36 36 36 37 36 36 37 36 36 37 36 36 36 36 36 +36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 +36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 - - 1.25984 1.25984 1000.0 - 17 17 1 - -10.70864 -10.70864 -500.0 - -133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 -133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 -133 133 133 133 133 64 133 133 64 133 133 64 133 133 133 133 133 -133 133 133 64 133 133 133 133 133 133 133 133 133 64 133 133 133 -133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 -133 133 64 133 133 64 133 133 138 133 133 64 133 133 64 133 133 -133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 -133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 -133 133 64 133 133 138 133 133 74 133 133 138 133 133 64 133 133 -133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 -133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 -133 133 64 133 133 64 133 133 138 133 133 64 133 133 64 133 133 -133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 -133 133 133 64 133 133 133 133 133 133 133 133 133 64 133 133 133 -133 133 133 133 133 64 133 133 64 133 133 64 133 133 133 133 133 -133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 -133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 133 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/2x2-periodic/plots.xml b/2x2-periodic/plots.xml new file mode 100644 index 0000000..ffff0e5 --- /dev/null +++ b/2x2-periodic/plots.xml @@ -0,0 +1,23 @@ + + + + 0.0 0.0 195.0 + 42.83456 42.83456 + 1000 1000 + + + + + + + + + + + + + + + + + diff --git a/2x2-periodic/tallies.xml b/2x2-periodic/tallies.xml index fe15f82..bafc3cf 100644 --- a/2x2-periodic/tallies.xml +++ b/2x2-periodic/tallies.xml @@ -16,28 +16,28 @@ absorption fission - + total flux tracklength - + O16 O17 U234 U235 U238 total nu-fission tracklength - + total flux analog - + O16 O17 U234 U235 U238 @@ -45,42 +45,42 @@ analog - + O16 O17 U234 U235 U238 nu-fission analog - + O16 O17 U234 U235 U238 nu-fission analog - + total flux tracklength - + O16 O17 U234 U235 U238 total nu-fission tracklength - + total flux analog - + O16 O17 U234 U235 U238 @@ -88,14 +88,14 @@ analog - + O16 O17 U234 U235 U238 nu-fission analog - + O16 O17 U234 U235 U238 nu-fission diff --git a/2x2-reflector/build-xml.py b/2x2-reflector/build-xml.py index 9d62504..c2f2cd2 100644 --- a/2x2-reflector/build-xml.py +++ b/2x2-reflector/build-xml.py @@ -199,6 +199,28 @@ settings_file.sourcepoint_write = False settings_file.export_to_xml() +#### Create OpenMC "plots.xml" file + +# Initialize the BEAVRS color mapping scheme +beavrs.write_openmc_plots() + +# Create a plot colored by materials +plot = openmc.Plot() +bounds = reflector.bounds +plot.width = [reflector.max_x - reflector.min_x, + reflector.max_y - reflector.min_y] +plot.origin = [bounds[0] + (bounds[3] - bounds[0]) / 2., + bounds[1] + (bounds[4] - bounds[1]) / 2., + bounds[2] + (bounds[5] - bounds[2]) / 2.] +plot.color = 'mat' +plot.filename = '2x2-reflector' +plot.col_spec = beavrs.plots.colspec_mat +plot.pixels = [1000, 1000] + +plot_file = openmc.Plots([plot]) +plot_file.export_to_xml() + + #### Create OpenMC MGXS libraries # Get all cells filled with a "fuel" material diff --git a/2x2-reflector/geometry.xml b/2x2-reflector/geometry.xml index 05793b2..33c0d52 100644 --- a/2x2-reflector/geometry.xml +++ b/2x2-reflector/geometry.xml @@ -1,247 +1,247 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.25984 1.25984 1000.0 17 17 1 -10.70864 -10.70864 -500.0 -16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 -16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 -16 16 16 16 16 7 16 16 7 16 16 7 16 16 16 16 16 -16 16 16 7 16 16 16 16 16 16 16 16 16 7 16 16 16 -16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 -16 16 7 16 16 7 16 16 7 16 16 7 16 16 7 16 16 -16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 -16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 -16 16 7 16 16 7 16 16 10 16 16 7 16 16 7 16 16 -16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 -16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 -16 16 7 16 16 7 16 16 7 16 16 7 16 16 7 16 16 -16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 -16 16 16 7 16 16 16 16 16 16 16 16 16 7 16 16 16 -16 16 16 16 16 7 16 16 7 16 16 7 16 16 16 16 16 -16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 -16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 +32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 +32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 +32 32 32 32 32 41 32 32 41 32 32 41 32 32 32 32 32 +32 32 32 41 32 32 32 32 32 32 32 32 32 41 32 32 32 +32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 +32 32 41 32 32 41 32 32 6 32 32 41 32 32 41 32 32 +32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 +32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 +32 32 41 32 32 6 32 32 27 32 32 6 32 32 41 32 32 +32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 +32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 +32 32 41 32 32 41 32 32 6 32 32 41 32 32 41 32 32 +32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 +32 32 32 41 32 32 32 32 32 32 32 32 32 41 32 32 32 +32 32 32 32 32 41 32 32 41 32 32 41 32 32 32 32 32 +32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 +32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 - + 1.25984 1.25984 1000.0 17 17 1 -10.70864 -10.70864 -500.0 -23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 -23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 -23 23 23 23 23 28 23 23 28 23 23 28 23 23 23 23 23 -23 23 23 28 23 23 23 23 23 23 23 23 23 28 23 23 23 -23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 -23 23 28 23 23 28 23 23 7 23 23 28 23 23 28 23 23 -23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 -23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 -23 23 28 23 23 7 23 23 10 23 23 7 23 23 28 23 23 -23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 -23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 -23 23 28 23 23 28 23 23 7 23 23 28 23 23 28 23 23 -23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 -23 23 23 28 23 23 23 23 23 23 23 23 23 28 23 23 23 -23 23 23 23 23 28 23 23 28 23 23 28 23 23 23 23 23 -23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 -23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 +35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 +35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 +35 35 35 35 35 6 35 35 6 35 35 6 35 35 35 35 35 +35 35 35 6 35 35 35 35 35 35 35 35 35 6 35 35 35 +35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 +35 35 6 35 35 6 35 35 6 35 35 6 35 35 6 35 35 +35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 +35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 +35 35 6 35 35 6 35 35 27 35 35 6 35 35 6 35 35 +35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 +35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 +35 35 6 35 35 6 35 35 6 35 35 6 35 35 6 35 35 +35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 +35 35 35 6 35 35 35 35 35 35 35 35 35 6 35 35 35 +35 35 35 35 35 6 35 35 6 35 35 6 35 35 35 35 35 +35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 +35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 - + 21.41728 21.41728 1000.0 3 3 1 -32.12592 -32.12592 -500.0 -31 34 32 -34 31 32 -32 32 32 +75 73 72 +73 75 72 +72 72 72 - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/2x2-reflector/plots.xml b/2x2-reflector/plots.xml new file mode 100644 index 0000000..c78a703 --- /dev/null +++ b/2x2-reflector/plots.xml @@ -0,0 +1,23 @@ + + + + 0.0 0.0 195.0 + 64.25184 64.25184 + 1000 1000 + + + + + + + + + + + + + + + + + diff --git a/2x2-reflector/tallies.xml b/2x2-reflector/tallies.xml index b91defe..a72efab 100644 --- a/2x2-reflector/tallies.xml +++ b/2x2-reflector/tallies.xml @@ -16,28 +16,28 @@ absorption fission - + total flux tracklength - + O16 O17 U234 U235 U238 total nu-fission tracklength - + total flux analog - + O16 O17 U234 U235 U238 @@ -45,42 +45,42 @@ analog - + O16 O17 U234 U235 U238 nu-fission analog - + O16 O17 U234 U235 U238 nu-fission analog - + total flux tracklength - + O16 O17 U234 U235 U238 total nu-fission tracklength - + total flux analog - + O16 O17 U234 U235 U238 @@ -88,14 +88,14 @@ analog - + O16 O17 U234 U235 U238 nu-fission analog - + O16 O17 U234 U235 U238 nu-fission diff --git a/assembly/build-xml.py b/assembly/build-xml.py index 9c7c119..c70f5fb 100644 --- a/assembly/build-xml.py +++ b/assembly/build-xml.py @@ -107,6 +107,28 @@ settings_file.sourcepoint_write = False settings_file.export_to_xml() +#### Create OpenMC "plots.xml" file + +# Initialize the BEAVRS color mapping scheme +beavrs.write_openmc_plots() + +# Create a plot colored by materials +plot = openmc.Plot() +bounds = fuel_assembly.bounds +plot.width = [fuel_assembly.max_x - fuel_assembly.min_x, + fuel_assembly.max_y - fuel_assembly.min_y] +plot.origin = [bounds[0] + (bounds[3] - bounds[0]) / 2., + bounds[1] + (bounds[4] - bounds[1]) / 2., + bounds[2] + (bounds[5] - bounds[2]) / 2.] +plot.color = 'mat' +plot.filename = 'assembly' +plot.col_spec = beavrs.plots.colspec_mat +plot.pixels = [1000, 1000] + +plot_file = openmc.Plots([plot]) +plot_file.export_to_xml() + + #### Create OpenMC MGXS libraries # Get all cells filled with a "fuel" material diff --git a/assembly/geometry.xml b/assembly/geometry.xml index 982d949..675bc59 100644 --- a/assembly/geometry.xml +++ b/assembly/geometry.xml @@ -1,162 +1,162 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.25984 1.25984 1000.0 17 17 1 -10.70864 -10.70864 -500.0 -17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 -17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 -17 17 17 17 17 13 17 17 13 17 17 13 17 17 17 17 17 -17 17 17 13 17 17 17 17 17 17 17 17 17 13 17 17 17 -17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 -17 17 13 17 17 13 17 17 13 17 17 13 17 17 13 17 17 -17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 -17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 -17 17 13 17 17 13 17 17 16 17 17 13 17 17 13 17 17 -17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 -17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 -17 17 13 17 17 13 17 17 13 17 17 13 17 17 13 17 17 -17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 -17 17 17 13 17 17 17 17 17 17 17 17 17 13 17 17 17 -17 17 17 17 17 13 17 17 13 17 17 13 17 17 17 17 17 -17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 -17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 +26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 +26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 +26 26 26 26 26 11 26 26 11 26 26 11 26 26 26 26 26 +26 26 26 11 26 26 26 26 26 26 26 26 26 11 26 26 26 +26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 +26 26 11 26 26 11 26 26 11 26 26 11 26 26 11 26 26 +26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 +26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 +26 26 11 26 26 11 26 26 27 26 26 11 26 26 11 26 26 +26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 +26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 +26 26 11 26 26 11 26 26 11 26 26 11 26 26 11 26 26 +26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 +26 26 26 11 26 26 26 26 26 26 26 26 26 11 26 26 26 +26 26 26 26 26 11 26 26 11 26 26 11 26 26 26 26 26 +26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 +26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assembly/plots.xml b/assembly/plots.xml new file mode 100644 index 0000000..bd893d4 --- /dev/null +++ b/assembly/plots.xml @@ -0,0 +1,23 @@ + + + + 0.0 0.0 195.0 + 21.41728 21.41728 + 1000 1000 + + + + + + + + + + + + + + + + + diff --git a/assembly/tallies.xml b/assembly/tallies.xml index ebefd39..dec4dcb 100644 --- a/assembly/tallies.xml +++ b/assembly/tallies.xml @@ -16,28 +16,28 @@ absorption fission - + total flux tracklength - + O16 O17 U234 U235 U238 total nu-fission tracklength - + total flux analog - + O16 O17 U234 U235 U238 @@ -45,14 +45,14 @@ analog - + O16 O17 U234 U235 U238 nu-fission analog - + O16 O17 U234 U235 U238 nu-fission diff --git a/pin-cell/build-xml.py b/pin-cell/build-xml.py index a087815..383fac4 100644 --- a/pin-cell/build-xml.py +++ b/pin-cell/build-xml.py @@ -107,6 +107,28 @@ settings_file.sourcepoint_write = False settings_file.export_to_xml() +#### Create OpenMC "plots.xml" file + +# Initialize the BEAVRS color mapping scheme +beavrs.write_openmc_plots() + +# Create a plot colored by materials +plot = openmc.Plot() +bounds = pin_geometry.bounds +plot.width = [pin_geometry.max_x - pin_geometry.min_x, + pin_geometry.max_y - pin_geometry.min_y] +plot.origin = [bounds[0] + (bounds[3] - bounds[0]) / 2., + bounds[1] + (bounds[4] - bounds[1]) / 2., + bounds[2] + (bounds[5] - bounds[2]) / 2.] +plot.color = 'mat' +plot.filename = 'fuel-pin' +plot.col_spec = beavrs.plots.colspec_mat +plot.pixels = [1000, 1000] + +plot_file = openmc.Plots([plot]) +plot_file.export_to_xml() + + #### Create OpenMC MGXS library and "tallies.xml" file # CASMO 70-group structure diff --git a/pin-cell/geometry.xml b/pin-cell/geometry.xml index 9485d2c..02ef97a 100644 --- a/pin-cell/geometry.xml +++ b/pin-cell/geometry.xml @@ -1,15 +1,15 @@ - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/pin-cell/plots.xml b/pin-cell/plots.xml new file mode 100644 index 0000000..48e423b --- /dev/null +++ b/pin-cell/plots.xml @@ -0,0 +1,23 @@ + + + + 0.0 0.0 inf + 1.25984 1.25984 + 1000 1000 + + + + + + + + + + + + + + + + +