]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Référence
authorGERALD NICOLAS <D68518@dsp0864451.atlas.edf.fr>
Thu, 15 Apr 2021 12:20:03 +0000 (14:20 +0200)
committerGERALD NICOLAS <D68518@dsp0864451.atlas.edf.fr>
Thu, 15 Apr 2021 12:20:03 +0000 (14:20 +0200)
src/Tools/blocFissure/CasTests/disquePerce.py
src/Tools/blocFissure/gmu/fissureCoude.py
src/Tools/blocFissure/gmu/getStatsMaillageFissure.py

index 7cb18872f239b2d1fe9a2fe79be1700e2951db32..368cdc555d2cc1eb0541df9e87e843761b2cfb8e 100644 (file)
@@ -38,12 +38,12 @@ dicoParams = dict(nomCas            = 'disque',
   # ---------------------------------------------------------------------------
 
 referencesMaillageFissure = dict ( \
+                                  Entity_Quad_Edge = 376, \
                                   Entity_Quad_Quadrangle = 2748, \
                                   Entity_Quad_Hexa = 6232, \
-                                  Entity_Node = 43889, \
-                                  Entity_Quad_Edge = 376, \
-                                  Entity_Quad_Triangle = 1366, \
-                                  Entity_Quad_Tetra = 9112, \
+                                  Entity_Node = 43479, \
+                                  Entity_Quad_Triangle = 1340, \
+                                  Entity_Quad_Tetra = 8821, \
                                   Entity_Quad_Pyramid = 466, \
                                   Entity_Quad_Penta = 448 \
-                                )
+                                 )
index 47ebf11345f669dd2150912e9e7416e7448b3d82..ad1154e5f7d9aca30ca3c2a46d72d3102baaaea9 100644 (file)
@@ -687,11 +687,13 @@ class fissureCoude(fissureGenerique):
 
   # ---------------------------------------------------------------------------
   def setReferencesMaillageFissure(self):
-    self.referencesMaillageFissure = dict(Entity_Node            = 77917,
-                                          Entity_Quad_Edge       = 975,
-                                          Entity_Quad_Triangle   = 2182,
-                                          Entity_Quad_Quadrangle = 6842,
-                                          Entity_Quad_Tetra      = 20135,
-                                          Entity_Quad_Hexa       = 8994,
-                                          Entity_Quad_Penta      = 972,
-                                          Entity_Quad_Pyramid    = 1038)
+    self.referencesMaillageFissure = dict( \
+                                          Entity_Quad_Edge = 975, \
+                                          Entity_Quad_Quadrangle = 6842, \
+                                          Entity_Quad_Hexa = 8994, \
+                                          Entity_Node = 77917, \
+                                          Entity_Quad_Triangle = 2182, \
+                                          Entity_Quad_Tetra = 20135, \
+                                          Entity_Quad_Pyramid = 1038, \
+                                          Entity_Quad_Penta = 972 \
+                                         )
index 49a93052fc81a71cc91947d8557b24dc60aafc38..3305bac0fe6d9dfc6e57239aeeb51a0dc7a30270 100644 (file)
@@ -64,12 +64,14 @@ def getStatsMaillageFissure(maillage, referencesMaillageFissure, maillageFissure
         fic_stat.write(text+"\n")
         text_2 += "                                          {} = {}, \\\n".format(key,d_resu[key])
 
-      # Le nombre de noeuds, de triangles, de tétarèdres ou de pyramides peut varier du fait des algorithmes. On tolère 1% d'écart.
-      tolerance = 0.01
+      # Le nombre de noeuds, de triangles, de tétraèdres ou de pyramides peut varier du fait des algorithmes. On tolère 5% d'écart.
+      tolerance = 0.05
       for key in ('Entity_Node', 'Entity_Quad_Triangle', 'Entity_Quad_Tetra', 'Entity_Quad_Pyramid', 'Entity_Quad_Penta'):
-        if (d_resu[key] < (1.0 - tolerance)*referencesMaillageFissure[key]) \
-        or (d_resu[key] > (1.0 + tolerance)*referencesMaillageFissure[key]):
-          text = "Ecart"
+        if d_resu[key] == referencesMaillageFissure[key]:
+          text = "Valeur_OK"
+        elif (d_resu[key] < (1.0 - tolerance)*referencesMaillageFissure[key]) \
+          or (d_resu[key] > (1.0 + tolerance)*referencesMaillageFissure[key]):
+          text = "Ecart de plus de {}%".format(tolerance*100.)
           ok_maillage = False
         else:
           text = "Valeur_OK à moins de {}%".format(tolerance*100.)