@@ -403,3 +403,30 @@ def test_redundant_surfaces():
403403 geom = openmc .Geometry ([c3 ])
404404 redundant_surfs = geom .remove_redundant_surfaces ()
405405 assert len (redundant_surfs ) == 0
406+
407+
408+ def test_sphere_overlap (run_in_tmpdir ):
409+ model = openmc .model .Model ()
410+ shell_material = openmc .Material ()
411+ shell_material .add_element ("Au" , 1.0 , percent_type = "ao" )
412+ shell_material .set_density ("g/cm3" , 1930 ) # revolver density
413+ model .materials = openmc .Materials ([shell_material ])
414+ surface_inner_shell = openmc .Sphere (r = 0.0035 )
415+ surface_outer_shell = openmc .Sphere (r = 0.0095 )
416+ sphere_surface_detector_1 = openmc .Sphere (r = 20000 , boundary_type = "vacuum" )
417+ fuel_region = - surface_inner_shell
418+ shell_region = + surface_inner_shell & - surface_outer_shell
419+ void_region_1 = + surface_outer_shell & - sphere_surface_detector_1
420+ fuel_cell = openmc .Cell (region = fuel_region )
421+ shell_cell = openmc .Cell (region = shell_region , fill = shell_material )
422+ void_cell_1 = openmc .Cell (region = void_region_1 )
423+
424+ model .geometry = openmc .Geometry ([fuel_cell , shell_cell , void_cell_1 ])
425+ source = openmc .Source ()
426+ source .angle = openmc .stats .Isotropic ()
427+ model .settings = openmc .Settings ()
428+ model .settings .batches = 100
429+ model .settings .particles = 80000
430+ model .settings .run_mode = "fixed source"
431+ model .settings .source = source
432+ model .run (geometry_debug = True )
0 commit comments