Personal tools
You are here: Home User Section Tutorials OCC Exercise 3

Example of group creation using filters

 

 

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

Document Actions

Problem with the Pop-Up

Posted by Holger Steffen at Sep 21, 2016 12:29 PM
Dear sirs,

thanks for your great work.
I'm learning with V 7.8.0

The pop-up menue (Viewer from popup - Controls -> Face Controls) won't arise,
if I've changed the view.
I first must close the window and open it again to see the pop-up-menue.

Best regards,
H.Steffen
(H.Steffen@aar-naval.com)

Problem with the Pop-Up

Posted by Holger Steffen at Sep 21, 2016 12:30 PM
Sorry Post script:
Using Win10