mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Bug fix for Polygon 'yz' basis (#3259)
This commit is contained in:
parent
51f0e6f350
commit
c226c783c4
1 changed files with 3 additions and 3 deletions
|
|
@ -1252,11 +1252,11 @@ class Polygon(CompositeSurface):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue