# Creating groups

In MESH you can create groups of elements of different types. To create a group of elements in the Mesh menu select Create Group.

To create any group you should define the following:

- Mesh: the name of the mesh whose elements will form your group. You can select your mesh in the Objet Browser or in the 3D viewer.

- Elements Type set of radio buttons allows to select the type of elements which will form your group:

- Nodes

- Edges

- Faces

- Volumes

- Name field allows to enter the name of your new group.

SALOME Platform distinguishes between the two Group types: Standalone Group and Group on Geometry.

### Standalone Group

Standalone Group consists of mesh elements, which you can define in two possible ways.

- Choosing them manually with the mouse in the 3D Viewer. You can click on an element in the 3D viewer and it will be highlighted. After that click the Add button and the ID of this element will be added to the list.

- Applying Filters. The Set filter button allows to apply a definite filter to selection of the elements of your group. See more about filters on the Selection filter library page.

To remove a selected element or elements from the list click the Remove button. The Sort List button allows to sort the list of IDs of mesh elements.

Select from set of fields allows to choose a submesh or an existing group whose elements of the previously defined type will be added to the list of elements which will form your group.

Color Number (integer only, ranging from 0 to 9999) - allows to assign to the group a certain index, for example, defining boundary conditions. This feature introduces a useful element of preprocessing in Mesh module. Note that Color number attribute has nothing to do with the colors used for the display of the elements of the group.

| In this picture the brown cells belong to a group defined manually. In this picture the brown cells belong to the group defined by the criterion Taper > 0.

See Also a sample TUI Script of a Create a Standalone Group operation.

### Group on Geometry

To create a group on geometry check Group on geometry in the Group type field. Group on geometry contains the elements of a certain type belonging to the selected geometrical object. To define a group select in the Objet Browser or in the 3D viewer a geometrical object from which the elements will be taken. After confirmation of the operation a new group of mesh elements will be created.

| In this picture the cells which belong to a certain face are selected in green.

See Also a sample TUI Script of a Create a Group on Geometry operation.