I got an error when I tried coding the reflector on fully up it said the value on ring 0 should be 30 elements but I have entered the reflector value correctly on fully up. what’s the solution?
this is my program reflector
Reflector assemblies
ref_lat = openmc.HexLattice(lattice_id=103, name=‘reflector assembly’)
ref_lat.center = (0., 0.)
ref_lat.pitch = (20.9889 / 11,)
ref_lat.orientation = ‘x’
ref_lat.outer = sodium_mod_u
ref4 = [ref_u] * 96
ref5 = [ref_u] * 90
ref6 = [ref_u] * 84
ref7 = [ref_u] * 22
ref8 = [ref_u] * 6
ref9 = [ref_u] * 1
ref_lat.universes = [ref4, ref5, ref6, ref7, ref8, ref9]
outer_ref_surface = openmc.model.hexagonal_prism(edge_length=9.3803, orientation=‘x’)
main_ref_assembly = openmc.Cell(cell_id=51, fill=ref_lat, region=-top & +bottom)
out_ref_assembly = openmc.Cell(cell_id=52, fill=sodium, region=~outer_ref_surface & -top & +bottom)
main_ref_u = openmc.Universe(universe_id=11, cells=[main_ref_assembly, ])
Core lattice
core_lat = openmc.HexLattice(lattice_id=106, name=‘core’)
core_lat.center = (0., 0.)
duct_thickness = 0.4525
subassembly_duct = 20.9889
pitch = subassembly_duct - (2 * duct_thickness)
core_lat.orientation = ‘y’
core_lat.pitch = (pitch,)
core_lat.outer = sodium_mod_u
Fully up
out_zero = 2 * [sodium_mod_u] + [main_ref_u] * 50 + [3 * [sodium_mod_u]] * 5 + [main_ref_u] * 28 + [sodium_mod_u]
out_one = [main_ref_u] * 45 + [main_ref_u] * 45
out_two = [main_ref_u] * 84
out_three = [main_ref_u] * 22
out_four = [main_ref_u] * 6
in_zero = [main_ref_u] * 3 + [main_out_u] * 33 + [main_out_u] * 33 + [main_ref_u] * 3
in_one = [main_ref_u] + [main_out_u] * 65
in_two = [main_in_u] * 22 + [main_out_u] * 8 + [main_in_u] * 22 + [main_out_u] * 8
in_three = ([main_in_u] * 2 + [main_in_u] * 2) * 26
in_four = [main_in_u] * 48
in_five = [main_in_u] * 7 + [main_in_u] * 7 + [main_in_u] * 7 + [main_in_u] * 7 + [main_in_u] * 7 + [main_in_u] * 7
in_six = [main_in_u] * 6 + [main_in_u] * 12 + [main_in_u] * 18
in_seven = [main_in_u] * 30
in_eight = [main_in_u] * 8 + [main_in_u] * 8 + [main_in_u] * 8
in_nine = [main_in_u] * 18
in_ten = [main_in_u] * 4 + + [main_in_u] * 4 + [main_in_u] * 4
in_eleven = [main_in_u] * 6
in_twelve = [main_in_u] * 1
core_lat.universes = [out_zero,out_one,out_two,out_three,in_one,in_two,in_three,in_four,in_five,in_six,in_seven,in_eight,in_nine,in_ten,in_eleven,in_twelve]