Salome HOME
Redesign SALOME documentation
[modules/smesh.git] / doc / salome / gui / SMESH / input / make_2dmesh_from_3d.rst
1 .. _make_2dmesh_from_3d_page:
2
3 **************************
4 Generate boundary elements
5 **************************
6
7 This functionality allows to generate mesh elements on the borders of elements of a higher dimension, for example, to create 2D elements around a block of 3D elements as in the following figure.
8
9 .. image:: ../images/2d_from_3d_example.png
10         :align: center
11
12 .. centered::
13         "Missing 2D elements were generated"
14
15
16 **To generate border elements:**
17
18 #. Select a mesh or group in the Object Browser or in the 3D Viewer
19 #. From the Modification menu choose "Create boundary elements" item, or click "Create boundary elements" button in the toolbar
20
21         .. image:: ../images/2d_from_3d_ico.png
22                 :align: center
23
24         .. centered::
25                 "Create boundary elements icon"
26
27
28         The following dialog box will appear:
29
30         .. image:: ../images/2d_from_3d_dlg.png 
31                 :align: center
32
33         .. centered::
34                  "Create boundary elements dialog box".
35
36
37 #. Check in the dialog box one of two radio buttons corresponding to the type of operation you would like to perform.
38 #. Fill the other fields available in the dialog box.
39 #. Click the **Apply** or **Apply and Close** button to perform the operation.
40
41 "Create boundary elements" dialog allows creation of boundary elements of two types.
42
43 * **2D from 3D** creates missing mesh faces on free facets of volume elements
44 * **1D from 2D** creates missing mesh edges on free edges of mesh faces
45
46 Here a **free facet** means a facet shared by only one volume, a **free edge**
47 means an edge shared by only one mesh face.
48
49 In this dialog:
50
51 * specify the **Target** mesh, where the boundary elements will be created.
52   
53         * **This mesh** adds elements in the selected mesh.
54         * **New mesh** adds elements to a new mesh. The new mesh appears in the Object Browser with the name that you can change in the adjacent box. 
55   
56 * activate **Copy source mesh** checkbox to copy all elements of the selected mesh to the new mesh, else the new mesh will contain only boundary elements (old and created by this operation).
57 * activate **Create group** checkbox to create a group to which all the boundary elements (old and new) are added. The new group appears in the Object Browser with the name that you can change in the adjacent box. 
58
59 **See Also** a sample TUI Script of a :ref:`tui_make_2dmesh_from_3d` operation.  
60
61