Hello everyone,
How do I add a water coolant channel inside the lattice definition? My current approach is as follows,
pitch1 = 3.355
pitch2 = 3.500
rect1 = openmc.model.rectangular_prism(pitch1, pitch1, boundary_type=‘transmission’)
rect2 = openmc.model.rectangular_prism(pitch2, pitch2, boundary_type=‘transmission’)
water_in = openmc.Cell(name= ‘WATER INSIDE’, fill= water, region= rect1)
water_clad = openmc.Cell(name= ‘CLAD’, fill= zirconium, region= ~rect1 & rect2)
water_out = openmc.Cell(name= ‘WATER OUTSIDE’, fill= water, region= ~rect2)
water_box = openmc.Universe(cells= [water_in, water_clad, water_out])
pin_pitch = 1.295
lattice = openmc.RectLattice()
lattice.lower_left = [-6.475,-6.475]
lattice.pitch = [pin_pitch, pin_pitch]
one = [mox_low_pin]*10
two = [mox_low_pin]*10
three = [mox_low_pin]*10
four = [mox_low_pin]*10
five = [mox_low_pin]*4 + [water_box] + [mox_low_pin]*3
insix = [mox_low_pin]*4 + [mox_low_pin]*3
inseven = [mox_low_pin]*4 + [mox_low_pin]*3
eight = [mox_low_pin]*10
nine = [mox_low_pin]*10
ten = [mox_low_pin]*10
lattice.universes = [one, two, three, four, five, six, seven, eight, nine, ten]
lattice.outer = water_uni
Now If I try to plot it, I’m getting following error message
IndexError: tuple index out of range
How do I solve this problem and model the water channel?
Thanks