Impossible overlaps in DAGMC geometry with perfectly conformal mesh

Last update:

@Shimwell, I know your Gist script is a work in progress, but the overlap checker also found overlapping volumes in the produced h5m file:

Script output:

face_ids_per_solid {796334115: 2, 796335283: 1}
adding moab details for solid id 796333507 and material tag mat1
    adding face 796334115 to moab core
    face 796334115 has not previously been added
adding moab details for solid id 796336515 and material tag mat2
    adding face 796335283 to moab core
    face 796335283 has not previously been added
    adding face 796334115 to moab core
    face 796334115 has already been added, this must be face shared by two solids

Overlap check:

Running overlap check:
100% |===============================================================>|+
Overlap locations found: 1
Overlap Location: 0.695866 -0.0486597 9.97564
Overlapping volumes: 711896867 711897315

With 3 concentric spheres

CleanShot 2023-08-29 at 12.35.54

adding moab details for solid id 709482979 and material tag mat1
    adding face 709474867 to moab core
    face 709474867 has not previously been added
adding moab details for solid id 709475619 and material tag mat2
    adding face 709475107 to moab core
    face 709475107 has not previously been added
    adding face 709474867 to moab core
    face 709474867 has already been added, this must be face shared by two solids
adding moab details for solid id 709483315 and material tag mat3
    adding face 106019078 to moab core
    face 106019078 has not previously been added
    adding face 709475107 to moab core
    face 709475107 has already been added, this must be face shared by two solids
Running overlap check:
100% |===============================================================>|+
Overlap locations found: 2
Overlap Location: 0.695866 -0.0486597 9.97564
Overlapping volumes: 709475619 709482979 709483315 
Overlap Location: 1.0438 -0.0729895 14.9635
Overlapping volumes: 709475619 709483315 

Plotting Geometry

With my toroidal geometry, cell plots show interesting artifacts. I initially reported this here: Weird artifacts on DAGMC geometry plots - #7 by akoen.

CAD-to-DAGMC

CleanShot 2023-08-29 at 12.55.02

CAD-to-OPEMC

CleanShot 2023-08-29 at 12.57.44