-
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 Compound_2: (menu New Entity/Build/Compound)
Objects: Face_2, Face_4, Face_33, Face_35 Apply and Close.
|
|
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
Select Group type - Group on filter
Tab Set Filter
Click “Add” tab
Select criterion: Lying on Geom
Threshold value: Face_14
Source: mesh
Apply and Close
Apply.
-
|
|
Check 5th radio button “Face”
Name: holes
Select Group type - Group on filter
Tab Set Filter
Click “Add” tab
Select criterion: Belong to Geom
Threshold value: Compound_2
Source: mesh
Apply and Close
Apply.
|
|
|
|
Check 5th radio button “Face”
Name: Cylinder
Select Group type - Group on filter
Tab Set Filter
Remove criterion: Belong to Geom
Click “Add” tab
Select criterion: Belong to Cylinder
Threshold value: Face_18
Source: mesh
Apply and Close
Apply.
|
|
Check 5th radio button “Face”
Name: small angle
Select Group type - Group on filter
Tab Set Filter
Remove criterion: Belong to Cylinder
Click “Add” tab
Select criterion: Minimum angle
Compare: Less than
Threshold value: 30
Apply and Close
Apply and Close.
|
|
- Show only "small angle"
- select in 3D Viewer from popup - Controls -> Face Controls -> Minimal angle
|
|
- Cut of groups: (menu Mesh/Cut Groups)
Result name: cylinder_cut Main Object: cylinder Tool Object: small angle Apply and Close. - Show only "cylinder_cut"
- select in 3D Viewer from popup - Controls -> Face Controls -> Minimal angle
Check that minimum angle for all elements from group cylinder_cut is more than 30 degrees |
|