Salome HOME
06341bdb42423674cbe19b23e228dce6f62fb4a1
[modules/smesh.git] / doc / salome / gui / SMESH / input / grouping_elements.rst
1 .. _grouping_elements_page:
2
3 *****************
4 Grouping elements
5 *****************
6
7 In Mesh module it is possible to create groups of mesh entities: nodes, edges, faces, volumes, 0D elements or balls. One group contains elements of only one type. Groups, unlike sub-meshes, are exported along with mesh entities into the files of following formats: MED, UNV, and CGNS. The group has a color attribute which is used for visualization only and is not exported.
8
9 There are three types of groups different by their internal organization:
10
11 #. **Standalone group** is a static set of mesh entities. Its contents can be explicitly controlled by the user. Upon removal of the entities included into the group, e.g. due to modification of  meshing parameter, the group becomes empty and its content can be restored only manually. Hence it is reasonable to create standalone groups when the mesh generation is finished and mesh quality is verified.
12         .. warning:: Creation and edition of large standalone groups in :ref:`creating_groups_page` dialog using manual edition is problematic due to poor performance of the dialog.
13   
14 #. **Group on geometry** is associated to a sub-shape or a group of sub-shapes of the main shape and includes mesh entities generated on these geometrical entities. The association to a geometry is established at group construction and cannot be changed. The group contents are always updated automatically, hence the group can be created even before mesh elements generation.
15 #. **Group on filter** encapsulates a :ref:`filters_page`, which is used to select mesh entities composing the group from the whole mesh. Criteria of the filter can be changed at any time. The group contents are always updated automatically, hence the group can be created even before mesh elements generation.
16
17 The group on geometry and group on filter can be converted to a standalone group.
18
19 .. image:: ../images/groups_in_OB.png
20         :align: center
21
22 .. centered::
23         "Groups of different types look differently in the Object Browser"
24
25 The following ways of group creation are possible:
26
27 * :ref:`creating_groups_page` dialog allows creation of a group of any type:
28         :ref:`standalone_group`,
29         :ref:`group_on_geom` and
30         :ref:`group_on_filter` using dedicated tabs.
31 * :ref:`create_groups_from_geometry_page` dialog allows creation of several groups on geometry at once.
32 * Standalone groups of all nodes and elements of the chosen sub-mesh (type of elements depends on dimension of sub-mesh geometry) can be created using **Mesh -> Construct Group** menu item (available from the context menu as well).
33 * Standalone groups of any element type can be created basing on nodes of other groups - using :ref:`group_of_underlying_elements_page` dialog.
34 * Standalone groups can be created by applying :ref:`using_operations_on_groups_page` to other groups.
35 * Creation of standalone groups is an option of many :ref:`modifying_meshes_page` operations.
36
37 The created groups can be later:
38
39 * :ref:`editing_groups_page`
40 * :ref:`deleting_groups_page`, either as an object or together with contained elements.
41 * The group on geometry and group on filter can be :ref:`convert_to_standalone` group.
42 * :ref:`importing_exporting_meshes_page` into a file as a whole mesh.
43
44 In the Object Browser, if an item contains more than one child group, it is possible to sort the groups by name in ascending order using **Sort children** context menu item. 
45
46 .. image:: ../images/smesh_sort_groups.png
47         :align: center
48
49 .. centered::
50         "Sorting groups"
51
52 An important tool, providing filters for creation of standalone groups and groups on filter is :ref:`selection_filter_library_page`.
53
54
55 .. toctree::
56         :maxdepth: 2
57
58         creating_groups.rst
59         create_groups_from_geometry.rst
60         group_of_underlying_elements.rst
61         using_operations_on_groups.rst
62         editing_groups.rst
63         deleting_groups.rst