Salome HOME
Merging with WPdev
[modules/smesh.git] / doc / salome / gui / SMESH / files / aspect_ratio.htm
1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
2
3 <html>
4
5 <head>
6 <title>Aspect Ratio</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:120px; height:56px; border-style:none; }
20 ul.whs4 { list-style:disc; }
21 img_whs5 { border:none; width:158px; height:110px; float:none; border-style:none; }
22 img_whs6 { border:none; width:120px; height:48px; float:none; border-style:none; }
23 img_whs7 { border:none; width:234px; height:96px; float:none; border-style:none; }
24 p.whs8 { margin-left:0px; }
25 p.whs9 { margin-left:36px; }
26 img_whs10 { border:none; width:622px; height:412px; float:none; border-style:none; }
27 p.whs11 { margin-left:80px; }
28 img_whs12 { border:none; width:25px; height:24px; border-style:none; }
29 img_whs13 { border:none; width:439px; height:313px; border-style:none; }
30 -->
31 </style><script type="text/javascript" language="JavaScript">
32 <!--
33 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
34 {
35   var strNSS = "<style type='text/css'>";
36   strNSS += "p.whs8 {margin-left:1pt; }";
37   strNSS +="</style>";
38   document.write(strNSS);
39 }
40 //-->
41 </script>
42 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
43 <!--
44 function reDo() {
45   if (innerWidth != origWidth || innerHeight != origHeight)
46      location.reload();
47 }
48 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
49         origWidth = innerWidth;
50         origHeight = innerHeight;
51         onresize = reDo;
52 }
53 onerror = null; 
54 //-->
55 </script>
56 <style type="text/css">
57 <!--
58 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
59 p.WebHelpNavBar { text-align:right; }
60 -->
61 </style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>
62 <script type="text/javascript" language="javascript" src="../whver.js"></script>
63 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>
64 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>
65 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>
66 <script type="text/javascript" language="javascript1.2">
67 <!--
68 if (window.gbWhTopic)
69 {
70         if (window.setRelStartPage)
71         {
72         addTocInfo("MESH module\nQuality controls\nAspect ratio");
73 addButton("show",BTN_IMG,"Show","","","","",0,0,"../whd_show0.gif","../whd_show2.gif","../whd_show1.gif");
74 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"../whd_hide0.gif","../whd_hide2.gif","../whd_hide1.gif");
75
76         }
77
78
79         if (window.setRelStartPage)
80         {
81         setRelStartPage("../index.htm");
82
83                 autoSync(1);
84                 sendSyncInfo();
85                 sendAveInfoOut();
86         }
87
88 }
89 else
90         if (window.gbIE4)
91                 document.location.reload();
92 //-->
93 </script>
94 </head>
95 <body><script type="text/javascript" language="javascript1.2">
96 <!--
97 if (window.writeIntopicBar)
98         writeIntopicBar(4);
99 //-->
100 </script>
101 <h1>Aspect Ratio</h1>
102
103 <p><img src="../i_blue.jpg" x-maintain-ratio="TRUE" width="30px" height="30px" border="0" class="img_whs1"> The <span style="font-weight: bold;"><B>Aspect Ratio</B></span> 
104  quality criterion for mesh elements reveals the degree of conformity of 
105  a mesh element to the regular element of its type (with all edges having 
106  the same length). &nbsp;The 
107  criterion can be defined as </p>
108
109 <p class="whs2"><img src="../image142.gif" width="120px" height="56px" border="0" class="img_whs3">where <span style="font-weight: bold; font-style: italic;"><I><B>&#1050;</B></I></span> 
110  is the considered element of the mesh, <span style="font-weight: bold; font-style: italic;"><I><B>h</B></I></span><span 
111  style="vertical-align: Sub;
112                 font-weight: bold;
113                 font-style: italic;"><I><B>max</B></I></span> is the diameter of the element 
114  &#1050; (i.e. the length of the longest edge), <span style="font-weight: bold; font-style: italic;"><I><B>&#1088;</B></I></span><span 
115  style="vertical-align: Sub;
116                 font-weight: bold;
117                 font-style: italic;"><I><B>&#1082;</B></I></span> is the radius of the sphere 
118  inscribed in the element K, and <span style="font-weight: bold; font-style: italic;"><I><B>a</B></I></span> 
119  is a normalisation value chosen so that <span style="font-weight: bold; font-style: italic;"><I><B>Q</B></I></span><span 
120  style="vertical-align: Sub;
121                 font-weight: bold;
122                 font-style: italic;"><I><B>K</B></I></span> = 1 when &#1050; is an equilateral 
123  simplex. </p>
124
125 <p class="whs2">&nbsp;</p>
126
127 <p>The value of <span style="font-weight: bold; font-style: italic;"><I><B>Q</B></I></span><span 
128  style="vertical-align: Sub;
129                 font-weight: bold;
130                 font-style: italic;"><I><B>K</B></I></span> varies between 1 and +oo and the 
131  closer it is to 1, the better the element &#1050; is. </p>
132
133 <ul type="disc" class="whs4">
134         
135         <li class=kadov-p><p>The <span style="font-weight: bold;"><B>Aspect Ratio</B></span> 
136  of a <span style="font-weight: bold;"><B>triangle</B></span> 2D element consisting 
137  of 3 nodes is calculated by the formula:</p></li>
138 </ul>
139
140 <p>&nbsp;</p>
141
142 <p class="whs2"><img src="../pics/image21.gif" x-maintain-ratio="TRUE" width="158px" height="110px" border="0" class="img_whs5"></p>
143
144 <p class="whs2"><img src="../pics/image23.gif" x-maintain-ratio="TRUE" width="120px" height="48px" border="0" class="img_whs6"> ,</p>
145
146 <p class="whs2">&nbsp;</p>
147
148 <p class="whs2">where <span style="font-weight: bold; font-style: italic;"><I><B>&#1088;</B></I></span><span 
149  style="vertical-align: Sub;
150                 font-weight: bold;
151                 font-style: italic;"><I><B>&#1082;</B></I></span> is the half perimeter of the 
152  element K and <span style="font-weight: bold; font-style: italic;"><I><B>S</B></I></span><span 
153  style="vertical-align: Sub;
154                 font-weight: bold;
155                 font-style: italic;"><I><B>K</B></I></span> is its surface.</p>
156
157 <p class="whs2">&nbsp;</p>
158
159 <p class="whs2"><img src="../pics/image27.gif" x-maintain-ratio="TRUE" width="234px" height="96px" border="0" class="img_whs7"></p>
160
161 <p class="whs8">&nbsp;</p>
162
163 <ul type="disc" class="whs4">
164         
165         <li class=kadov-p><p class="whs8">The <span style="font-weight: bold;"><B>Aspect 
166  Ratio</B></span> of a <span style="font-weight: bold;"><B>quadrangle</B></span> 2D 
167  element consisting of 4 nodes is the worst (i.e. the greatest) value from 
168  all triangles which can be built taking three nodes of the quadrangle. 
169  There are four triangles to consider: </p></li>
170 </ul>
171
172 <p class="whs9"><img src="../pics/image138.gif" x-maintain-ratio="TRUE" width="622px" height="412px" border="0" class="img_whs10"></p>
173
174 <p class="whs9">Note, that the Aspect Ratio criterion is 
175  applicable to 2D mesh elements only. For 3D elements we use the <a href="../aspect_ratio_3d.htm">Aspect 
176  Ratio 3D</a> criterion. &nbsp;&nbsp;</p>
177
178 <p class="whs11">&nbsp;</p>
179
180 <p class=TODO>To apply the Aspect Ratio quality criterion to your mesh:</p>
181
182 <p class=TODO>&nbsp;</p>
183
184 <p class="whs2">1. Display your mesh in the viewer.</p>
185
186 <p class="whs2">&nbsp;</p>
187
188 <p class="whs2">2. Choose <span style="font-weight: bold;"><B>Controls 
189  &gt; Aspect Ratio </B></span>or click <img src="../image37.gif" width="25px" height="24px" border="0" class="img_whs12"> button in the toolbar. 
190  Your mesh will be displayed in the viewer with its elements colored according 
191  to the applied mesh quality control criterion:</p>
192
193 <p class="whs2">&nbsp;</p>
194
195 <p class="whs2"><img src="../image94.jpg" width="439px" height="313px" border="0" class="img_whs13"></p>
196
197 <p class="whs2">&nbsp;</p>
198
199 <p class="whs8"><span style="font-weight: bold;"><B>See Also</B></span> 
200  a sample TUI Script of an <a href="../quality_controls.htm#bookmark8">Aspect 
201  Ratio quality control</a> operation. &nbsp;</p>
202
203 <p>&nbsp;</p>
204
205 <script type="text/javascript" language="javascript1.2">
206 <!--
207 if (window.writeIntopicBar)
208         writeIntopicBar(0);
209 //-->
210 </script>
211 </body>
212 </html>