-
Example of group creation using filters
This sample is known to work on the latest SALOME release.
The compatibility with previous versions of SALOME is not guaranteed, though the sample can work on old versions also.
Objective
This exercise illustrates the use of SMESH SALOME functionalities for creation of groups. This can be done using filters. Group can be used for definition of boundary conditions, for selection of bad elements. The previous example is used.
Geometry
The sequence of actions is as follows:
- Launch SALOME.
- Create a new study.
- Launch GEOM module.
- Load Python script Bracket.py from the bracket.zip (you can use File/Load script menu command). Note: that you may need to modify the script beforehead in order to set the actual path to the STEP file used in the script.
- Explode into basic elements: (menu New Entity/Explode)
Explode Fuse_3 into Faces. - Create Group of solids: (menu New Entity/Build/Compound)
Objects: Face_2, Face_4, Face_33, Face_35 Validation => Compound_2.
|

|
Mesh (Construction of the groups)
- Launch SMESH module.
- Creation of groups: (menu Mesh/Create Group)
Mesh: Mesh_1 (or Fuse_3) Check 1st radio button “Node” Name: lower_plane - Tab Set filters
Click “Add” tab Select criterion: Lying on Geom Threshold value: Face_14 Source: mesh Validation - Click “Add” button
Validation => lower_plane
|

|
- Check 3rd radio button “Face”
Name: holes
- Tab Set filters
Click “Add” tab Select criterion: Belong to Geom Threshold value: Compound_2 Source: mesh Validation
- Click “Add” button
Validation => holes
|

|
|
- Name: Cylinder
Check 3 rd radio button “Face” Tab Set filters Click “Add” tab Select criterion: Belong to Cylinder Threshold value: Face_18 Source: Mesh Validation
- Click “Add” button
Validation => cylinder
|

|
- Name: small angle
Check 3 rd radio button “Face” Tab Set filters Click “Add” tab Select criterion: Minimum angle Compare: Less than Threshold value: 30 Validation
- Click “Add” button
Validation => small angle
|

|
- Name: small angle all
Tab Set filters Remove criterion: Belong to Cylinder Validation
- Click “Add” button
Validation => small angle all - Show only "small angle all"
- select Controls from popup: Minimal angle
|

|
- Intersection of groups: (menu Mesh/Intersect Groups)
Result name: small angle cylinder Select: "cylinder" and "small angle all" together Validation => small angle cylinder
Check that groups small angle cylinder and small angle coincide
- Cut of groups: (menu Mesh/Cut Groups)
Result name: cylinder_cut Main Object: cylinder Tool Object: small angle all Validation => cylinder_cut
Check that minimum angle for all elements from group cylinder_cut is more than 30 degrees |

|