Skip to content

Commit

Permalink
reduce region complexities in openmc model
Browse files Browse the repository at this point in the history
  • Loading branch information
yardasol committed Oct 18, 2022
1 parent 452f06d commit aaae55f
Show file tree
Hide file tree
Showing 5 changed files with 6,593 additions and 226 deletions.
75 changes: 63 additions & 12 deletions examples/msbr/_control_rods.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@
def shared_cr_geometry():
fuel_hole = openmc.ZCylinder(r=5.08, name='cr_fuel_hole')
elem_bound = openmc.rectangular_prism(7.62*2, 7.62*2) # Pin outer boundary
eb_minx, eb_maxx, eb_miny, eb_maxy = list(elem_bound.get_surfaces().values())

gr_sq_neg = openmc.rectangular_prism(7.23646*2, 7.23646*2, corner_radius=0.99) # Graphite square
# params for
(gr_minx, gr_maxx, gr_miny, gr_maxy,
gr_cyl_lb, gr_cyl_minx, gr_cyl_miny,
gr_cyl_ul, gr_cyl_maxy, gr_cyl_br,
gr_cyl_maxx, gr_cyl_ru) = list(gr_sq_neg.get_surfaces().values())

r_d = 1.16
e_d = 2 * r_d / np.sqrt(3)
r_dt = 0.8
Expand All @@ -23,33 +29,78 @@ def shared_cr_geometry():
ru_t = openmc.ZCylinder(-l3, l1, r_dt, name='corner_ru_tip')
lb_t = openmc.ZCylinder(l3, -l1, r_dt, name='corner_lb_tip')

gr_corners = elem_bound & (ul | br | lb | ru |
-ul_t | -br_t | -ru_t | -lb_t)
gr_ul = ul & -eb_maxy & +gr_maxy
gr_ul_fill = ul & +gr_cyl_ul & -gr_maxy & -gr_cyl_minx & +gr_cyl_maxy
gr_br = br & +eb_miny & -gr_miny
gr_br_fill = br & +gr_cyl_br & +gr_miny & +gr_cyl_maxx & -gr_cyl_miny
gr_lb = lb & +eb_minx & -gr_minx
gr_lb_fill = lb & +gr_cyl_lb & +gr_minx & -gr_cyl_minx & -gr_cyl_miny
gr_ru = ru & -eb_maxx & +gr_maxx
gr_ru_fill = ru & +gr_cyl_ru & -gr_maxx & +gr_cyl_maxx & +gr_cyl_maxy

gr_ul_t = -ul_t & +eb_miny & -gr_miny
gr_br_t = -br_t & -eb_maxy & +gr_maxy
gr_ru_t = -ru_t & +eb_minx & -gr_minx
gr_lb_t = -lb_t & -eb_maxx & +gr_maxx

gr_corners = (gr_ul, gr_br, gr_lb, gr_ru, gr_ul_fill, gr_br_fill, gr_lb_fill, gr_ru_fill)
gr_t = (gr_ul_t, gr_br_t, gr_ru_t, gr_lb_t)

inter_elem_channel = (~gr_sq_neg & elem_bound &
~ul & ~br & ~lb & ~ru &
+ul_t & +ru_t & +ru_t & +lb_t)
+ul_t & +br_t & +ru_t & +lb_t)


return fuel_hole, gr_sq_neg, gr_corners, inter_elem_channel
return fuel_hole, gr_sq_neg, gr_corners, gr_t, inter_elem_channel

def control_rod(fuel_hole, gr_sq_neg, gr_corners, inter_elem_channel, fuel, moder):
def control_rod(fuel_hole, gr_sq_neg, gr_corners, gr_t, inter_elem_channel, fuel, moder):
s1 = openmc.ZCylinder(r=4.7625, name='control_rod')

c1 = openmc.Cell(fill=moder, region=-s1, name='control_rod')
c2 = openmc.Cell(fill=fuel, region=(+s1 & -fuel_hole), name='cr_fuel_inner')
moderator_block = openmc.Cell(fill=moder, region=(+fuel_hole & gr_sq_neg | gr_corners), name='cr_moderator')
fuel_outer = openmc.Cell(fill=fuel, region=inter_elem_channel, name='cr_fuel_outer')
c3 = openmc.Cell(fill=moder, region=(+fuel_hole & gr_sq_neg), name='cr_moderator')
c4 = openmc.Cell(fill=fuel, region=inter_elem_channel, name='cr_fuel_outer')

c3_ul = openmc.Cell(fill=moder, region=gr_corners[0], name='cr_moderator_ul')
c3_br = openmc.Cell(fill=moder, region=gr_corners[1], name='cr_moderator_br')
c3_ru = openmc.Cell(fill=moder, region=gr_corners[2], name='cr_moderator_ru')
c3_lb = openmc.Cell(fill=moder, region=gr_corners[3], name='cr_moderator_lb')
c3_ulf = openmc.Cell(fill=moder, region=gr_corners[4], name='cr_moderator_ul_fill')
c3_brf = openmc.Cell(fill=moder, region=gr_corners[5], name='cr_moderator_br_fill')
c3_ruf = openmc.Cell(fill=moder, region=gr_corners[6], name='cr_moderator_ru_fill')
c3_lbf = openmc.Cell(fill=moder, region=gr_corners[7], name='cr_moderator_lb_fill')
c3_ul_t = openmc.Cell(fill=moder, region=gr_t[0], name='cr_moderator_ul_t')
c3_br_t = openmc.Cell(fill=moder, region=gr_t[1], name='cr_moderator_br_t')
c3_ru_t = openmc.Cell(fill=moder, region=gr_t[2], name='cr_moderator_ru_t')
c3_lb_t = openmc.Cell(fill=moder, region=gr_t[3], name='cr_moderator_lb_t')


#universe_id=3
cr = openmc.Universe(name='control_rod')
cr.add_cells([c1, c2, moderator_block, fuel_outer])
cr.add_cells([c1, c2, c3, c4, c3_ul, c3_br, c3_ru, c3_lb, c3_ulf, c3_brf, c3_ruf, c3_lbf, c3_ul_t, c3_br_t, c3_ru_t, c3_lb_t])

return cr

def control_rod_channel(fuel_hole, gr_sq_neg, gr_corners, inter_elem_channel, fuel, moder):
def control_rod_channel(fuel_hole, gr_sq_neg, gr_corners, gr_t, inter_elem_channel, fuel, moder):
c1 = openmc.Cell(fill=fuel, region=(-fuel_hole), name='crc_fuel_inner')
moderator_block = openmc.Cell(fill=moder, region=(+fuel_hole & gr_sq_neg | gr_corners), name='crc_moderator')
fuel_outer = openmc.Cell(fill=fuel, region=inter_elem_channel, name='crc_fuel_outer')
c2 = openmc.Cell(fill=moder, region=(+fuel_hole & gr_sq_neg), name='crc_moderator')
c3 = openmc.Cell(fill=fuel, region=inter_elem_channel, name='crc_fuel_outer')

c2_ul = openmc.Cell(fill=moder, region=gr_corners[0], name='crc_moderator_ul')
c2_br = openmc.Cell(fill=moder, region=gr_corners[1], name='crc_moderator_br')
c2_ru = openmc.Cell(fill=moder, region=gr_corners[2], name='crc_moderator_ru')
c2_lb = openmc.Cell(fill=moder, region=gr_corners[3], name='crc_moderator_lb')
c2_ulf = openmc.Cell(fill=moder, region=gr_corners[4], name='crc_moderator_ul_fill')
c2_brf = openmc.Cell(fill=moder, region=gr_corners[5], name='crc_moderator_br_fill')
c2_ruf = openmc.Cell(fill=moder, region=gr_corners[6], name='crc_moderator_ru_fill')
c2_lbf = openmc.Cell(fill=moder, region=gr_corners[7], name='crc_moderator_lb_fill')
c2_ul_t = openmc.Cell(fill=moder, region=gr_t[0], name='crc_moderator_ul_t')
c2_br_t = openmc.Cell(fill=moder, region=gr_t[1], name='crc_moderator_br_t')
c2_ru_t = openmc.Cell(fill=moder, region=gr_t[2], name='crc_moderator_ru_t')
c2_lb_t = openmc.Cell(fill=moder, region=gr_t[3], name='crc_moderator_lb_t')

# universe_id=4
crc = openmc.Universe(name='control_rod_channel')
crc.add_cells([c1, moderator_block, fuel_outer])
crc.add_cells([c1, c2, c3, c2_ul, c2_br, c2_ru, c2_lb, c2_ulf, c2_brf, c2_ruf, c2_lbf, c2_ul_t, c2_br_t, c2_ru_t, c2_lb_t])

return crc
134 changes: 111 additions & 23 deletions examples/msbr/_core_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,25 @@ def _bound_zone_cells(cells_tuples, levels):
"""Helper function that moves Zone IA and Zone IIA cells to the
appropriate height."""
cell_list = []
n_levels = len(cells_tuples)
for i, cells in enumerate(cells_tuples):
lower_bound = levels[i]
upper_bound = levels[i+1]
if i == 0:
lower_bound = None
upper_bound = levels[i]
elif i == n_levels - 1:
lower_bound = levels[i-1]
upper_bound = None
else:
lower_bound = levels[i-1]
upper_bound = levels[i]

for j, cell in enumerate(cells):
cell.region = cell.region & +lower_bound & -upper_bound
if lower_bound is None:
cell.region = cell.region & -upper_bound
elif upper_bound is None:
cell.region = cell.region & +lower_bound
else:
cell.region = cell.region & +lower_bound & -upper_bound
cell_list.append(cell)
return cell_list

Expand All @@ -18,8 +32,13 @@ def shared_elem_geometry():
Specs found in Robertson, 1971 Fig 3.4 (p. 17) and Fig 3.5 (p.18)"""

elem_bound = openmc.rectangular_prism(5.08*2, 5.08*2) # Pin outer boundary
eb_minx, eb_maxx, eb_miny, eb_maxy = list(elem_bound.get_surfaces().values())

gr_sq_neg = openmc.rectangular_prism(4.953*2, 4.953*2, corner_radius=0.46) # Graphite square
(gr_minx, gr_maxx, gr_miny, gr_maxy,
gr_cyl_lb, gr_cyl_minx, gr_cyl_miny,
gr_cyl_ul, gr_cyl_maxy, gr_cyl_br,
gr_cyl_maxx, gr_cyl_ru) = list(gr_sq_neg.get_surfaces().values())

# params for main pin section for both I-A and II-A
r_d = 0.66802
Expand All @@ -35,19 +54,34 @@ def shared_elem_geometry():
ru_t = openmc.ZCylinder(-l3, l1, r_d, name='corner_ru_tip')
lb_t = openmc.ZCylinder(l3, -l1, r_d, name='corner_lb_tip')

gr_corners = elem_bound & (-ul | -br | -lb | -ru |
-ul_t | -br_t | -ru_t | -lb_t)
gr_ul = -ul & -eb_maxy & +gr_maxy# |
gr_ul_fill = -ul & +gr_cyl_ul & -gr_maxy & -gr_cyl_minx & +gr_cyl_maxy
gr_br = -br & +eb_miny & -gr_miny# |
gr_br_fill = -br & +gr_cyl_br & +gr_miny & +gr_cyl_maxx & -gr_cyl_miny
gr_lb = -lb & +eb_minx & -gr_minx# |
gr_lb_fill = -lb & +gr_cyl_lb & +gr_minx & -gr_cyl_minx & -gr_cyl_miny
gr_ru = -ru & -eb_maxx & +gr_maxx# |
gr_ru_fill = -ru & +gr_cyl_ru & -gr_maxx & +gr_cyl_maxx & +gr_cyl_maxy

gr_ul_t = -ul_t & +eb_miny & -gr_miny
gr_br_t = -br_t & -eb_maxy & +gr_maxy
gr_ru_t = -ru_t & +eb_minx & -gr_minx
gr_lb_t = -lb_t & -eb_maxx & +gr_maxx

gr_corners = (gr_ul, gr_br, gr_lb, gr_ru, gr_ul_fill, gr_br_fill, gr_lb_fill, gr_ru_fill)
gr_t = (gr_ul_t, gr_br_t, gr_ru_t, gr_lb_t)

inter_elem_channel = (~gr_sq_neg & elem_bound &
+ul & +br & +lb & +ru &
+ul_t & +ru_t & +ru_t & +lb_t)
+ul & +br & +lb & +ru &
+ul_t & +br_t & +ru_t & +lb_t)

gr_round_4 = openmc.ZCylinder(r=2.2225, name='gr_round_4')

return elem_bound, gr_corners, gr_sq_neg, inter_elem_channel, gr_round_4
return elem_bound, gr_sq_neg, gr_corners, gr_t, inter_elem_channel, gr_round_4

def zoneIA(elem_bound, gr_corners, gr_sq_neg, inter_elem_channel, gr_round_4, moder, fuel, hast):
def zoneIA(elem_bound, gr_sq_neg, gr_corners, gr_t, inter_elem_channel, gr_round_4, moder, fuel, hast):
"""Zone IA element. Specs found in Robertson, 1971 Fig 3.4 (p. 17)"""
elem_levels = [0.0, 22.86, 419.10, 438.15, 445.135, 449.58]
elem_levels = [22.86, 419.10, 438.15, 445.135]
level_bounds = []
for level in elem_levels:
level_bounds.append(openmc.ZPlane(z0=level))
Expand All @@ -57,21 +91,37 @@ def zoneIA(elem_bound, gr_corners, gr_sq_neg, inter_elem_channel, gr_round_4, mo
h = 12.66
theta = np.arctan(4.953 / h)
r2 = (1 / np.cos(theta))**2 - 1
s3 = openmc.ZCone(z0=h + elem_levels[3], r2=r2, name='cone_i')
s3 = openmc.ZCone(z0=h + elem_levels[2], r2=r2, name='cone_i')

c1 = openmc.Cell(fill=fuel, region=(-s2), name='ia_fuel_inner_1')
c2 = openmc.Cell(fill=moder, region=(+s2 & -s1), name='ia_moderator_1')
c3 = openmc.Cell(fill=fuel, region=(+s1 & elem_bound), name='ia_fuel_outer_1')
ia1 = (c1, c2, c3)

# I-A main (lower 2)
s2 = s2.clone()
gr_sq_neg = gr_sq_neg.clone()
c4 = c1.clone(clone_materials=False)
c4.name = 'ia_fuel_inner_main'
c5 = openmc.Cell(fill=moder, region=(+s2 &
gr_sq_neg |
gr_corners), name='ia_moderator_main')
c5 = openmc.Cell(fill=moder, region=(+s2 & gr_sq_neg), name='ia_moderator_main')
c6 = openmc.Cell(fill=fuel, region=(inter_elem_channel), name='ia_fuel_outer_main')
iam = (c4, c5, c6)
c5_ul = openmc.Cell(fill=moder, region=gr_corners[0], name='ia_moderator_main_ul')
c5_br = openmc.Cell(fill=moder, region=gr_corners[1], name='ia_moderator_main_br')
c5_ru = openmc.Cell(fill=moder, region=gr_corners[2], name='ia_moderator_main_ru')
c5_lb = openmc.Cell(fill=moder, region=gr_corners[3], name='ia_moderator_main_lb')
c5_ulf = openmc.Cell(fill=moder, region=gr_corners[4], name='ia_moderator_main_ul_fill')
c5_brf = openmc.Cell(fill=moder, region=gr_corners[5], name='ia_moderator_main_br_fill')
c5_ruf = openmc.Cell(fill=moder, region=gr_corners[6], name='ia_moderator_main_ru_fill')
c5_lbf = openmc.Cell(fill=moder, region=gr_corners[7], name='ia_moderator_main_lb_fill')
c5_ul_t = openmc.Cell(fill=moder, region=gr_t[0], name='ia_moderator_main_ul_t')
c5_br_t = openmc.Cell(fill=moder, region=gr_t[1], name='ia_moderator_main_br_t')
c5_ru_t = openmc.Cell(fill=moder, region=gr_t[2], name='ia_moderator_main_ru_t')
c5_lb_t = openmc.Cell(fill=moder, region=gr_t[3], name='ia_moderator_main_lb_t')

iam = (c4, c5, c6,
c5_ul, c5_br, c5_ru, c5_lb,
c5_ulf, c5_brf, c5_ruf, c5_lbf,
c5_ul_t, c5_br_t, c5_ru_t, c5_lb_t)

# I-A 2 (upper 1)
c7 = c1.clone(clone_materials=False)
Expand All @@ -82,14 +132,19 @@ def zoneIA(elem_bound, gr_corners, gr_sq_neg, inter_elem_channel, gr_round_4, mo
c9.name = 'ia_fuel_outer_2'
ia2 = (c7, c8, c9)

# I-A 3 (upper 2)
# I-A 3 (upper 2)'
s2 = s2.clone()
s3 = s3.clone()
elem_bound = elem_bound.clone()
c10 = c1.clone(clone_materials=False)
c10.name = 'ia_fuel_inner_3'
c11 = openmc.Cell(fill=moder, region=(+s2 & -s3), name='ia_moderator_3')
c12 = openmc.Cell(fill=fuel, region=(+s3 & elem_bound), name='ia_fuel_outer_3')
ia3 = (c10, c11, c12)

# I-A 4 (upper 3)
s2 = s2.clone()
elem_bound = elem_bound.clone()
c13 = openmc.Cell(fill=hast, region=(-s2), name='ia_hast')
c14 = openmc.Cell(fill=moder, region=(+s2 & -gr_round_4), name='ia_moderator_4')
c15 = openmc.Cell(fill=fuel, region=(+gr_round_4 & elem_bound), name='ia_fuel_outer_4')
Expand All @@ -101,9 +156,9 @@ def zoneIA(elem_bound, gr_corners, gr_sq_neg, inter_elem_channel, gr_round_4, mo
ia.add_cells(_bound_zone_cells(elem_cells, level_bounds))
return ia

def zoneIIA(elem_bound, gr_corners, gr_sq_neg, inter_elem_channel, gr_round_4, moder, fuel):
def zoneIIA(elem_bound, gr_sq_neg, gr_corners, gr_t, inter_elem_channel, gr_round_4, moder, fuel):
"""Zone IIA element. Specs found in Robertson, 1971 Fig 3.5 (p. 18)"""
elem_levels = [0.0, 434.34, 436.88, 439.42, 441.96, 449.58]
elem_levels = [434.34, 436.88, 439.42, 441.96]
level_bounds = []
for level in elem_levels:
level_bounds.append(openmc.ZPlane(z0=level))
Expand All @@ -113,45 +168,76 @@ def zoneIIA(elem_bound, gr_corners, gr_sq_neg, inter_elem_channel, gr_round_4, m
h = 6.5
theta = np.arctan(3.65125 / h)
r2 = (1 / np.cos(theta))**2 - 1
s4 = openmc.ZCone(z0=h + elem_levels[3], r2=r2, name='cone_ii')
s4 = openmc.ZCone(z0=h + elem_levels[2], r2=r2, name='cone_ii')

# II-A main (lower 1)
c1 = openmc.Cell(fill=fuel, region=(-s1), name='iia_fuel_inner_main')
c2 = openmc.Cell(fill=moder, region=(+s1 & gr_sq_neg | gr_corners), name='iia_moderator_main')
c2 = openmc.Cell(fill=moder, region=(+s1 & gr_sq_neg), name='iia_moderator_main')
c3 = openmc.Cell(fill=fuel, region=(inter_elem_channel), name='iia_fuel_outer_main')
c3.name = 'iia_fuel_outer_main'
iiam = (c1, c2, c3)
c2_ul = openmc.Cell(fill=moder, region=gr_corners[0], name='iia_moderator_main_ul')
c2_br = openmc.Cell(fill=moder, region=gr_corners[1], name='iia_moderator_main_br')
c2_ru = openmc.Cell(fill=moder, region=gr_corners[2], name='iia_moderator_main_ru')
c2_lb = openmc.Cell(fill=moder, region=gr_corners[3], name='iia_moderator_main_lb')
c2_ulf = openmc.Cell(fill=moder, region=gr_corners[4], name='iia_moderator_main_ul_fill')
c2_brf = openmc.Cell(fill=moder, region=gr_corners[5], name='iia_moderator_main_br_fill')
c2_ruf = openmc.Cell(fill=moder, region=gr_corners[6], name='iia_moderator_main_ru_fill')
c2_lbf = openmc.Cell(fill=moder, region=gr_corners[7], name='iia_moderator_main_lb_fill')
c2_ul_t = openmc.Cell(fill=moder, region=gr_t[0], name='iia_moderator_main_ul_t')
c2_br_t = openmc.Cell(fill=moder, region=gr_t[1], name='iia_moderator_main_br_t')
c2_ru_t = openmc.Cell(fill=moder, region=gr_t[2], name='iia_moderator_main_ru_t')
c2_lb_t = openmc.Cell(fill=moder, region=gr_t[3], name='iia_moderator_main_lb_t')
iiam = (c1, c2, c3, c2_ul, c2_br, c2_ru, c2_lb, c2_ulf, c2_brf, c2_ruf, c2_lbf, c2_ul_t, c2_br_t, c2_ru_t, c2_lb_t)

# II-A 2 (upper 1)
gr_sq_neg = gr_sq_neg.clone()
c4 = openmc.Cell(fill=fuel, region=(-s2), name='iia_fuel_inner_2')
c5 = openmc.Cell(fill=moder, region=(+s2 & gr_sq_neg | gr_corners), name='iia_moderator_2')
c5 = openmc.Cell(fill=moder, region=(+s2 & gr_sq_neg), name='iia_moderator_2')
c6 = c3.clone(clone_materials=False)
c6.name = 'iia_fuel_outer_2'
iia2 = (c4, c5, c6)
c5_ul = openmc.Cell(fill=moder, region=gr_corners[0], name='iia_moderator_2_ul')
c5_br = openmc.Cell(fill=moder, region=gr_corners[1], name='iia_moderator_2_br')
c5_ru = openmc.Cell(fill=moder, region=gr_corners[2], name='iia_moderator_2_ru')
c5_lb = openmc.Cell(fill=moder, region=gr_corners[3], name='iia_moderator_2_lb')
c5_ulf = openmc.Cell(fill=moder, region=gr_corners[4], name='iia_moderator_2_ul_fill')
c5_brf = openmc.Cell(fill=moder, region=gr_corners[5], name='iia_moderator_2_br_fill')
c5_ruf = openmc.Cell(fill=moder, region=gr_corners[6], name='iia_moderator_2_ru_fill')
c5_lbf = openmc.Cell(fill=moder, region=gr_corners[7], name='iia_moderator_2_lb_fill')
c5_ul_t = openmc.Cell(fill=moder, region=gr_t[0], name='iia_moderator_2_ul_t')
c5_br_t = openmc.Cell(fill=moder, region=gr_t[1], name='iia_moderator_2_br_t')
c5_ru_t = openmc.Cell(fill=moder, region=gr_t[2], name='iia_moderator_2_ru_t')
c5_lb_t = openmc.Cell(fill=moder, region=gr_t[3], name='iia_moderator_2_lb_t')
iia2 = (c4, c5, c6, c5_ul, c5_br, c5_ru, c5_lb, c5_ulf, c5_brf, c5_ruf, c5_lbf, c5_ul_t, c5_br_t, c5_ru_t, c5_lb_t)

# II-A 3 (upper 2)
s2 = s2.clone()
elem_bound = elem_bound.clone()
c7 = c4.clone(clone_materials=False)
c7.name = 'iia_fuel_inner_3'
c8 = openmc.Cell(fill=moder, region=(+s2 & -s3), name='iia_moderator_3')
c9 = openmc.Cell(fill=fuel, region=(+s3 & elem_bound), name='iia_fuel_outer_3')
iia3 = (c7, c8, c9)

# II-A 4 (upper 3)
elem_bound = elem_bound.clone()
c10 = openmc.Cell(fill=moder, region=(-s4), name='iia_moderator_4')
c11 = openmc.Cell(fill=fuel, region=(+s4 & elem_bound), name='iia_fuel_outer_4')
iia4 = (c10, c11)

# II-A 5 (upper 4)
elem_bound = elem_bound.clone()
c12 = openmc.Cell(fill=moder, region=(-gr_round_4), name='iia_moderator_5')
c13 = openmc.Cell(fill=fuel, region=(+gr_round_4 & elem_bound), name='iia_fuel_outer_5')
iia5 = (c12, c13)

elem_cells = [iiam, iia2, iia3, iia4, iia5]
# universe_id=2
iia = openmc.Universe(name='zone_iia')
iia.add_cells(_bound_zone_cells(elem_cells, level_bounds))
return iia

def void_cell(elem_bound):
elem_bound = elem_bound.clone()
c1 = openmc.Cell(region=elem_bound, name='lattice_void')
#universe_id=5
v = openmc.Universe(name='lattice_void')
Expand All @@ -169,7 +255,9 @@ def graphite_triangles(elem_bound, moder, fuel):
(s3, 'bottom_right')]
univs = []
for i, (s, name) in enumerate(surfs):
elem_bound = elem_bound.clone()
c1 = openmc.Cell(fill=moder, region=(-s & elem_bound))
elem_bound = elem_bound.clone()
c2 = openmc.Cell(fill=fuel, region=(+s & elem_bound))
# universe_id = 6+i
gr_tri = openmc.Universe(name=f'{name}_triangle')
Expand Down
Loading

0 comments on commit aaae55f

Please sign in to comment.