Salome HOME
#19895 [CEA] Overlapping volume cells with viscous layer on shared faces
authoreap <eap@opencascade.com>
Mon, 17 Aug 2020 11:00:07 +0000 (14:00 +0300)
committereap <eap@opencascade.com>
Mon, 17 Aug 2020 11:00:07 +0000 (14:00 +0300)
src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx

index 64825c0501f0fe4b4cb0ce43506cd8510ad0f71f..1f11791ccbc8c43f11ee6f68292f8b17d9e5d965 100644 (file)
@@ -263,9 +263,15 @@ static int checkTmpFace(const SMDS_MeshNode* node1,
         bool isDomainInPyramid = ( i3base != i3 );
         return isDomainInPyramid ? HOLE_ID : vol->getshapeId();
       }
-      else
+      else // nbNodes == 6
       {
-        return vol->getshapeId(); // triangle is a prism top
+        int i1 = vol->GetNodeIndex( node1 );
+        if (( i1 == 5 && i2 == 4 && i3 == 3 ) ||
+            ( i1 == 4 && i2 == 3 && i3 == 5 ) ||
+            ( i1 == 3 && i2 == 5 && i3 == 4 ))
+          return HOLE_ID;
+        else
+          return vol->getshapeId(); // triangle is a prism top
       }
     }
   }