From a0a07e2550a82f2a69d5ec2b5760bf150808df73 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Tue, 13 Oct 2015 11:13:20 -0400 Subject: [PATCH 1/6] Fixed bug with triggers on tallies with multiple filters. Fixed bug when using triggers with tally score moments --- openmc/trigger.py | 15 +++++++++++++++ src/trigger.F90 | 23 +---------------------- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/openmc/trigger.py b/openmc/trigger.py index e695defde..0652834b8 100644 --- a/openmc/trigger.py +++ b/openmc/trigger.py @@ -1,6 +1,7 @@ from numbers import Real from xml.etree import ElementTree as ET import sys +import re from openmc.checkvalue import check_type, check_value @@ -96,6 +97,20 @@ class Trigger(object): 'it is not a string'.format(score) raise ValueError(msg) + # If this is a scattering moment, use generic moment order + regexp = re.compile(r'-[0-9]') + if regexp.search(score) is not None: + score = score.strip(regexp.findall(score)[0]) + score += '-n' + regexp = re.compile(r'-[p|P][0-9]') + if regexp.search(score) is not None: + score = score.strip(regexp.findall(score)[0]) + score += '-pn' + regexp = re.compile(r'-[y|Y][0-9]') + if regexp.search(score) is not None: + score = score.strip(regexp.findall(score)[0]) + score += '-yn' + # If the score is already in the Tally, don't add it again if score in self._scores: return diff --git a/src/trigger.F90 b/src/trigger.F90 index a74a64be0..73cb0c7ef 100644 --- a/src/trigger.F90 +++ b/src/trigger.F90 @@ -92,7 +92,6 @@ contains character(len=52), intent(inout) :: name ! "eigenvalue" or tally score integer :: i ! index in tallies array - integer :: j ! level in tally hierarchy integer :: n ! loop index for nuclides integer :: s ! loop index for triggers integer :: filter_index ! index in results array for filters @@ -167,28 +166,8 @@ contains ! Initialize bins, filter level matching_bins(1:t % n_filters) = 0 - j = 1 - ! Find filter index - FILTER_LOOP: do - find_bin: do - if (t % n_filters == 0) exit find_bin - matching_bins(j) = matching_bins(j) + 1 - if (matching_bins(j) > t % filters(j) % n_bins) then - if (j == 1) exit FILTER_LOOP - matching_bins(j) = 0 - j = j - 1 - else - if (j == t % n_filters) exit find_bin - end if - end do find_bin - - if (t % n_filters > 0) then - filter_index = sum((max(matching_bins(1:t%n_filters),1) - 1) * & - t % stride) + 1 - else - filter_index = 1 - end if + FILTER_LOOP: do filter_index = 1, t % total_filter_bins ! Initialize score index score_index = trigger % score_index From 7173431d6bae3015fe8dc20e17cf425950e01f09 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Tue, 20 Oct 2015 23:33:26 -0400 Subject: [PATCH 2/6] Fixed comment in trigger.py for scattering moment regular expressions --- openmc/trigger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/trigger.py b/openmc/trigger.py index 0652834b8..4019d5d46 100644 --- a/openmc/trigger.py +++ b/openmc/trigger.py @@ -97,7 +97,7 @@ class Trigger(object): 'it is not a string'.format(score) raise ValueError(msg) - # If this is a scattering moment, use generic moment order + # If this is a total/flux/scattering moment, use generic moment order regexp = re.compile(r'-[0-9]') if regexp.search(score) is not None: score = score.strip(regexp.findall(score)[0]) From 4089d6fb38c86179ebda9bfc6761b06d2df16454 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Sat, 24 Oct 2015 09:12:44 -0400 Subject: [PATCH 3/6] Put h5py import in Tally.sum property getter to make it an optional dependency for Python API --- openmc/tallies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/tallies.py b/openmc/tallies.py index 5b6937107..5c78b9d86 100644 --- a/openmc/tallies.py +++ b/openmc/tallies.py @@ -8,7 +8,6 @@ from xml.etree import ElementTree as ET import sys import numpy as np -import h5py from openmc import Mesh, Filter, Trigger, Nuclide from openmc.cross import CrossScore, CrossNuclide, CrossFilter @@ -269,6 +268,7 @@ class Tally(object): return None if not self._results_read: + import h5py # Open the HDF5 statepoint file f = h5py.File(self._sp_filename, 'r') From 0fa75f293bb848c81dea309272720d780a5a4ef0 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Sat, 24 Oct 2015 10:04:19 -0400 Subject: [PATCH 4/6] Updated tally trigger score name key dictionary storage per recommendation by @paulromano --- openmc/trigger.py | 14 - src/input_xml.F90 | 9 +- tests/test_score_nuscatter_yn/geometry.xml | 148 +++++++++++ tests/test_score_nuscatter_yn/inputs_test.dat | 1 + tests/test_score_nuscatter_yn/materials.xml | 246 ++++++++++++++++++ tests/test_score_nuscatter_yn/settings.xml | 13 + tests/test_score_nuscatter_yn/tallies.xml | 11 + 7 files changed, 424 insertions(+), 18 deletions(-) create mode 100644 tests/test_score_nuscatter_yn/geometry.xml create mode 100644 tests/test_score_nuscatter_yn/inputs_test.dat create mode 100644 tests/test_score_nuscatter_yn/materials.xml create mode 100644 tests/test_score_nuscatter_yn/settings.xml create mode 100644 tests/test_score_nuscatter_yn/tallies.xml diff --git a/openmc/trigger.py b/openmc/trigger.py index 4019d5d46..9c7c66034 100644 --- a/openmc/trigger.py +++ b/openmc/trigger.py @@ -97,20 +97,6 @@ class Trigger(object): 'it is not a string'.format(score) raise ValueError(msg) - # If this is a total/flux/scattering moment, use generic moment order - regexp = re.compile(r'-[0-9]') - if regexp.search(score) is not None: - score = score.strip(regexp.findall(score)[0]) - score += '-n' - regexp = re.compile(r'-[p|P][0-9]') - if regexp.search(score) is not None: - score = score.strip(regexp.findall(score)[0]) - score += '-pn' - regexp = re.compile(r'-[y|Y][0-9]') - if regexp.search(score) is not None: - score = score.strip(regexp.findall(score)[0]) - score += '-yn' - # If the score is already in the Tally, don't add it again if score in self._scores: return diff --git a/src/input_xml.F90 b/src/input_xml.F90 index 6d15f0d20..debe1309a 100644 --- a/src/input_xml.F90 +++ b/src/input_xml.F90 @@ -2796,6 +2796,10 @@ contains ! MOMENT_STRS(:) ! If so, check the order, store if OK, then reset the number to 'n' score_name = trim(sarray(j)) + + ! Append the score to the list of possible trigger scores + if (trigger_on) call trigger_scores % add_key(trim(score_name), j) + do imomstr = 1, size(MOMENT_STRS) if (starts_with(score_name,trim(MOMENT_STRS(imomstr)))) then n_order_pos = scan(score_name,'0123456789') @@ -3196,11 +3200,8 @@ contains end if end select - - ! Append the score to the list of possible trigger scores - if (trigger_on) call trigger_scores % add_key(trim(score_name), l) - end do + t % n_score_bins = n_scores t % n_user_score_bins = n_words diff --git a/tests/test_score_nuscatter_yn/geometry.xml b/tests/test_score_nuscatter_yn/geometry.xml new file mode 100644 index 000000000..ed66ef8e6 --- /dev/null +++ b/tests/test_score_nuscatter_yn/geometry.xml @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.26 1.26 + 17 17 + -10.71 -10.71 + +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 2 1 1 2 1 1 2 1 1 1 1 1 +1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 +1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 +1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 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 2 1 1 2 1 1 2 1 1 2 1 1 2 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 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 +1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 +1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 +1 1 1 1 1 2 1 1 2 1 1 2 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.26 1.26 + 17 17 + -10.71 -10.71 + +3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 +3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 +3 3 3 3 3 4 3 3 4 3 3 4 3 3 3 3 3 +3 3 3 4 3 3 3 3 3 3 3 3 3 4 3 3 3 +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8 8 8 8 7 7 7 +7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 +7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 +7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 +7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 +7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 +7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_nuscatter_yn/inputs_test.dat b/tests/test_score_nuscatter_yn/inputs_test.dat new file mode 100644 index 000000000..632a14403 --- /dev/null +++ b/tests/test_score_nuscatter_yn/inputs_test.dat @@ -0,0 +1 @@ +205e5cac8129797b815f0e79dad6c41a1876157ba69fcffecf67c3603dc36ded5f0168f9961d51fcb7dc7db6d732e7a3e8f82d04947aa0309df56bb8333d4bc9 \ No newline at end of file diff --git a/tests/test_score_nuscatter_yn/materials.xml b/tests/test_score_nuscatter_yn/materials.xml new file mode 100644 index 000000000..9454c0d8e --- /dev/null +++ b/tests/test_score_nuscatter_yn/materials.xml @@ -0,0 +1,246 @@ + + + 71c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_score_nuscatter_yn/settings.xml b/tests/test_score_nuscatter_yn/settings.xml new file mode 100644 index 000000000..9e514829e --- /dev/null +++ b/tests/test_score_nuscatter_yn/settings.xml @@ -0,0 +1,13 @@ + + + + 100 + 10 + 0 + + + + -160 -160 -183 160 160 183 + + + diff --git a/tests/test_score_nuscatter_yn/tallies.xml b/tests/test_score_nuscatter_yn/tallies.xml new file mode 100644 index 000000000..eeaad0829 --- /dev/null +++ b/tests/test_score_nuscatter_yn/tallies.xml @@ -0,0 +1,11 @@ + + + + + nu-scatter-0 + + + + nu-scatter-y3 + + From f44dccca26413d2a21745c8f3ee59797659e9657 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Sat, 24 Oct 2015 10:07:36 -0400 Subject: [PATCH 5/6] Removed extraneous test inputs added by last commit --- tests/test_score_nuscatter_yn/geometry.xml | 148 ----------- tests/test_score_nuscatter_yn/inputs_test.dat | 1 - tests/test_score_nuscatter_yn/materials.xml | 246 ------------------ tests/test_score_nuscatter_yn/settings.xml | 13 - tests/test_score_nuscatter_yn/tallies.xml | 11 - 5 files changed, 419 deletions(-) delete mode 100644 tests/test_score_nuscatter_yn/geometry.xml delete mode 100644 tests/test_score_nuscatter_yn/inputs_test.dat delete mode 100644 tests/test_score_nuscatter_yn/materials.xml delete mode 100644 tests/test_score_nuscatter_yn/settings.xml delete mode 100644 tests/test_score_nuscatter_yn/tallies.xml diff --git a/tests/test_score_nuscatter_yn/geometry.xml b/tests/test_score_nuscatter_yn/geometry.xml deleted file mode 100644 index ed66ef8e6..000000000 --- a/tests/test_score_nuscatter_yn/geometry.xml +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1.26 1.26 - 17 17 - -10.71 -10.71 - -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 2 1 1 2 1 1 2 1 1 1 1 1 -1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 -1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 -1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -1 1 1 1 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7 7 7 7 7 -7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 -7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 -7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 -7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 -7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 -7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 -7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 -7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 -7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 -7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 -7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 -7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 -7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 -7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 -7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 -7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 -7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 -7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 - - - - - - - - - - - - - - - - - - - diff --git a/tests/test_score_nuscatter_yn/inputs_test.dat b/tests/test_score_nuscatter_yn/inputs_test.dat deleted file mode 100644 index 632a14403..000000000 --- a/tests/test_score_nuscatter_yn/inputs_test.dat +++ /dev/null @@ -1 +0,0 @@ -205e5cac8129797b815f0e79dad6c41a1876157ba69fcffecf67c3603dc36ded5f0168f9961d51fcb7dc7db6d732e7a3e8f82d04947aa0309df56bb8333d4bc9 \ No newline at end of file diff --git a/tests/test_score_nuscatter_yn/materials.xml b/tests/test_score_nuscatter_yn/materials.xml deleted file mode 100644 index 9454c0d8e..000000000 --- a/tests/test_score_nuscatter_yn/materials.xml +++ /dev/null @@ -1,246 +0,0 @@ - - - 71c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/test_score_nuscatter_yn/settings.xml b/tests/test_score_nuscatter_yn/settings.xml deleted file mode 100644 index 9e514829e..000000000 --- a/tests/test_score_nuscatter_yn/settings.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - 100 - 10 - 0 - - - - -160 -160 -183 160 160 183 - - - diff --git a/tests/test_score_nuscatter_yn/tallies.xml b/tests/test_score_nuscatter_yn/tallies.xml deleted file mode 100644 index eeaad0829..000000000 --- a/tests/test_score_nuscatter_yn/tallies.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - nu-scatter-0 - - - - nu-scatter-y3 - - From fa9d874dff85627be942b4dd28f7e60012ecf145 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Sat, 24 Oct 2015 10:08:18 -0400 Subject: [PATCH 6/6] Removed unused import for re in trigger.py --- openmc/trigger.py | 1 - 1 file changed, 1 deletion(-) diff --git a/openmc/trigger.py b/openmc/trigger.py index 9c7c66034..e695defde 100644 --- a/openmc/trigger.py +++ b/openmc/trigger.py @@ -1,7 +1,6 @@ from numbers import Real from xml.etree import ElementTree as ET import sys -import re from openmc.checkvalue import check_type, check_value