Skip to content

Commit e7f5077

Browse files
committed
Add test for TRCL on cell fill
1 parent 5f767e5 commit e7f5077

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

tests/test_geometry.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,25 @@ def test_trcl(cell_card, surface_cards, points_inside, points_outside):
133133

134134
for point in points_outside:
135135
assert point not in cell.region
136+
137+
138+
def test_trcl_fill():
139+
mcnp_str = dedent("""
140+
title
141+
1 0 -1 FILL=10 TRCL=(2.0 0.0 0.0)
142+
2 0 -2 U=10
143+
3 0 +2 U=10
144+
145+
1 so 10.0
146+
2 so 1.0
147+
148+
m1 1001.80c 1.0
149+
""")
150+
model = mcnp_str_to_model(mcnp_str)
151+
geometry = model.geometry
152+
cells = geometry.get_all_cells()
153+
154+
# Make sure that the cells in universe 10 were shifted
155+
assert geometry.find((2.0, 0.0, 0.0))[-1] is cells[2]
156+
assert geometry.find((4.0, 0.0, 0.0))[-1] is cells[3]
157+
assert geometry.find((0.0, 0.0, 0.0))[-1] is cells[3]

0 commit comments

Comments
 (0)