From c226c783c4e7d6c63a1c84ed5f1ee4a9beaead1c Mon Sep 17 00:00:00 2001 From: Ethan Peterson Date: Fri, 10 Jan 2025 17:20:00 -0500 Subject: [PATCH] Bug fix for Polygon 'yz' basis (#3259) --- openmc/model/surface_composite.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openmc/model/surface_composite.py b/openmc/model/surface_composite.py index 1f25b9ca636..c7655694d3c 100644 --- a/openmc/model/surface_composite.py +++ b/openmc/model/surface_composite.py @@ -1252,11 +1252,11 @@ def _get_convex_hull_surfs(self, qhull): else: op = operator.neg if basis == 'xy': - surf = openmc.Plane(a=dx, b=dy, d=-c) + surf = openmc.Plane(a=dx, b=dy, c=0.0, d=-c) elif basis == 'yz': - surf = openmc.Plane(b=dx, c=dy, d=-c) + surf = openmc.Plane(a=0.0, b=dx, c=dy, d=-c) elif basis == 'xz': - surf = openmc.Plane(a=dx, c=dy, d=-c) + surf = openmc.Plane(a=dx, b=0.0, c=dy, d=-c) else: y0 = -c/dy r2 = dy**2 / dx**2