3 \page smoothing_page Smoothing
5 \n Smoothing is used to improve quality of 2D mesh by adjusting the
6 locations of element corners (nodes).
8 \note Depending on the chosen method and mesh geometry
9 the smoothing can actually decrease the quality of elements.
11 <em>To apply smoothing to the elements of your mesh:</em>
14 <li>In the \b Modification menu select the \b Smoothing item or click
15 <em>"Smoothing"</em> button in the toolbar.
17 \image html image84.png
18 <center><em>"Smoothing" button</em></center>
20 The following dialog will appear:
22 \image html smoothing.png
27 <li>specify the IDs of the elements which will be smoothed:
29 <li><b>Select the whole mesh, sub-mesh or group</b> activating this
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>
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>
50 <li>\b Laplacian smoothing pulls a node toward the center of
51 surrounding nodes directly connected to that node along an element
53 <li>\b Centroidal smoothing pulls a node toward the
54 element-area-weighted centroid of the surrounding elements. </li>
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>
61 \image html image83.gif
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>
78 <li>Click \b Apply or <b> Apply and Close</b> button to confirm the operation.</li>
81 \image html smoothing1.png "The initial mesh"
83 \image html smoothing2.png "The smoothed mesh"
85 <br><b>See Also</b> a sample TUI Script of a
86 \ref tui_smoothing "Smoothing" operation.