Back to index

salome-smesh  6.5.0
Functions
Using operations on groups
Grouping elements
Collaboration diagram for Using operations on groups:

Functions

def smeshDC.Mesh.UnionGroups
 Produces a union of two groups A new group is created.
def smeshDC.Mesh.UnionListOfGroups
 Produces a union list of groups New group is created.
def smeshDC.Mesh.IntersectGroups
 Prodices an intersection of two groups A new group is created.
def smeshDC.Mesh.IntersectListOfGroups
 Produces an intersection of groups New group is created.
def smeshDC.Mesh.CutGroups
 Produces a cut of two groups A new group is created.
def smeshDC.Mesh.CutListOfGroups
 Produces a cut of groups A new group is created.
def smeshDC.Mesh.CreateDimGroup
 Produces a group of elements of specified type using list of existing groups A new group is created.

Function Documentation

def smeshDC.Mesh.CreateDimGroup (   self,
  groups,
  elem_type,
  name 
)

Produces a group of elements of specified type using list of existing groups A new group is created.

System 1) extracts all nodes on which groups elements are built 2) combines all elements of specified dimension laying on these nodes

Returns:
an instance of SMESH_Group

Definition at line 1715 of file smeshDC.py.

01715 
01716     def CreateDimGroup(self, groups, elem_type, name):
01717       return self.mesh.CreateDimGroup(groups, elem_type, name)
01718 

def smeshDC.Mesh.CutGroups (   self,
  main_group,
  tool_group,
  name 
)

Produces a cut of two groups A new group is created.

All mesh elements that are present in the main group but are not present in the tool group are added to the new one

Returns:
an instance of SMESH_Group

Definition at line 1698 of file smeshDC.py.

01698 
01699     def CutGroups(self, main_group, tool_group, name):
01700         return self.mesh.CutGroups(main_group, tool_group, name)

def smeshDC.Mesh.CutListOfGroups (   self,
  main_groups,
  tool_groups,
  name 
)

Produces a cut of groups A new group is created.

All mesh elements that are present in main groups but do not present in tool groups are added to the new one

Returns:
an instance of SMESH_Group

Definition at line 1706 of file smeshDC.py.

01706 
01707     def CutListOfGroups(self, main_groups, tool_groups, name):
01708       return self.mesh.CutListOfGroups(main_groups, tool_groups, name)

def smeshDC.Mesh.IntersectGroups (   self,
  group1,
  group2,
  name 
)

Prodices an intersection of two groups A new group is created.

All mesh elements that are common for the two initial groups are added to the new one.

Returns:
an instance of SMESH_Group

Definition at line 1682 of file smeshDC.py.

01682 
01683     def IntersectGroups(self, group1, group2, name):
01684         return self.mesh.IntersectGroups(group1, group2, name)

def smeshDC.Mesh.IntersectListOfGroups (   self,
  groups,
  name 
)

Produces an intersection of groups New group is created.

All mesh elements that are present in all initial groups simultaneously are added to the new one

Returns:
an instance of SMESH_Group

Definition at line 1690 of file smeshDC.py.

01690 
01691     def IntersectListOfGroups(self, groups, name):
01692       return self.mesh.IntersectListOfGroups(groups, name)

def smeshDC.Mesh.UnionGroups (   self,
  group1,
  group2,
  name 
)

Produces a union of two groups A new group is created.

All mesh elements that are present in the initial groups are added to the new one

Returns:
an instance of SMESH_Group

Definition at line 1666 of file smeshDC.py.

01666 
01667     def UnionGroups(self, group1, group2, name):
01668         return self.mesh.UnionGroups(group1, group2, name)

def smeshDC.Mesh.UnionListOfGroups (   self,
  groups,
  name 
)

Produces a union list of groups New group is created.

All mesh elements that are present in initial groups are added to the new one

Returns:
an instance of SMESH_Group

Definition at line 1674 of file smeshDC.py.

01674 
01675     def UnionListOfGroups(self, groups, name):
01676       return self.mesh.UnionListOfGroups(groups, name)