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' )
MG_Hybrid_Parameters_1.SetHeightFirstLayer( 0.01 )
MG_Hybrid_Parameters_1.SetBoundaryLayersProgression( 1.1 )
MG_Hybrid_Parameters_1.SetNbOfBoundaryLayers( 3 )
-MG_Hybrid_Parameters_1.SetFacesWithLayers( [ 7, 17 ] )
+MG_Hybrid_Parameters_1.SetFacesWithLayers( [ 3, 17 ] )
isDone = Mesh_1.Compute()
MG_Hybrid_Parameters_2.SetHeightFirstLayer( 0.01 )
MG_Hybrid_Parameters_2.SetBoundaryLayersProgression( 1.1 )
MG_Hybrid_Parameters_2.SetNbOfBoundaryLayers( 3 )
-MG_Hybrid_Parameters_2.SetFacesWithLayers( [ 7, 17 ] )
-MG_Hybrid_Parameters_2.SetFacesWithImprinting( [ 22, 15, 3 ] )
+MG_Hybrid_Parameters_2.SetFacesWithLayers( [ 3, 17 ] )
+MG_Hybrid_Parameters_2.SetFacesWithImprinting( [ 22, 15, 13 ] )
isDone = Mesh_2.Compute()
mesh_2_volume = Mesh_2.GetVolume()
volume_error_2 = abs(shape_volume-mesh_2_volume)/shape_volume
-assert volume_error_2 < 0.015
+assert volume_error_2 < 0.02
# Viscous layers with imprinting set by groups
# ============================================
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' )
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()
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"]