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