Loading SubKit/build/SquareLatticeLWR_Nodal.py +2 −4 Original line number Diff line number Diff line Loading @@ -1098,10 +1098,8 @@ class SquareLatticeLWR_Nodal(CoreBuilder.Core): obj_rod = me.model.solidObjects[rodID] rod_xy[rodID] = (obj_rod.x, obj_rod.y) unique_xy = np.unique(np.asarray(rod_xy.values()), axis=0) # guide tubes are offset from heated rods in nodal mesh if me.modelGuideTubes: assert unique_xy.size == 4 * 2 if not me.modelGuideTubes: assert unique_xy.size == 4 # 4 pairs of unique (x,y) coords must be present assert unique_xy.size == 4 * 2 centroid_xy = np.average(unique_xy, axis=0) for rodID in rods: Loading tests/nodal_p7_pow3d/buildDeck.py +1 −1 Original line number Diff line number Diff line Loading @@ -248,7 +248,7 @@ def main(power_3d_flag=1): builder = SquareLatticeLWR_Nodal(model, coreMap, pwr17x17, pitch, dz, solidGeoms, assemPitch=assemPitch, baffleGap=baffleGap, assemLosses=formLoss, assemLossLevels=gridLevels, rodDomains=rodDomains, modelGuideTubes=True, setCoreMaps=True) rodDomains=rodDomains, modelGuideTubes=False, setCoreMaps=True) # Run to 1 second to let the solution reach steady state model.addTransientGroup(tEnd=1.0) Loading Loading
SubKit/build/SquareLatticeLWR_Nodal.py +2 −4 Original line number Diff line number Diff line Loading @@ -1098,10 +1098,8 @@ class SquareLatticeLWR_Nodal(CoreBuilder.Core): obj_rod = me.model.solidObjects[rodID] rod_xy[rodID] = (obj_rod.x, obj_rod.y) unique_xy = np.unique(np.asarray(rod_xy.values()), axis=0) # guide tubes are offset from heated rods in nodal mesh if me.modelGuideTubes: assert unique_xy.size == 4 * 2 if not me.modelGuideTubes: assert unique_xy.size == 4 # 4 pairs of unique (x,y) coords must be present assert unique_xy.size == 4 * 2 centroid_xy = np.average(unique_xy, axis=0) for rodID in rods: Loading
tests/nodal_p7_pow3d/buildDeck.py +1 −1 Original line number Diff line number Diff line Loading @@ -248,7 +248,7 @@ def main(power_3d_flag=1): builder = SquareLatticeLWR_Nodal(model, coreMap, pwr17x17, pitch, dz, solidGeoms, assemPitch=assemPitch, baffleGap=baffleGap, assemLosses=formLoss, assemLossLevels=gridLevels, rodDomains=rodDomains, modelGuideTubes=True, setCoreMaps=True) rodDomains=rodDomains, modelGuideTubes=False, setCoreMaps=True) # Run to 1 second to let the solution reach steady state model.addTransientGroup(tEnd=1.0) Loading