mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
boundary_type review suggestion from @pshriwise
This commit is contained in:
parent
34e4a5efd1
commit
fbb15496db
1 changed files with 7 additions and 1 deletions
|
|
@ -746,7 +746,13 @@ class DAGMCUniverse(UniverseBase):
|
|||
import math
|
||||
bounding_box_center = (bounding_box[0] + bounding_box[1])/2
|
||||
radius = math.dist(bounding_box[0], bounding_box[1])
|
||||
bounding_surface = openmc.Sphere(x0=bounding_box_center[0], y0=bounding_box_center[1], z0=bounding_box_center[2], r=radius)
|
||||
bounding_surface = openmc.Sphere(
|
||||
x0=bounding_box_center[0],
|
||||
y0=bounding_box_center[1],
|
||||
z0=bounding_box_center[2],
|
||||
boundary_type=boundary_type,
|
||||
r=radius,
|
||||
)
|
||||
|
||||
return -bounding_surface
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue