Salome HOME
3255d44171e0d8acd94d7d76379789f852eff44c
[modules/smesh.git] / doc / salome / gui / SMESH / input / smoothing.doc
1 /*!
2
3 \page smoothing_page Smoothing
4
5 \n Smoothing is used to improve quality of 2D mesh by adjusting the
6 locations of element corners (nodes). 
7
8 \note Depending on the chosen method and mesh geometry
9 the smoothing can actually decrease the quality of elements.
10
11 <em>To apply smoothing to the elements of your mesh:</em>
12 <ol>
13
14 <li>In the \b Modification menu select the \b Smoothing item or click
15 <em>"Smoothing"</em> button in the toolbar.
16
17 \image html image84.png
18 <center><em>"Smoothing" button</em></center>
19
20 The following dialog will appear:
21
22 \image html smoothing.png
23 </li>
24 <li>In this dialog:
25
26 <ul>
27 <li>specify the IDs of the elements which will be smoothed:
28 <ul>
29 <li><b>Select the whole mesh, sub-mesh or group</b> activating this
30   check-box; or</li>
31 <li>choose mesh elements with the mouse in the 3D Viewer. It is
32   possible to select a whole area with a mouse frame; or</li> 
33 <li>input the element IDs directly in <b>ID Elements</b> field. The
34   selected elements will be highlighted in the viewer; or</li>
35 <li>apply Filters. <b>Set filters</b> button allows to apply a filter
36   to the selection of elements. See more about filters in the 
37   \ref filtering_elements "Selection filter library" page.</li>
38 </ul>
39 </li>
40
41 <li>define the <b>Fixed nodes ids</b> that should remain at their
42   location during smoothing. If a mesh is built on a shape, the nodes
43   built on its geometric edges are always fixed. If the smoothing is
44   applied to a part of the mesh (a set of element), the nodes on
45   boundary of the element set are also fixed. It is possible to
46   additionally fix any other nodes. The fixed nodes can be selected
47   manually or by filters, just as the smoothed elements.</li>
48 <li>choose the <b>Smoothing Method:</b>
49 <ul>
50 <li>\b Laplacian smoothing pulls a node toward the center of
51 surrounding nodes directly connected to that node along an element
52 edge. 
53 <li>\b Centroidal smoothing pulls a node toward the
54 element-area-weighted centroid of the surrounding elements. </li>
55
56 Laplacian method will produce the mesh with the least element
57 edge length. It is also the fastest method. Centroidal smoothing
58 produces a mesh with more uniform element sizes.</li>
59 </ul>
60
61 \image html image83.gif
62
63 </li>
64 <li>specify the <b>Iteration limit</b>. Both smoothing methods iterate
65   through a number of steps to produce the resulting smoothed mesh. At
66   each new step the smoothing is reevaluated with the updated nodal
67   locations. This process continues till the limit of iterations has
68   been exceeded, or till the aspect ratio of all element is less than
69   or equal to the specified one.</li>
70 <li>specify the  <b>Max. aspect ratio</b> - the target mesh quality at
71   which the smoothing algorithm should stop the iterations.</li>
72 <li>activate <b>in parametric space</b> check-box if it is necessary to
73   improve the shape of faces in the parametric space of geometrical
74   surfaces on which they are generated, else the shape of faces in the
75   3D space is improved that is suitable for <b>planar meshes only</b>. </li>
76 </ul>
77 </li>
78 <li>Click \b Apply or <b> Apply and Close</b> button to confirm the operation.</li>
79 </ol>
80
81 \image html smoothing1.png "The initial mesh"
82
83 \image html smoothing2.png "The smoothed mesh"
84
85 <br><b>See Also</b> a sample TUI Script of a 
86 \ref tui_smoothing "Smoothing" operation.  
87
88 */