From 7d9ba8524b296ab2b92baf30452fbd4fa546db5b Mon Sep 17 00:00:00 2001 From: onufer <50242044+onufer@users.noreply.github.com> Date: Sat, 11 Jun 2022 15:41:31 -0700 Subject: [PATCH 1/2] update getPinToDuctGap to ignore holedHex The current code cannot handle it since it has no ip --- armi/reactor/blocks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/armi/reactor/blocks.py b/armi/reactor/blocks.py index a2956f9a89..ed7dc25df6 100644 --- a/armi/reactor/blocks.py +++ b/armi/reactor/blocks.py @@ -1849,6 +1849,10 @@ def getPinToDuctGap(self, cold=False): # getPinCenterFlatToFlat only works for hexes # inner most duct might be circle or some other shape duct = None + elif not isinstance(duct, components.HoledHexagon): + # has no ip and is circular on inside so following + # code will not work + duct = None clad = self.getComponent(Flags.CLAD) if any(c is None for c in (duct, wire, clad)): return None From b6a5ce3ad4eeef66ecfcdef654f5cbc6ea17bca0 Mon Sep 17 00:00:00 2001 From: onufer <50242044+onufer@users.noreply.github.com> Date: Mon, 13 Jun 2022 13:10:05 -0700 Subject: [PATCH 2/2] Update blocks.py --- armi/reactor/blocks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armi/reactor/blocks.py b/armi/reactor/blocks.py index ed7dc25df6..2345c9b6e9 100644 --- a/armi/reactor/blocks.py +++ b/armi/reactor/blocks.py @@ -1849,7 +1849,7 @@ def getPinToDuctGap(self, cold=False): # getPinCenterFlatToFlat only works for hexes # inner most duct might be circle or some other shape duct = None - elif not isinstance(duct, components.HoledHexagon): + elif isinstance(duct, components.HoledHexagon): # has no ip and is circular on inside so following # code will not work duct = None