Salome HOME
Merge remote-tracking branch 'origin/cbr/fix_hybrid_tests'
[plugins/hybridplugin.git] / tests / layers_imprinting_hexa_core.py
index e4947859b6bcb385bcc86e33f4ab2bac5e2be1b6..2cd92cb03bfb8486ff884cb8cbb2f381689d4f14 100644 (file)
@@ -30,14 +30,14 @@ Rotation_1 = geompy.MakeRotation(Cylinder_2, OY, -90*math.pi/180.0)
 Translation_1 = geompy.MakeTranslation(Rotation_1, 0, 0, 1.5)
 piquage = geompy.MakeFuseList([Cylinder_1, Translation_1], True, True)
 [Outlet] = geompy.SubShapes(piquage, [15])
-[Inlet_z,Inlet_x] = geompy.SubShapes(piquage, [3, 22])
+[Inlet_z,Inlet_x] = geompy.SubShapes(piquage, [13, 22])
 [corner] = geompy.SubShapes(piquage, [14])
 geomObj_1 = geompy.MakeVertex(0, 0, 0)
 geomObj_2 = geompy.MakeVectorDXDYDZ(1, 0, 0)
 geomObj_3 = geompy.MakeVectorDXDYDZ(0, 1, 0)
 geomObj_4 = geompy.MakeVectorDXDYDZ(0, 0, 1)
 Wall = geompy.CreateGroup(piquage, geompy.ShapeType["FACE"])
-geompy.UnionIDs(Wall, [7, 17])
+geompy.UnionIDs(Wall, [3, 17])
 geompy.addToStudy( O, 'O' )
 geompy.addToStudy( OX, 'OX' )
 geompy.addToStudy( OY, 'OY' )
@@ -90,8 +90,8 @@ MG_Hybrid_Parameters_4.SetElementGeneration( HYBRIDPluginBuilder.Generation_Hexa
 MG_Hybrid_Parameters_4.SetHeightFirstLayer( 0.01 )
 MG_Hybrid_Parameters_4.SetBoundaryLayersProgression( 1.1 )
 MG_Hybrid_Parameters_4.SetNbOfBoundaryLayers( 3 )
-MG_Hybrid_Parameters_4.SetFacesWithLayers( [ 7, 17 ] )
-MG_Hybrid_Parameters_4.SetFacesWithImprinting( [ 22, 15, 3 ] )
+MG_Hybrid_Parameters_4.SetFacesWithLayers( [ 3, 17 ] )
+MG_Hybrid_Parameters_4.SetFacesWithImprinting( [ 22, 15, 13 ] )
 
 isDone = Mesh_4.Compute()
 
@@ -114,7 +114,7 @@ mesh_4_volume = Mesh_4.GetVolume()
 shape_volume = geompy.BasicProperties(piquage)[2]
 volume_error_4 = abs(shape_volume-mesh_4_volume)/shape_volume
 
-assert volume_error_4 < 0.015
+assert volume_error_4 < 0.02
 
 # Check viscous layers with imprinting
 faces_imprinted = ["Inlet_x", "Inlet_z", "Outlet"]