Hi everyone,
I’m trying to build a simple “tokamak” out of nested openmc.ZTorus surfaces/cells. Here is the relevant surface and cell definitions:
R = 138
# Surfaces
vacuum_s = openmc.ZTorus(0,0,0,R,30,30)
first_wall_s = openmc.ZTorus(0,0,0,R,35,35)
vacuum_vessel_s = openmc.ZTorus(0,0,0,R,40,40,boundary_type=“vacuum”)# Cells
vacuum_c = openmc.Cell(fill=None,region=-vacuum_s)
first_wall_c = openmc.Cell(fill=tungsten,region=+vacuum_s&-first_wall_s)
vacuum_vessel_c = openmc.Cell(fill=ss316,region=+first_wall_s&-vacuum_vessel_s)
When the major radius R = 138, the code runs perfectly. When R = 139 the code crashes, either segfaulting or reporting the following geometry overlap error (when running “openmc -g” geometry debug mode):
ERROR: Overlapping cells detected: 3, 2 on universe 1
Segmentation fault (core dumped)
I know that the implentation of nested torii in MC is difficult because of the high order surface equations, often leading to difficult tracking. I recall a similar problem in MCNP, where the solution was to “allow” higher numbers of lost particles to deal with the numerical “holes/overlaps” in the geometry.
Has anyone encountered a similar issue? Is there a potential fix or workaround? Am I possibly doing something wrong (as a first-time OpenMC user)?
I’m running OpenMC 0.13.1.
Thanks!