mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Change ordering of halfspaces for RectangularParallelepiped -/+
This commit is contained in:
parent
8a6dc7e9f8
commit
17482d4fbe
2 changed files with 3 additions and 3 deletions
|
|
@ -451,10 +451,10 @@ class RectangularParallelepiped(CompositeSurface):
|
|||
self.zmax = openmc.ZPlane(z0=zmax, **kwargs)
|
||||
|
||||
def __neg__(self):
|
||||
return +self.xmin & -self.xmax & +self.ymin & -self.ymax & +self.zmin & -self.zmax
|
||||
return -self.xmax & +self.xmin & -self.ymax & +self.ymin & -self.zmax & +self.zmin
|
||||
|
||||
def __pos__(self):
|
||||
return -self.xmin | +self.xmax | -self.ymin | +self.ymax | -self.zmin | +self.zmax
|
||||
return +self.xmax | -self.xmin | +self.ymax | -self.ymin | +self.zmax | -self.zmin
|
||||
|
||||
|
||||
class XConeOneSided(CompositeSurface):
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<cell id="1" material="1" region="-2" universe="1" />
|
||||
<cell id="2" material="1" region="-3" universe="1" />
|
||||
<cell id="3" material="1" region="-1" universe="1" />
|
||||
<cell id="4" material="2" region="4 -5 6 -7 8 -9 2 3 1" universe="1" />
|
||||
<cell id="4" material="2" region="-5 4 -7 6 -9 8 2 3 1" universe="1" />
|
||||
<surface coeffs="0.0 0.0 0.0 3 1.5 1" id="1" type="z-torus" />
|
||||
<surface coeffs="6 0.0 0.0 3 1.5 1" id="2" type="x-torus" />
|
||||
<surface coeffs="6 0.0 0.0 6 1 0.75" id="3" type="y-torus" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue