From a9e9133ab321bb40afc9064169200b058d64e8fa Mon Sep 17 00:00:00 2001 From: church89 Date: Mon, 30 Oct 2023 16:11:10 +0100 Subject: [PATCH] set restart level to root in batchwise scheme after material criticality search --- openmc/deplete/batchwise.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/openmc/deplete/batchwise.py b/openmc/deplete/batchwise.py index 47504d36e41..82c7ce0ca29 100644 --- a/openmc/deplete/batchwise.py +++ b/openmc/deplete/batchwise.py @@ -1547,7 +1547,8 @@ def search_for_keff(self, x, step_index): # restart level and perform dilution self.bw_geom._set_cell_attrib(self.restart_level) - x, root = self.bw_mat.search_for_keff(x, step_index) + x, _ = self.bw_mat.search_for_keff(x, step_index) + root = self.restart_level #update dulution interval #if step_index == self.dilute_interval: # self.dilute_interval += self.step_interval @@ -1646,10 +1647,12 @@ def search_for_keff(self, x, step_index): """ #Start by doing a geometrical search§ x, root = self.bw_geom.search_for_keff(x, step_index) + #check if upper geometrical limit gets hit if root >= self.bw_geom.bracket_limit[1]: # Reset geometry and refuel self.bw_geom._set_cell_attrib(self.restart_level) - x,root = self.bw_mat.search_for_keff(x, step_index) - - return x,root + x,_ = self.bw_mat.search_for_keff(x, step_index) + root = self.restart_level + + return x, root