Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set restart level to root in batchwise scheme after material critical… #18

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions openmc/deplete/batchwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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