I’m currently trying to create a Rectlattice
of vertically stacked grooved fuel plates for a grooved ring fuel element using the following code:
collat = openmc.RectLattice()
collat.lower_left = (0, 0, -height+h+tplate)
collat.pitch = (100, 100, h+tplate)
collat.universes = [[[groovedRing]]]*rings
fuelColumnRegion = -reactorTop & +reactorBot & -fuelCylOuter & +fuelCylInner
collat.outer = openmc.Universe(cells=[openmc.Cell(fill=None)])
fuelColumn = openmc.Cell(fill=collat, region=fuelColumnRegion)
groovedRing
is a universe containing the cells composing the grooved ring with its origin in the centre of the top surface. The problem with this current code is that it appears to produce nothing, as in when I plot a slice of a universe containing fuelColumn
I only see void. I was unable to set the x and y grid pitch to 0, so I set them to 100 so they would be outside of fuelColumnRegion
, which only has an outer diameter of 5 and an inner diameter of 1.2.
I think the problem lies in how I’m filling the lattice with collat.universes = [[[groovedRing]]]*rings
, but having looked at the documentation: usersguide/geometry/rectangular-lattices, I can’t think of another way to fill only the z axis above bottom_left.