Skip to content

Commit

Permalink
Bug fix for Polygon 'yz' basis (#3259)
Browse files Browse the repository at this point in the history
  • Loading branch information
eepeterson authored Jan 10, 2025
1 parent 51f0e6f commit c226c78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openmc/model/surface_composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c226c78

Please sign in to comment.