Salome HOME
Merging with WPdev
[modules/smesh.git] / doc / salome / gui / SMESH / files / smoothing.htm
1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
2
3 <html>
4
5 <head>
6 <title>Smoothing</title>
7 <meta http-equiv="content-type" content="text/html; charset=windows-1252">
8 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
9 <link rel="stylesheet" href="../default_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">
10 <!--
11 if (navigator.appName !="Netscape")
12 {   document.write("<link rel='stylesheet' href='../default.css'>");}
13 //-->
14 </script>
15 <style type="text/css">
16 <!--
17 img_whs1 { border:none; width:30px; height:30px; float:none; border-style:none; }
18 p.whs2 { margin-left:40px; }
19 img_whs3 { border:none; width:24px; height:25px; border-style:none; }
20 img_whs4 { border:none; width:332px; height:396px; float:none; border-style:none; }
21 ul.whs5 { list-style:disc; }
22 p.whs6 { margin-left:40px; font-weight:normal; }
23 p.whs7 { font-weight:bold; }
24 p.whs8 { margin-left:80px; }
25 img_whs9 { border:none; width:527px; height:281px; border-style:none; }
26 img_whs10 { border:none; float:none; width:353px; height:235px; border-style:none; }
27 img_whs11 { border:none; width:351px; height:235px; float:none; border-style:none; }
28 -->
29 </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
30 <!--
31 function reDo() {
32   if (innerWidth != origWidth || innerHeight != origHeight)
33      location.reload();
34 }
35 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
36         origWidth = innerWidth;
37         origHeight = innerHeight;
38         onresize = reDo;
39 }
40 onerror = null; 
41 //-->
42 </script>
43 <style type="text/css">
44 <!--
45 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
46 p.WebHelpNavBar { text-align:right; }
47 -->
48 </style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>
49 <script type="text/javascript" language="javascript" src="../whver.js"></script>
50 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>
51 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>
52 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>
53 <script type="text/javascript" language="javascript1.2">
54 <!--
55 if (window.gbWhTopic)
56 {
57         if (window.setRelStartPage)
58         {
59         addTocInfo("MESH module\nModifying meshes\nSmoothing");
60 addButton("show",BTN_IMG,"Show","","","","",0,0,"../whd_show0.gif","../whd_show2.gif","../whd_show1.gif");
61 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"../whd_hide0.gif","../whd_hide2.gif","../whd_hide1.gif");
62
63         }
64
65
66         if (window.setRelStartPage)
67         {
68         setRelStartPage("../index.htm");
69
70                 autoSync(1);
71                 sendSyncInfo();
72                 sendAveInfoOut();
73         }
74
75 }
76 else
77         if (window.gbIE4)
78                 document.location.reload();
79 //-->
80 </script>
81 </head>
82 <body><script type="text/javascript" language="javascript1.2">
83 <!--
84 if (window.writeIntopicBar)
85         writeIntopicBar(4);
86 //-->
87 </script>
88 <h1>Smoothing</h1>
89
90 <p><img src="../i_blue.jpg" x-maintain-ratio="TRUE" width="30px" height="30px" border="0" class="img_whs1"> Smoothing is used to adjust the locations of element 
91  corners (nodes) to reduce distortions in these elements.</p>
92
93 <p>&nbsp;</p>
94
95 <p class=TODO>To apply smoothing to the elements of your mesh:</p>
96
97 <p>&nbsp;</p>
98
99 <p class="whs2">1. Display a mesh or a submesh in the 3D 
100  viewer.</p>
101
102 <p class="whs2">2. In the <span style="font-weight: bold;"><B>Modification 
103  </B></span>menu select the <span style="font-weight: bold;"><B>Smoothing </B></span>item 
104  or click <img src="../image84.gif" width="24px" height="25px" border="0" class="img_whs3"> button in the toolbar. The <span style="margin-left: 40px;">dialog 
105  box contains the following fields which should be specified:</span></p>
106
107 <p>&nbsp;</p>
108
109 <p class="whs2"><img src="../pics/smoothing.png" x-maintain-ratio="TRUE" width="332px" height="396px" border="0" class="img_whs4"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
110
111 <ul type="disc" class="whs5">
112         
113         <li class=kadov-p><p class="whs6"><span 
114  style="font-weight: bold;"><B>Id Elements </B></span>field allows to specify 
115  the elements which should be smoothed by selecting them in the 3D viewer 
116  (lock <span style="font-weight: bold;"><B>Shift </B></span>button to select several 
117  elements).</p></li>
118         
119         <ul type="disc" class="whs5">
120                 
121                 <li class=kadov-p><p class="whs7">Select whole mesh, 
122  submesh or group - <span style="font-weight: normal;">smoothing is applied 
123  to the whole mesh or its part.</span></p></li>
124                 
125                 <li class=kadov-p><p><span style="font-weight: bold;"><B>Fixed nodes 
126  ids</B></span>: some nodes keep their location during smoothing. If a mesh 
127  is built on a geometry shape, the nodes built on geometrical edges are 
128  always fixed. If smoothing is applied to a part of a mesh then the boundary 
129  nodes of an elements set are also fixed. Any other nodes may be additionally 
130  fixed.</p></li>
131                 
132                 <li class=kadov-p><p><span style="font-weight: bold;"><B>Smoothing 
133  Method</B></span>:</p></li>
134                 
135                 <ul type="disc" class="whs5">
136                         
137                         <li class=kadov-p><p><span style="font-weight: bold;"><B>Laplacian</B></span> 
138  smoothing pulls a node toward the center of surrounding nodes directly 
139  connected to that node along an element edge. Centroidal smoothing pulls 
140  a node toward the element-area-weighted centroid of the surrounding elements. 
141  Typically, the Laplacian method will produce the mesh with the least element 
142  distortion. It is also the faster method. </p></li>
143                         
144                         <li class=kadov-p><p><span style="font-weight: bold;"><B>Centroidal</B></span> 
145  smoothing usually produces a mesh that has more uniform element sizes. 
146  Both methods produce good results with &quot;free&quot; meshes.</p></li>
147                 </ul>
148         </ul>
149 </ul>
150
151 <p>&nbsp;</p>
152
153 <p class="whs8"><img src="../image83.gif" width="527px" height="281px" border="0" class="img_whs9"></p>
154
155 <ul type="disc" class="whs5">
156         
157         <li class=kadov-p><p class="whs6"><span 
158  style="font-weight: bold;"><B>Iteration limit: </B></span>both of the smoothing 
159  methods use an iterative procedure to converge toward a smoothed mesh. 
160  All nodes are smoothed according to one of the techniques shown above. 
161  Then the smoothing is reevaluated with the updated nodal locations. This 
162  process continues until the maximum number of iterations has been exceeded, 
163  or all elements has aspect ratio less or equal than the specified one.</p></li>
164         
165         <li class=kadov-p><p class="whs6"><span 
166  style="font-weight: bold;"><B>Max. aspect ratio</B></span>.</p></li>
167 </ul>
168
169 <p class="whs2">&nbsp;</p>
170
171 <p class="whs2">3. Click the <span style="font-weight: bold;"><B>Apply 
172  </B></span>or <span style="font-weight: bold;"><B>OK </B></span>button to confirm 
173  the operation.</p>
174
175 <p class="whs2">&nbsp;</p>
176
177 <p class="whs2"><img src="../pics/smoothing1.png" x-maintain-ratio="TRUE" width="353px" height="235px" border="0" class="img_whs10"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../pics/smoothing2.png" x-maintain-ratio="TRUE" width="351px" height="235px" border="0" class="img_whs11"></p>
178
179 <p>&nbsp;</p>
180
181 <p>&nbsp;&nbsp;<span style="font-weight: bold;"><B>See 
182  Also</B></span> a sample TUI Script of a <a href="../modifying_meshes.htm#bookmark8">Smoothing</a> 
183  operation. &nbsp;</p>
184
185 <p>&nbsp;</p>
186
187 <p>&nbsp;</p>
188
189 <script type="text/javascript" language="javascript1.2">
190 <!--
191 if (window.writeIntopicBar)
192         writeIntopicBar(0);
193 //-->
194 </script>
195 </body>
196 </html>