00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 import smesh
00029 import SMESH_mechanic
00030
00031 salome = smesh.salome
00032 mesh = SMESH_mechanic.mesh
00033
00034
00035
00036
00037
00038 aGroup = mesh.MakeGroup("Area > 100", smesh.FACE, smesh.FT_Area, smesh.FT_MoreThan, 100)
00039
00040
00041 anIds = aGroup.GetIDs()
00042 print "Criterion: Area > 100 Nb = ", len( anIds )
00043
00044
00045
00046
00047
00048
00049
00050 aGroup = mesh.MakeGroup("Taper > 3e-15", smesh.FACE, smesh.FT_Taper, smesh.FT_MoreThan, 3e-15)
00051
00052
00053 anIds = aGroup.GetIDs()
00054 print "Criterion: Taper > 3e-15 Nb = ", len( anIds )
00055
00056
00057
00058
00059
00060
00061
00062 aGroup = mesh.MakeGroup("Aspect Ratio > 1.3", smesh.FACE, smesh.FT_AspectRatio, smesh.FT_MoreThan, 1.3)
00063
00064
00065 anIds = aGroup.GetIDs()
00066 print "Criterion: Aspect Ratio > 1.3 Nb = ", len( anIds )
00067
00068
00069
00070
00071
00072
00073
00074 aGroup = mesh.MakeGroup("Minimum Angle < 30", smesh.FACE, smesh.FT_MinimumAngle, smesh.FT_LessThan, 30)
00075
00076
00077 anIds = aGroup.GetIDs()
00078 print "Criterion: Minimum Angle < 30 Nb = ", len( anIds )
00079
00080
00081
00082
00083
00084
00085
00086 aGroup = mesh.MakeGroup("Warp > 2e-13", smesh.FACE, smesh.FT_Warping, smesh.FT_MoreThan, 2e-13 )
00087
00088
00089 anIds = aGroup.GetIDs()
00090 print "Criterion: Warp > 2e-13 Nb = ", len( anIds )
00091
00092
00093
00094
00095
00096
00097
00098 aGroup = mesh.MakeGroup("Skew > 18", smesh.FACE, smesh.FT_Skew, smesh.FT_MoreThan, 18 )
00099
00100
00101 anIds = aGroup.GetIDs()
00102 print "Criterion: Skew > 18 Nb = ", len( anIds )
00103
00104
00105
00106
00107
00108
00109
00110 aGroup = mesh.MakeGroup("Length > 10", smesh.FACE, smesh.FT_Length, smesh.FT_MoreThan, 10 )
00111
00112
00113 anIds = aGroup.GetIDs()
00114 print "Criterion: Length > 10 Nb = ", len( anIds )
00115
00116
00117
00118
00119
00120
00121
00122 aGroup = mesh.MakeGroup("Borders at multi-connections = 2", smesh.EDGE, smesh.FT_MultiConnection, smesh.FT_EqualTo, 2)
00123
00124
00125 anIds = aGroup.GetIDs()
00126 print "Criterion: Borders at multi-connections = 2 Nb = ", len( anIds )
00127
00128
00129
00130
00131
00132
00133
00134 aGroup = mesh.MakeGroup("Element Diameter 2D > 10", smesh.FACE, smesh.FT_MaxElementLength2D, smesh.FT_MoreThan, 10 )
00135
00136
00137 anIds = aGroup.GetIDs()
00138 print "Criterion: Element Diameter 2D > 10 Nb = ", len( anIds )
00139
00140
00141
00142
00143 salome.sg.updateObjBrowser(1)