Skip to content

Commit

Permalink
fluka : tests for quadrics need AABB.
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartboogert committed Nov 19, 2023
1 parent fa1b65a commit d4015e0
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions tests/fluka/test_FlukaLoad.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ def test_FlairLoad_T020_ZEC(testdata):


def test_FlairLoad_T021_QUA(testdata):
quaAABB = {"QUA_REG": _fluka.AABB([-150.0, 100.0, 0], [150.0, 200.0, 1000.0])}
quaAABB = {
"QUA_REG": _fluka.AABB([-150.0, 100.0, 0], [150.0, 200.0, 1000.0]),
"blackhol": _fluka.AABB([-150.0, 100.0, 0], [150.0, 200.0, 1000.0]),
}
flairLoadWriteTest(testdata["fluka/021_QUA.inp"], False, False, quadricRegionAABBs=quaAABB)


Expand Down Expand Up @@ -247,7 +250,10 @@ def test_FlairLoad_T313_ZEC_transform(testdata):


def test_FlairLoad_T314_QUA_transform(testdata):
quaAABB = {"QUA_REG": _fluka.AABB([-190.0, 40.0, 0], [50.0, 200.0, 1000.0])}
quaAABB = {
"QUA_REG": _fluka.AABB([-190.0, 40.0, 0], [50.0, 200.0, 1000.0]),
"blackhol": _fluka.AABB([-190.0, 40.0, 0], [50.0, 200.0, 1000.0]),
}
flairLoadWriteTest(
testdata["fluka/314_QUA_transform.inp"],
False,
Expand All @@ -265,7 +271,10 @@ def test_FlairLoad_T321_cube_from_plas_transform(testdata):


def test_FlairLoad_T514_QUA_expansion(testdata):
quaAABB = {"QUA_REG": _fluka.AABB([-70.0, 50.0, 0], [70.0, 100.0, 500.0])}
quaAABB = {
"QUA_REG": _fluka.AABB([-70.0, 50.0, 0], [70.0, 100.0, 500.0]),
"blackhol": _fluka.AABB([-190.0, 40.0, 0], [50.0, 200.0, 1000.0]),
}
flairLoadWriteTest(
testdata["fluka/514_QUA_expansion.inp"],
False,
Expand All @@ -275,7 +284,10 @@ def test_FlairLoad_T514_QUA_expansion(testdata):


def test_FlairLoad_T514_QUA_translation(testdata):
quaAABB = {"QUA_REG": _fluka.AABB([-150.0, 100.0, -1000.0], [150.0, 200.0, 0.0])}
quaAABB = {
"QUA_REG": _fluka.AABB([-150.0, 100.0, -1000.0], [150.0, 200.0, 0.0]),
"blackhol": _fluka.AABB([-190.0, 40.0, 0], [50.0, 200.0, 1000.0]),
}
flairLoadWriteTest(
testdata["fluka/514_QUA_translation.inp"],
False,
Expand All @@ -285,7 +297,10 @@ def test_FlairLoad_T514_QUA_translation(testdata):


def test_FlairLoad_T514_QUA_rototranslation(testdata):
quaAABB = {"QUA_REG": _fluka.AABB([-190.0, 40.0, 0], [50.0, 200.0, 1000.0])}
quaAABB = {
"QUA_REG": _fluka.AABB([-190.0, 40.0, 0], [50.0, 200.0, 1000.0]),
"blackhol": _fluka.AABB([-190.0, 40.0, 0], [50.0, 200.0, 1000.0]),
}
flairLoadWriteTest(
testdata["fluka/514_QUA_rototranslation.inp"],
False,
Expand All @@ -298,6 +313,7 @@ def test_FlairLoad_T514_QUA_coplanar(testdata):
quaAABB = {
"OUTER": _fluka.AABB([-200.0, 0.0, 0.0], [200, 200, 1100]),
"INNER": _fluka.AABB([-100.0, 50.0, 250], [100.0, 150.0, 850.0]),
"blackhol": _fluka.AABB([-190.0, 40.0, 0], [50.0, 200.0, 1000.0]),
}
flairLoadWriteTest(
testdata["fluka/514_QUA_coplanar.inp"], False, False, quadricRegionAABBs=quaAABB
Expand Down

0 comments on commit d4015e0

Please sign in to comment.