Salome HOME
Merge remote branch 'origin/V8_5_asterstudy'
[modules/smesh.git] / doc / salome / gui / SMESH / input / revolution.rst
1 .. _revolution_page:
2
3 **********
4 Revolution
5 **********
6
7 Revolution is used to build mesh elements of plus one
8 dimension than the input ones.  Boundary elements around generated
9 mesh of plus one dimension are additionally created. All created
10 elements can be automatically grouped. Revolution can be used to create
11 a :ref:`structured mesh from scratch <extrusion_struct>`. 
12 See :ref:`extrusion_page` page for general information on Revolution,
13 which can be viewed as extrusion along a circular path.
14
15 *To apply revolution:*
16
17 .. |img| image:: ../images/image92.png
18 .. |sel| image:: ../images/image120.png
19
20 #. From the **Modification** menu choose the **Revolution** item or click  **"Revolution"** button in the toolbar.
21
22    The following dialog will appear:
23
24         .. image:: ../images/revolution1.png
25                 :align: center
26   
27
28 #. In this dialog:
29     
30         * Use *Selection* button |sel| to specify what you are going to select at a given moment, **Nodes**, **Edges** or **Faces**.
31
32         * Specify **Nodes**, **Edges** and **Faces**, which will be revolved, by one of following means:
33                 * **Select the whole mesh, sub-mesh or group** activating this check-box.
34                 * Choose mesh elements with the mouse in the 3D Viewer. It is possible to select a whole area with a mouse frame.
35                 * Input the element IDs directly in **Node IDs**, **Edge IDs** and **Face IDs** fields. The selected elements will be highlighted in the viewer, if the mesh is shown there.
36                 * Apply Filters. **Set filter** button allows to apply a filter to the selection of elements. See more about filters in the :ref:`filtering_elements` page.
37         * Specify the **Axis** of revolution:
38                 * Specify the coordinates of the start **Point** of the axis of revolution; either directly or by picking a node in the Viewer (selection of nodes is activated as you click the *Selection* button).
39                 * Specify the **Vector** of the axis in either of three ways:
40                         * directly adjust vector components;
41                         * click *Selection* button, choose **From Origin to selected Point** in the opened menu and pick a node in the Viewer; 
42                         * click *Selection* button, chose **Normal to selected Face** in the opened menu and pick a mesh face in the Viewer. 
43         * Specify the **Angle** of revolution and the **Number of steps** of revolution,
44                 * **Angle by Step** - the elements are revolved by the specified angle at each step (i.e. for Angle=30 and Number of Steps=3, the elements will be extruded by 30 degrees twice for a total of 30*3=90)
45
46                 .. image:: ../images/revolutionsn2.png 
47                         :align: center
48
49                 .. centered::
50                         Example of Revolution with Angle by Step. Angle=30 and Number of Steps=3
51         
52                 * **Total Angle** - the elements are revolved by the specified angle only once and the number of steps defines the number of iterations (i.e. for Angle=30 and Number of Steps=3, the elements will be revolved by 30/3=10 degrees twice for a total of 30).
53
54                 .. image:: ../images/revolutionsn1.png 
55                         :align: center
56
57                 .. centered::
58                         Example of Revolution with Total Angle. Angle=30 and Number of Steps=3
59         
60       
61     
62         * Specify the **Tolerance**, which is used to detect nodes lying on the axis of revolution.
63         * Activate  **Preview** check-box to see the result mesh in the viewer.
64         * If you activate **Generate Groups** check-box, the **result elements** created from **selected elements** contained in groups will be included into new groups named by pattern "<old group name>_rotated" and "<old group name>_top". For example if a selected quadrangle is included in *g_Faces* group (see figures below) then result hexahedra will be included in *g_Faces_rotated* group and a quadrangle created at the "top" of revolved mesh will be included in *g_Faces_top* group.  
65
66         .. image:: ../images/extrusion_groups.png
67                 :align: center
68
69         .. image:: ../images/extrusion_groups_res.png
70                 :align: center
71
72
73         This check-box is active only if there are some groups in the mesh.
74
75 #. Click **Apply** or **Apply and Close** button to confirm the operation.
76
77 **See Also** a sample TUI Script of a :ref:`tui_revolution` operation.