PageRenderTime 115ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/html/crossSection_8cpp_source.html

https://bitbucket.org/slawton/windturbinemdo-stevebitb
HTML | 2651 lines | 2631 code | 17 blank | 3 comment | 0 complexity | 45f2710d5d6a9745d128959dc7046b84 MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <title>WindTurbineMDO: structural/crossSection/crossSection.cpp Source File</title>
  6. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  7. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  8. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="resize.js"></script>
  11. <script type="text/javascript" src="navtree.js"></script>
  12. <script type="text/javascript">
  13. $(document).ready(initResizable);
  14. </script>
  15. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  16. <script type="text/javascript" src="search/search.js"></script>
  17. <script type="text/javascript">
  18. $(document).ready(function() { searchBox.OnSelectItem(0); });
  19. </script>
  20. </head>
  21. <body>
  22. <div id="top"><!-- do not remove this div! -->
  23. <div id="titlearea">
  24. <table cellspacing="0" cellpadding="0">
  25. <tbody>
  26. <tr style="height: 56px;">
  27. <td style="padding-left: 0.5em;">
  28. <div id="projectname">WindTurbineMDO
  29. </div>
  30. </td>
  31. </tr>
  32. </tbody>
  33. </table>
  34. </div>
  35. <!-- Generated by Doxygen 1.7.5.1 -->
  36. <script type="text/javascript">
  37. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  38. </script>
  39. <div id="navrow1" class="tabs">
  40. <ul class="tablist">
  41. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  42. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  43. <li><a href="annotated.html"><span>Classes</span></a></li>
  44. <li class="current"><a href="files.html"><span>Files</span></a></li>
  45. <li>
  46. <div id="MSearchBox" class="MSearchBoxInactive">
  47. <span class="left">
  48. <img id="MSearchSelect" src="search/mag_sel.png"
  49. onmouseover="return searchBox.OnSearchSelectShow()"
  50. onmouseout="return searchBox.OnSearchSelectHide()"
  51. alt=""/>
  52. <input type="text" id="MSearchField" value="Search" accesskey="S"
  53. onfocus="searchBox.OnSearchFieldFocus(true)"
  54. onblur="searchBox.OnSearchFieldFocus(false)"
  55. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  56. </span><span class="right">
  57. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  58. </span>
  59. </div>
  60. </li>
  61. </ul>
  62. </div>
  63. <div id="navrow2" class="tabs2">
  64. <ul class="tablist">
  65. <li><a href="files.html"><span>File&#160;List</span></a></li>
  66. <li><a href="globals.html"><span>File&#160;Members</span></a></li>
  67. </ul>
  68. </div>
  69. </div>
  70. <div id="side-nav" class="ui-resizable side-nav-resizable">
  71. <div id="nav-tree">
  72. <div id="nav-tree-contents">
  73. </div>
  74. </div>
  75. <div id="splitbar" style="-moz-user-select:none;"
  76. class="ui-resizable-handle">
  77. </div>
  78. </div>
  79. <script type="text/javascript">
  80. initNavTree('crossSection_8cpp.html','');
  81. </script>
  82. <div id="doc-content">
  83. <div class="header">
  84. <div class="headertitle">
  85. <div class="title">structural/crossSection/crossSection.cpp</div> </div>
  86. </div>
  87. <div class="contents">
  88. <a href="crossSection_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
  89. <a name="l00002"></a>00002 <span class="preprocessor">#ifndef CROSS_SECTION_CPP</span>
  90. <a name="l00003"></a><a class="code" href="crossSection_8cpp.html#a9fe51aebb8df6955caf28695b256de17">00003</a> <span class="preprocessor"></span><span class="preprocessor">#define CROSS_SECTION_CPP</span>
  91. <a name="l00004"></a>00004 <span class="preprocessor"></span>
  92. <a name="l00005"></a>00005 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  93. <a name="l00006"></a>00006 <span class="keyword">class </span><a class="code" href="classdesignFunction__cubicSpline.html">designFunction_cubicSpline</a>
  94. <a name="l00007"></a>00007 {
  95. <a name="l00008"></a>00008 <span class="keyword">private</span>:
  96. <a name="l00009"></a>00009
  97. <a name="l00010"></a>00010 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> sz;
  98. <a name="l00011"></a>00011 std::vector&lt;std::vector&lt;dataType&gt; &gt; coeff;
  99. <a name="l00012"></a>00012
  100. <a name="l00013"></a>00013 <span class="keyword">public</span>:
  101. <a name="l00014"></a>00014
  102. <a name="l00015"></a>00015 <span class="comment">// extra_in is the additional points. For example extra_in=1 means there is one mid-point and two end points</span>
  103. <a name="l00016"></a><a class="code" href="classdesignFunction__cubicSpline.html#a9b73e0e423df0272b67b6ca685bf9330">00016</a> <a class="code" href="classdesignFunction__cubicSpline.html#a9b73e0e423df0272b67b6ca685bf9330">designFunction_cubicSpline</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> extra_in=0) : sz(extra_in+2) , coeff(extra_in+1,std::vector&lt;<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;(4,0.0))
  104. <a name="l00017"></a>00017 {}
  105. <a name="l00018"></a>00018
  106. <a name="l00019"></a><a class="code" href="classdesignFunction__cubicSpline.html#a7de8f01f0b228e1de0181c27b0bb66e4">00019</a> <span class="keyword">virtual</span> <a class="code" href="classdesignFunction__cubicSpline.html#a7de8f01f0b228e1de0181c27b0bb66e4">~designFunction_cubicSpline</a>()
  107. <a name="l00020"></a>00020 {}
  108. <a name="l00021"></a>00021
  109. <a name="l00022"></a><a class="code" href="classdesignFunction__cubicSpline.html#a6a1e0261135a0bcaecac4d31f88f4abf">00022</a> <a class="code" href="classdesignFunction__cubicSpline.html">designFunction_cubicSpline&lt;dataType&gt;</a>&amp; <a class="code" href="classdesignFunction__cubicSpline.html#a6a1e0261135a0bcaecac4d31f88f4abf">setExtra</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> extra_in)
  110. <a name="l00023"></a>00023 {
  111. <a name="l00024"></a>00024 sz=2+extra_in;
  112. <a name="l00025"></a>00025 coeff.resize(1+extra_in,std::vector&lt;dataType&gt;(4,0.0));
  113. <a name="l00026"></a>00026 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  114. <a name="l00027"></a>00027 }
  115. <a name="l00028"></a>00028
  116. <a name="l00029"></a><a class="code" href="classdesignFunction__cubicSpline.html#aa132fb6866be3d050b8724ccfc7452b0">00029</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classdesignFunction__cubicSpline.html#aa132fb6866be3d050b8724ccfc7452b0">size</a>()
  117. <a name="l00030"></a>00030 {
  118. <a name="l00031"></a>00031 <span class="keywordflow">return</span> sz;
  119. <a name="l00032"></a>00032 }
  120. <a name="l00033"></a>00033
  121. <a name="l00034"></a><a class="code" href="classdesignFunction__cubicSpline.html#a5862a4bb7a919490d86bd2b5e709e2c2">00034</a> <span class="keywordtype">void</span> <a class="code" href="classdesignFunction__cubicSpline.html#ad2a98be0d34aa42769f9a6999681c337">setDesign</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>&amp; index,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>* x)
  122. <a name="l00035"></a>00035 {
  123. <a name="l00036"></a>00036 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> mtxCnt=(sz-1)*4;
  124. <a name="l00037"></a>00037 <a class="code" href="classmatrixVectorSolver.html">matrixVectorSolver</a> coeffSolver(mtxCnt);
  125. <a name="l00038"></a>00038 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> div=1.0/<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(sz-1);
  126. <a name="l00039"></a>00039
  127. <a name="l00040"></a>00040 <span class="comment">// zero the object</span>
  128. <a name="l00041"></a>00041 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;mtxCnt;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  129. <a name="l00042"></a>00042 {
  130. <a name="l00043"></a>00043 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a8ace97aea50702cb4ccfe299d3e3784a">B</a>().<a class="code" href="classmatrixRdWtVect.html#ab6754006e5bfc55c5a3ade09cb9f5a65">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)=0.0;
  131. <a name="l00044"></a>00044 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> j=0;j&lt;mtxCnt;j++)
  132. <a name="l00045"></a>00045 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a436841316325da875108c1cd9578014a">A</a>().<a class="code" href="classmatrixRdWt.html#a85aaa63333c688527b5e62dbce69cb61">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,j)=0.0;
  133. <a name="l00046"></a>00046 }
  134. <a name="l00047"></a>00047
  135. <a name="l00048"></a>00048 <span class="comment">// populate the position constraints</span>
  136. <a name="l00049"></a>00049 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;((sz-1)*2);<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  137. <a name="l00050"></a>00050 {
  138. <a name="l00051"></a>00051 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(((<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>+1)-(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>+1)%2)/2)*div;
  139. <a name="l00052"></a>00052 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a8ace97aea50702cb4ccfe299d3e3784a">B</a>().<a class="code" href="classmatrixRdWtVect.html#ab6754006e5bfc55c5a3ade09cb9f5a65">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)=x[index+((<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>+1)-(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>+1)%2)/2];
  140. <a name="l00053"></a>00053 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> j=0;j&lt;4;j++)
  141. <a name="l00054"></a>00054 {
  142. <a name="l00055"></a>00055 <span class="keywordflow">if</span>(j==0)
  143. <a name="l00056"></a>00056 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a436841316325da875108c1cd9578014a">A</a>().<a class="code" href="classmatrixRdWt.html#a85aaa63333c688527b5e62dbce69cb61">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>-<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>%2)*2+j)=1.0;
  144. <a name="l00057"></a>00057 <span class="keywordflow">else</span>
  145. <a name="l00058"></a>00058 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a436841316325da875108c1cd9578014a">A</a>().<a class="code" href="classmatrixRdWt.html#a85aaa63333c688527b5e62dbce69cb61">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>-<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>%2)*2+j)=pow(loc,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(j));
  146. <a name="l00059"></a>00059 }
  147. <a name="l00060"></a>00060 }
  148. <a name="l00061"></a>00061
  149. <a name="l00062"></a>00062 <span class="comment">// populate the gradient constraints</span>
  150. <a name="l00063"></a>00063 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=((sz-1)*2);<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;(((sz-1)*2)+(sz-2));<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  151. <a name="l00064"></a>00064 {
  152. <a name="l00065"></a>00065 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> atPnt=<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>-((sz-1)*2)+1;
  153. <a name="l00066"></a>00066 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a8ace97aea50702cb4ccfe299d3e3784a">B</a>().<a class="code" href="classmatrixRdWtVect.html#ab6754006e5bfc55c5a3ade09cb9f5a65">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)=0.0;
  154. <a name="l00067"></a>00067 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(atPnt)*div;
  155. <a name="l00068"></a>00068 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> j=0;j&lt;3;j++)
  156. <a name="l00069"></a>00069 {
  157. <a name="l00070"></a>00070 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> coeff;
  158. <a name="l00071"></a>00071 <span class="keywordflow">if</span>(j==0)
  159. <a name="l00072"></a>00072 coeff=1.0;
  160. <a name="l00073"></a>00073 <span class="keywordflow">else</span>
  161. <a name="l00074"></a>00074 coeff=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(j+1)*pow(loc,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(j));
  162. <a name="l00075"></a>00075 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a436841316325da875108c1cd9578014a">A</a>().<a class="code" href="classmatrixRdWt.html#a85aaa63333c688527b5e62dbce69cb61">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,atPnt*4+j-3)=coeff;
  163. <a name="l00076"></a>00076 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a436841316325da875108c1cd9578014a">A</a>().<a class="code" href="classmatrixRdWt.html#a85aaa63333c688527b5e62dbce69cb61">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,atPnt*4+j+1)=-1.0*coeff;
  164. <a name="l00077"></a>00077 }
  165. <a name="l00078"></a>00078 }
  166. <a name="l00079"></a>00079
  167. <a name="l00080"></a>00080 <span class="comment">// populate the curvature constraints</span>
  168. <a name="l00081"></a>00081 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=(((sz-1)*2)+(sz-2));<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;(((sz-1)*2)+(sz-2)*2);<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  169. <a name="l00082"></a>00082 {
  170. <a name="l00083"></a>00083 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> atPnt=<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>-(((sz-1)*2)+(sz-2))+1;
  171. <a name="l00084"></a>00084 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a8ace97aea50702cb4ccfe299d3e3784a">B</a>().<a class="code" href="classmatrixRdWtVect.html#ab6754006e5bfc55c5a3ade09cb9f5a65">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)=0.0;
  172. <a name="l00085"></a>00085 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(atPnt)*div;
  173. <a name="l00086"></a>00086 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> j=0;j&lt;2;j++)
  174. <a name="l00087"></a>00087 {
  175. <a name="l00088"></a>00088 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> coeff;
  176. <a name="l00089"></a>00089 <span class="keywordflow">if</span>(j==0)
  177. <a name="l00090"></a>00090 coeff=2.0;
  178. <a name="l00091"></a>00091 <span class="keywordflow">else</span>
  179. <a name="l00092"></a>00092 coeff=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(j+2)*<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(j+1)*pow(loc,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(j));
  180. <a name="l00093"></a>00093 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a436841316325da875108c1cd9578014a">A</a>().<a class="code" href="classmatrixRdWt.html#a85aaa63333c688527b5e62dbce69cb61">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,atPnt*4+j-2)=coeff;
  181. <a name="l00094"></a>00094 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a436841316325da875108c1cd9578014a">A</a>().<a class="code" href="classmatrixRdWt.html#a85aaa63333c688527b5e62dbce69cb61">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,atPnt*4+j+2)=-1.0*coeff;
  182. <a name="l00095"></a>00095 }
  183. <a name="l00096"></a>00096 }
  184. <a name="l00097"></a>00097
  185. <a name="l00098"></a>00098 <span class="comment">// set the first point concavity</span>
  186. <a name="l00099"></a>00099 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a8ace97aea50702cb4ccfe299d3e3784a">B</a>().<a class="code" href="classmatrixRdWtVect.html#ab6754006e5bfc55c5a3ade09cb9f5a65">entry</a>(((sz-1)*2)+(sz-2)*2)=0.0;
  187. <a name="l00100"></a>00100 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a436841316325da875108c1cd9578014a">A</a>().<a class="code" href="classmatrixRdWt.html#a85aaa63333c688527b5e62dbce69cb61">entry</a>(((sz-1)*2)+(sz-2)*2,2)=2.0;
  188. <a name="l00101"></a>00101
  189. <a name="l00102"></a>00102 <span class="comment">// set the last point concavity</span>
  190. <a name="l00103"></a>00103 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a8ace97aea50702cb4ccfe299d3e3784a">B</a>().<a class="code" href="classmatrixRdWtVect.html#ab6754006e5bfc55c5a3ade09cb9f5a65">entry</a>(((sz-1)*2)+(sz-2)*2+1)=0.0;
  191. <a name="l00104"></a>00104 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> j=0;j&lt;2;j++)
  192. <a name="l00105"></a>00105 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a436841316325da875108c1cd9578014a">A</a>().<a class="code" href="classmatrixRdWt.html#a85aaa63333c688527b5e62dbce69cb61">entry</a>(((sz-1)*2)+(sz-2)*2+1,((sz-1)*2)+(sz-2)*2+j)=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(j+1)*<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(j+2);
  193. <a name="l00106"></a>00106
  194. <a name="l00107"></a>00107 <span class="comment">// solve the system</span>
  195. <a name="l00108"></a>00108 coeffSolver.<a class="code" href="classmatrixVectorSolver.html#ab9b2e9bb3706acc5807ad4ec49a7a7b7">solve</a>();
  196. <a name="l00109"></a>00109
  197. <a name="l00110"></a>00110 <span class="comment">// save the results</span>
  198. <a name="l00111"></a>00111 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;(sz-1);<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  199. <a name="l00112"></a>00112 {
  200. <a name="l00113"></a>00113 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> j=0;j&lt;4;j++)
  201. <a name="l00114"></a>00114 coeff[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>][j]=coeffSolver.<a class="code" href="classmatrixVectorSolver.html#a8ace97aea50702cb4ccfe299d3e3784a">B</a>().<a class="code" href="classmatrixRdWtVect.html#ab6754006e5bfc55c5a3ade09cb9f5a65">entry</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>*4+j);
  202. <a name="l00115"></a>00115 }
  203. <a name="l00116"></a>00116
  204. <a name="l00117"></a>00117 index+=sz;
  205. <a name="l00118"></a>00118 }
  206. <a name="l00119"></a>00119
  207. <a name="l00120"></a><a class="code" href="classdesignFunction__cubicSpline.html#a334b91b84b04d5631e6a9701b85cf5c1">00120</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classdesignFunction__cubicSpline.html#a334b91b84b04d5631e6a9701b85cf5c1">value</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> location)<span class="keyword"> const</span>
  208. <a name="l00121"></a>00121 <span class="keyword"> </span>{
  209. <a name="l00122"></a>00122 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> div=1.0/<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(sz-1);
  210. <a name="l00123"></a>00123 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> atPoly;
  211. <a name="l00124"></a>00124 <span class="keywordflow">if</span>(location==0.0)
  212. <a name="l00125"></a>00125 atPoly=0;
  213. <a name="l00126"></a>00126 <span class="keywordflow">else</span>
  214. <a name="l00127"></a>00127 atPoly=(<span class="keywordtype">unsigned</span> long)ceil(location/div)-1;
  215. <a name="l00128"></a>00128
  216. <a name="l00129"></a>00129 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> retVal=0.0;
  217. <a name="l00130"></a>00130 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> j=0;j&lt;4;j++)
  218. <a name="l00131"></a>00131 {
  219. <a name="l00132"></a>00132 <span class="keywordflow">if</span>(j==0)
  220. <a name="l00133"></a>00133 retVal+=coeff[atPoly][j];
  221. <a name="l00134"></a>00134 <span class="keywordflow">else</span>
  222. <a name="l00135"></a>00135 retVal+=coeff[atPoly][j]*pow(location,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(j));
  223. <a name="l00136"></a>00136 }
  224. <a name="l00137"></a>00137
  225. <a name="l00138"></a>00138 <span class="keywordflow">return</span> retVal;
  226. <a name="l00139"></a>00139 }
  227. <a name="l00140"></a>00140 };
  228. <a name="l00141"></a>00141
  229. <a name="l00142"></a>00142 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  230. <a name="l00143"></a><a class="code" href="classcxDesignBoxDesign.html">00143</a> <span class="keyword">class </span><a class="code" href="classcxDesignBoxDesign.html">cxDesignBoxDesign</a>
  231. <a name="l00144"></a>00144 {
  232. <a name="l00145"></a>00145 <span class="keyword">public</span>:
  233. <a name="l00146"></a>00146
  234. <a name="l00147"></a><a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">00147</a> std::vector&lt;dataType&gt; <a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>;
  235. <a name="l00148"></a><a class="code" href="classcxDesignBoxDesign.html#ae306bbc9d412742a3ad48809bc4df74d">00148</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcxDesignBoxDesign.html#ae306bbc9d412742a3ad48809bc4df74d">matl</a>;
  236. <a name="l00149"></a>00149
  237. <a name="l00150"></a><a class="code" href="classcxDesignBoxDesign.html#ae0d81932fad8a722a48b8c5afe158617">00150</a> <a class="code" href="classcxDesignBoxDesign.html#ae0d81932fad8a722a48b8c5afe158617">cxDesignBoxDesign</a>()
  238. <a name="l00151"></a>00151 {}
  239. <a name="l00152"></a>00152
  240. <a name="l00153"></a><a class="code" href="classcxDesignBoxDesign.html#aa777a147b7560abc4ab86517ac98d645">00153</a> <a class="code" href="classcxDesignBoxDesign.html#ae0d81932fad8a722a48b8c5afe158617">cxDesignBoxDesign</a>(<span class="keyword">const</span> <a class="code" href="classcxDesignBoxDesign.html">cxDesignBoxDesign&lt;dataType&gt;</a>&amp; asg)
  241. <a name="l00154"></a>00154 : <a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>(asg.<a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>)
  242. <a name="l00155"></a>00155 , <a class="code" href="classcxDesignBoxDesign.html#ae306bbc9d412742a3ad48809bc4df74d">matl</a>(asg.<a class="code" href="classcxDesignBoxDesign.html#ae306bbc9d412742a3ad48809bc4df74d">matl</a>)
  243. <a name="l00156"></a>00156 {}
  244. <a name="l00157"></a>00157
  245. <a name="l00158"></a><a class="code" href="classcxDesignBoxDesign.html#a4da63c2c99b3611b1953309dbec72af0">00158</a> <a class="code" href="classcxDesignBoxDesign.html">cxDesignBoxDesign&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignBoxDesign.html#a4da63c2c99b3611b1953309dbec72af0">operator=</a>(<span class="keyword">const</span> <a class="code" href="classcxDesignBoxDesign.html">cxDesignBoxDesign&lt;dataType&gt;</a>&amp; asg)
  246. <a name="l00159"></a>00159 {
  247. <a name="l00160"></a>00160 this-&gt;<a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>=asg.<a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>;
  248. <a name="l00161"></a>00161 this-&gt;<a class="code" href="classcxDesignBoxDesign.html#ae306bbc9d412742a3ad48809bc4df74d">matl</a>=asg.<a class="code" href="classcxDesignBoxDesign.html#ae306bbc9d412742a3ad48809bc4df74d">matl</a>;
  249. <a name="l00162"></a>00162
  250. <a name="l00163"></a>00163 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  251. <a name="l00164"></a>00164 }
  252. <a name="l00165"></a>00165 };
  253. <a name="l00166"></a>00166
  254. <a name="l00167"></a>00167 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  255. <a name="l00168"></a><a class="code" href="classcxDesign.html">00168</a> <span class="keyword">class </span><a class="code" href="classcxDesign.html">cxDesign</a>
  256. <a name="l00169"></a>00169 {
  257. <a name="l00170"></a>00170 <span class="keyword">public</span>:
  258. <a name="l00171"></a>00171
  259. <a name="l00172"></a><a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842">00172</a> <span class="keyword">enum</span> <a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842">cxDesignType</a>
  260. <a name="l00173"></a>00173 {
  261. <a name="l00174"></a><a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842a41ed5786746ac614cf6540eddf3408f0">00174</a> <a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842a41ed5786746ac614cf6540eddf3408f0">SKIN</a>
  262. <a name="l00175"></a><a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842a55b034e35cf29c415a99969c055a74e9">00175</a> , <a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842a55b034e35cf29c415a99969c055a74e9">SPAR_CAP</a>
  263. <a name="l00176"></a><a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842af99d8bdf130400b1688f1cebe7e6bfe9">00176</a> , <a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842af99d8bdf130400b1688f1cebe7e6bfe9">SHEAR_WEB</a>
  264. <a name="l00177"></a>00177 };
  265. <a name="l00178"></a>00178
  266. <a name="l00179"></a>00179 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classcxDesign.html#ad3deaab2c7f4e4966edd031d71c21423">getSectionCount</a>(<a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842">cxDesignType</a> sectType) <span class="keyword">const</span>=0;
  267. <a name="l00180"></a>00180 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classcxDesignBoxDesign.html">cxDesignBoxDesign&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842">cxDesignType</a> sectType, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> atSct) <span class="keyword">const</span>=0;
  268. <a name="l00181"></a>00181 };
  269. <a name="l00182"></a>00182
  270. <a name="l00183"></a>00183 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  271. <a name="l00184"></a><a class="code" href="classcxDesign__data.html">00184</a> <span class="keyword">class </span><a class="code" href="classcxDesign__data.html">cxDesign_data</a>
  272. <a name="l00185"></a>00185 : <span class="keyword">public</span> <a class="code" href="classcxDesign.html">cxDesign</a>&lt;dataType&gt;
  273. <a name="l00186"></a>00186 {
  274. <a name="l00187"></a>00187 <span class="keyword">private</span>:
  275. <a name="l00188"></a>00188
  276. <a name="l00189"></a>00189 std::vector&lt;cxDesignBoxDesign&lt;dataType&gt; &gt; skinBox;
  277. <a name="l00190"></a>00190 std::vector&lt;cxDesignBoxDesign&lt;dataType&gt; &gt; capBox;
  278. <a name="l00191"></a>00191 std::vector&lt;cxDesignBoxDesign&lt;dataType&gt; &gt; webBox;
  279. <a name="l00192"></a>00192
  280. <a name="l00193"></a>00193 <span class="keyword">public</span>:
  281. <a name="l00194"></a>00194
  282. <a name="l00195"></a><a class="code" href="classcxDesign__data.html#a76611d924433bf6e1cbf92cd458a92c5">00195</a> <a class="code" href="classcxDesign__data.html#a76611d924433bf6e1cbf92cd458a92c5">cxDesign_data</a>()
  283. <a name="l00196"></a>00196 {}
  284. <a name="l00197"></a>00197
  285. <a name="l00198"></a><a class="code" href="classcxDesign__data.html#a69a7e279885e0e9b0dff21bf488cc6c2">00198</a> <a class="code" href="classcxDesign__data.html#a69a7e279885e0e9b0dff21bf488cc6c2">~cxDesign_data</a>()
  286. <a name="l00199"></a>00199 {}
  287. <a name="l00200"></a>00200
  288. <a name="l00201"></a><a class="code" href="classcxDesign__data.html#abdb4313be8998bf9da4dfe629ca3ccdd">00201</a> <a class="code" href="classcxDesign__data.html">cxDesign_data&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesign__data.html#abdb4313be8998bf9da4dfe629ca3ccdd">setSkinCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> skinCnt)
  289. <a name="l00202"></a>00202 {
  290. <a name="l00203"></a>00203 skinBox.resize(skinCnt);
  291. <a name="l00204"></a>00204
  292. <a name="l00205"></a>00205 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  293. <a name="l00206"></a>00206 }
  294. <a name="l00207"></a>00207
  295. <a name="l00208"></a><a class="code" href="classcxDesign__data.html#a3e8415914f6d7ef4917cafd68a35dec5">00208</a> <a class="code" href="classcxDesign__data.html">cxDesign_data&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesign__data.html#a3e8415914f6d7ef4917cafd68a35dec5">setCapCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> capCnt)
  296. <a name="l00209"></a>00209 {
  297. <a name="l00210"></a>00210 capBox.resize(capCnt);
  298. <a name="l00211"></a>00211
  299. <a name="l00212"></a>00212 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  300. <a name="l00213"></a>00213 }
  301. <a name="l00214"></a>00214
  302. <a name="l00215"></a><a class="code" href="classcxDesign__data.html#abf85ff32f5f132c5960064bffeeddbdb">00215</a> <a class="code" href="classcxDesign__data.html">cxDesign_data&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesign__data.html#abf85ff32f5f132c5960064bffeeddbdb">setWebCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> webCnt)
  303. <a name="l00216"></a>00216 {
  304. <a name="l00217"></a>00217 webBox.resize(webCnt);
  305. <a name="l00218"></a>00218
  306. <a name="l00219"></a>00219 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  307. <a name="l00220"></a>00220 }
  308. <a name="l00221"></a>00221
  309. <a name="l00222"></a><a class="code" href="classcxDesign__data.html#a79a67123447c0647d293746d64b63e36">00222</a> <a class="code" href="classcxDesign__data.html">cxDesign_data&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesign__data.html#a79a67123447c0647d293746d64b63e36">setSkin</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at,<span class="keyword">const</span> <a class="code" href="classcxDesignBoxDesign.html">cxDesignBoxDesign&lt;dataType&gt;</a>&amp; box_in)
  310. <a name="l00223"></a>00223 {
  311. <a name="l00224"></a>00224 <span class="keywordflow">if</span>(at&gt;=skinBox.size())
  312. <a name="l00225"></a>00225 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesign_data&lt;dataType&gt;::setSkin(): The box does not exist&quot;</span>);
  313. <a name="l00226"></a>00226
  314. <a name="l00227"></a>00227 skinBox[at]=box_in;
  315. <a name="l00228"></a>00228
  316. <a name="l00229"></a>00229 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  317. <a name="l00230"></a>00230 }
  318. <a name="l00231"></a>00231
  319. <a name="l00232"></a><a class="code" href="classcxDesign__data.html#a5bba46f5494ccfe7e50e0b3caa1c7473">00232</a> <a class="code" href="classcxDesign__data.html">cxDesign_data&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesign__data.html#a5bba46f5494ccfe7e50e0b3caa1c7473">setCap</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at,<span class="keyword">const</span> <a class="code" href="classcxDesignBoxDesign.html">cxDesignBoxDesign&lt;dataType&gt;</a>&amp; box_in)
  320. <a name="l00233"></a>00233 {
  321. <a name="l00234"></a>00234 <span class="keywordflow">if</span>(at&gt;=capBox.size())
  322. <a name="l00235"></a>00235 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesign_data&lt;dataType&gt;::setCap(): The box does not exist&quot;</span>);
  323. <a name="l00236"></a>00236
  324. <a name="l00237"></a>00237 capBox[at]=box_in;
  325. <a name="l00238"></a>00238
  326. <a name="l00239"></a>00239 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  327. <a name="l00240"></a>00240 }
  328. <a name="l00241"></a>00241
  329. <a name="l00242"></a><a class="code" href="classcxDesign__data.html#add511bc3867682a8c02a044501a898f1">00242</a> <a class="code" href="classcxDesign__data.html">cxDesign_data&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesign__data.html#add511bc3867682a8c02a044501a898f1">setWeb</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at,<span class="keyword">const</span> <a class="code" href="classcxDesignBoxDesign.html">cxDesignBoxDesign&lt;dataType&gt;</a>&amp; box_in)
  330. <a name="l00243"></a>00243 {
  331. <a name="l00244"></a>00244 <span class="keywordflow">if</span>(at&gt;=webBox.size())
  332. <a name="l00245"></a>00245 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesign_data&lt;dataType&gt;::setWeb(): The box does not exist&quot;</span>);
  333. <a name="l00246"></a>00246
  334. <a name="l00247"></a>00247 webBox[at]=box_in;
  335. <a name="l00248"></a>00248
  336. <a name="l00249"></a>00249 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  337. <a name="l00250"></a>00250 }
  338. <a name="l00251"></a>00251
  339. <a name="l00252"></a><a class="code" href="classcxDesign__data.html#a05df318487c73176f75765519ae5424b">00252</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classcxDesign__data.html#a05df318487c73176f75765519ae5424b">getSectionCount</a>(<span class="keyword">typename</span> <a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842">cxDesign&lt;dataType&gt;::cxDesignType</a> sectType)<span class="keyword"> const</span>
  340. <a name="l00253"></a>00253 <span class="keyword"> </span>{
  341. <a name="l00254"></a>00254 <span class="keywordflow">switch</span>(sectType)
  342. <a name="l00255"></a>00255 {
  343. <a name="l00256"></a>00256 <span class="keywordflow">case</span> <a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>:
  344. <a name="l00257"></a>00257 <span class="keywordflow">return</span> skinBox.size();
  345. <a name="l00258"></a>00258 <span class="keywordflow">break</span>;
  346. <a name="l00259"></a>00259 <span class="keywordflow">case</span> <a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SPAR_CAP</a>:
  347. <a name="l00260"></a>00260 <span class="keywordflow">return</span> capBox.size();
  348. <a name="l00261"></a>00261 <span class="keywordflow">break</span>;
  349. <a name="l00262"></a>00262 <span class="keywordflow">case</span> <a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SHEAR_WEB</a>:
  350. <a name="l00263"></a>00263 <span class="keywordflow">return</span> webBox.size();
  351. <a name="l00264"></a>00264 <span class="keywordflow">break</span>;
  352. <a name="l00265"></a>00265 <span class="keywordflow">default</span>:
  353. <a name="l00266"></a>00266 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesign_data&lt;dataType&gt;::getSectionCount(): The switch case statement has not been fully implemented&quot;</span>);
  354. <a name="l00267"></a>00267 }
  355. <a name="l00268"></a>00268 }
  356. <a name="l00269"></a>00269
  357. <a name="l00270"></a><a class="code" href="classcxDesign__data.html#af3c0cacf1b56a18e2470cb44e005f522">00270</a> <span class="keyword">const</span> <a class="code" href="classcxDesignBoxDesign.html">cxDesignBoxDesign&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesign__data.html#af3c0cacf1b56a18e2470cb44e005f522">getSectionDesign</a>(<span class="keyword">typename</span> <a class="code" href="classcxDesign.html#a1680dea6da3ed1ba3b327feb2663c842">cxDesign&lt;dataType&gt;::cxDesignType</a> sectType, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> atSct)<span class="keyword"> const</span>
  358. <a name="l00271"></a>00271 <span class="keyword"> </span>{
  359. <a name="l00272"></a>00272 <span class="keywordflow">switch</span>(sectType)
  360. <a name="l00273"></a>00273 {
  361. <a name="l00274"></a>00274 <span class="keywordflow">case</span> <a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>:
  362. <a name="l00275"></a>00275 <span class="keywordflow">if</span>(atSct&gt;=skinBox.size())
  363. <a name="l00276"></a>00276 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesign_data&lt;dataType&gt;::getSectionDesign(): The box does not exist&quot;</span>);
  364. <a name="l00277"></a>00277 <span class="keywordflow">return</span> skinBox[atSct];
  365. <a name="l00278"></a>00278 <span class="keywordflow">break</span>;
  366. <a name="l00279"></a>00279 <span class="keywordflow">case</span> <a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SPAR_CAP</a>:
  367. <a name="l00280"></a>00280 <span class="keywordflow">if</span>(atSct&gt;=capBox.size())
  368. <a name="l00281"></a>00281 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesign_data&lt;dataType&gt;::getSectionDesign(): The box does not exist&quot;</span>);
  369. <a name="l00282"></a>00282 <span class="keywordflow">return</span> capBox[atSct];
  370. <a name="l00283"></a>00283 <span class="keywordflow">break</span>;
  371. <a name="l00284"></a>00284 <span class="keywordflow">case</span> <a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SHEAR_WEB</a>:
  372. <a name="l00285"></a>00285 <span class="keywordflow">if</span>(atSct&gt;=webBox.size())
  373. <a name="l00286"></a>00286 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesign_data&lt;dataType&gt;::getSectionDesign(): The box does not exist&quot;</span>);
  374. <a name="l00287"></a>00287 <span class="keywordflow">return</span> webBox[atSct];
  375. <a name="l00288"></a>00288 <span class="keywordflow">break</span>;
  376. <a name="l00289"></a>00289 <span class="keywordflow">default</span>:
  377. <a name="l00290"></a>00290 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesign_data&lt;dataType&gt;::getSectionCount(): The switch case statement has not been fully implemented&quot;</span>);
  378. <a name="l00291"></a>00291 }
  379. <a name="l00292"></a>00292 }
  380. <a name="l00293"></a>00293 };
  381. <a name="l00294"></a>00294
  382. <a name="l00295"></a><a class="code" href="classcxBlade__base.html">00295</a> <span class="keyword">class </span><a class="code" href="classcxBlade__base.html">cxBlade_base</a>
  383. <a name="l00296"></a>00296 {
  384. <a name="l00297"></a>00297 <span class="keyword">public</span>:
  385. <a name="l00298"></a>00298
  386. <a name="l00299"></a>00299 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classcxBlade__base.html#a22549075188de1d743f2f743c427485c">cxCount</a>()=0;
  387. <a name="l00300"></a>00300 };
  388. <a name="l00301"></a>00301
  389. <a name="l00302"></a>00302 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  390. <a name="l00303"></a><a class="code" href="classcxBlade__designInput.html">00303</a> <span class="keyword">class </span><a class="code" href="classcxBlade__designInput.html">cxBlade_designInput</a>
  391. <a name="l00304"></a>00304 : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="classcxBlade__base.html">cxBlade_base</a>
  392. <a name="l00305"></a>00305 {
  393. <a name="l00306"></a>00306 <span class="keyword">public</span>:
  394. <a name="l00307"></a>00307
  395. <a name="l00308"></a>00308 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classcxBlade__designInput.html#a968ccdf37eae7566f6d8db99ac4a8e00">setCrossSectionCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> cxLocs)=0;
  396. <a name="l00309"></a>00309 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classcxBlade__designInput.html#a635c36d3b2ec4d6f1485ba5d51d4e0ee">setCXPosition</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at, <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> position_in)=0;
  397. <a name="l00310"></a>00310 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classcxBlade__designInput.html#a3a4f1cae6fbb8ea07ec73cede1a18408">setCXDesign</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at, <a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;</a>&amp; design_in)=0;
  398. <a name="l00311"></a>00311 };
  399. <a name="l00312"></a>00312
  400. <a name="l00313"></a>00313 <span class="comment">// template&lt;class dataType&gt;</span>
  401. <a name="l00314"></a>00314 <span class="comment">// class cxBlade_sectionStiffness</span>
  402. <a name="l00315"></a>00315 <span class="comment">// : public virtual cxBlade_base</span>
  403. <a name="l00316"></a>00316 <span class="comment">// {</span>
  404. <a name="l00317"></a>00317 <span class="comment">// public:</span>
  405. <a name="l00318"></a>00318 <span class="comment">// </span>
  406. <a name="l00319"></a>00319 <span class="comment">// virtual matrixRdWtStaticSqr_Data&lt;dataType,6&gt; getSectionStiffness(unsigned long at)=0;</span>
  407. <a name="l00320"></a>00320 <span class="comment">// };</span>
  408. <a name="l00321"></a>00321
  409. <a name="l00322"></a>00322 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  410. <a name="l00323"></a><a class="code" href="classcxBlade__bladeStiffness.html">00323</a> <span class="keyword">class </span><a class="code" href="classcxBlade__bladeStiffness.html">cxBlade_bladeStiffness</a>
  411. <a name="l00324"></a>00324 : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="classcxBlade__base.html">cxBlade_base</a>
  412. <a name="l00325"></a>00325 {
  413. <a name="l00326"></a>00326 <span class="keyword">public</span>:
  414. <a name="l00327"></a>00327
  415. <a name="l00328"></a>00328 <span class="keyword">virtual</span> <a class="code" href="classmatrixRdWtStaticSqr__Data.html">matrixRdWtStaticSqr_Data&lt;dataType,6&gt;</a> <a class="code" href="classcxBlade__bladeStiffness.html#a067ae7eae12af4a1c56f82fc139e7352">getBladeStiffness</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> at)=0;
  416. <a name="l00329"></a>00329 };
  417. <a name="l00330"></a>00330
  418. <a name="l00331"></a>00331
  419. <a name="l00332"></a>00332 <span class="comment">// slab( startFirstTaper , endFirstTaper , startSecondTaper , endSecondTaper , thickness , material( angle ) )</span>
  420. <a name="l00333"></a>00333 <span class="comment">// </span>
  421. <a name="l00334"></a>00334 <span class="comment">// thickness_real = thickness * scale</span>
  422. <a name="l00335"></a>00335 <span class="comment">// </span>
  423. <a name="l00336"></a>00336 <span class="comment">// h_max</span>
  424. <a name="l00337"></a>00337
  425. <a name="l00338"></a>00338
  426. <a name="l00339"></a>00339 <span class="comment">// spline input</span>
  427. <a name="l00340"></a>00340
  428. <a name="l00341"></a>00341 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  429. <a name="l00342"></a><a class="code" href="classcxDesignerSplineSparCap.html">00342</a> <span class="keyword">class </span><a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap</a>
  430. <a name="l00343"></a>00343 {
  431. <a name="l00344"></a>00344 <span class="keyword">private</span>:
  432. <a name="l00345"></a>00345
  433. <a name="l00346"></a>00346 <a class="code" href="classdesignFunction__cubicSpline.html">designFunction_cubicSpline&lt;dataType&gt;</a> desFunc;
  434. <a name="l00347"></a>00347
  435. <a name="l00348"></a>00348 std::vector&lt;dataType&gt; cxLocs;
  436. <a name="l00349"></a>00349 std::vector&lt;cxDesign_data&lt;dataType&gt; &gt; cxDesigns;
  437. <a name="l00350"></a>00350 std::vector&lt;std::vector&lt;constituitive_orthotropicLaminateLayer&lt;dataType&gt; &gt; &gt; materials;
  438. <a name="l00351"></a>00351
  439. <a name="l00352"></a>00352 <a class="code" href="classmatrixRdWtStaticSqr__Data.html">matrixRdWtStaticSqr_Data&lt;dataType,6&gt;</a> matlMtx;
  440. <a name="l00353"></a>00353 <a class="code" href="classfailureModel.html">failureModel&lt;dataType&gt;</a>* flrMdl;
  441. <a name="l00354"></a>00354
  442. <a name="l00355"></a>00355 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> skinLayers; <span class="comment">// 4</span>
  443. <a name="l00356"></a>00356 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> capLayers; <span class="comment">// 10-20</span>
  444. <a name="l00357"></a>00357 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> webLayers; <span class="comment">// 20</span>
  445. <a name="l00358"></a>00358 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> skinThick; <span class="comment">// 0.006</span>
  446. <a name="l00359"></a>00359 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> webThick; <span class="comment">// 0.03</span>
  447. <a name="l00360"></a>00360
  448. <a name="l00361"></a>00361 <a class="code" href="classfunction.html">function&lt;dataType,dataType&gt;</a>* chord;
  449. <a name="l00362"></a>00362
  450. <a name="l00363"></a>00363 <a class="code" href="classcxBlade__designInput.html">cxBlade_designInput&lt;dataType&gt;</a>* blade;
  451. <a name="l00364"></a>00364
  452. <a name="l00365"></a>00365 <span class="keywordtype">bool</span> deleteFlrMdl;
  453. <a name="l00366"></a>00366 <span class="keywordtype">bool</span> deleteChord;
  454. <a name="l00367"></a>00367 <span class="keywordtype">bool</span> deleteBlade;
  455. <a name="l00368"></a>00368
  456. <a name="l00369"></a>00369 <span class="keywordtype">void</span> setH(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> h)
  457. <a name="l00370"></a>00370 {
  458. <a name="l00371"></a>00371 <span class="keywordflow">if</span>(at&gt;=cxLocs.size())
  459. <a name="l00372"></a>00372 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesignerSplineSparCap::setH(): The cx does not exist&quot;</span>);
  460. <a name="l00373"></a>00373 <span class="keywordflow">if</span>(chord==NULL)
  461. <a name="l00374"></a>00374 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesignerSplineSparCap::setH(): The chord has not been set&quot;</span>);
  462. <a name="l00375"></a>00375
  463. <a name="l00376"></a>00376 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> chrdVal=chord-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocs[at]);
  464. <a name="l00377"></a>00377
  465. <a name="l00378"></a>00378 <a class="code" href="classcxDesignBoxDesign.html">cxDesignBoxDesign&lt;dataType&gt;</a> tmpBox;
  466. <a name="l00379"></a>00379
  467. <a name="l00380"></a>00380 cxDesigns[at].setSkinCount(1).setCapCount(2).setWebCount(2);
  468. <a name="l00381"></a>00381
  469. <a name="l00382"></a>00382 <span class="comment">// The skin design</span>
  470. <a name="l00383"></a>00383 <span class="keywordflow">if</span>(skinLayers&lt;2)
  471. <a name="l00384"></a>00384 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesignerSplineSparCap::setH(): The skin layers must be at lease 2&quot;</span>);
  472. <a name="l00385"></a>00385 materials[at][0].setFailureModel(flrMdl,<span class="keyword">false</span>);
  473. <a name="l00386"></a>00386 materials[at][0].setMatrix(matlMtx);
  474. <a name="l00387"></a>00387 materials[at][0].setExtraBinCount(skinLayers-2);
  475. <a name="l00388"></a>00388 tmpBox.<a class="code" href="classcxDesignBoxDesign.html#ae306bbc9d412742a3ad48809bc4df74d">matl</a>=&amp;materials[at][0];
  476. <a name="l00389"></a>00389 tmpBox.<a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>.resize(skinLayers);
  477. <a name="l00390"></a>00390 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;skinLayers;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  478. <a name="l00391"></a>00391 {
  479. <a name="l00392"></a>00392 tmpBox.<a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)*skinThick/(chrdVal*<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(skinLayers-1));
  480. <a name="l00393"></a>00393 materials[at][0].setBoundary(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)/<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(capLayers-1));
  481. <a name="l00394"></a>00394 <span class="keywordflow">if</span>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;(skinLayers-1))
  482. <a name="l00395"></a>00395 {
  483. <a name="l00396"></a>00396 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> ang;
  484. <a name="l00397"></a>00397 <span class="keywordflow">switch</span>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>%3)
  485. <a name="l00398"></a>00398 {
  486. <a name="l00399"></a>00399 <span class="keywordflow">case</span> 0:
  487. <a name="l00400"></a>00400 ang=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0);
  488. <a name="l00401"></a>00401 <span class="keywordflow">break</span>;
  489. <a name="l00402"></a>00402 <span class="keywordflow">case</span> 1:
  490. <a name="l00403"></a>00403 ang=<a class="code" href="classglobal.html">global&lt;dataType&gt;::pi</a>/<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(4.0);
  491. <a name="l00404"></a>00404 <span class="keywordflow">break</span>;
  492. <a name="l00405"></a>00405 <span class="keywordflow">case</span> 2:
  493. <a name="l00406"></a>00406 ang=-<a class="code" href="classglobal.html">global&lt;dataType&gt;::pi</a>/<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(4.0);
  494. <a name="l00407"></a>00407 <span class="keywordflow">break</span>;
  495. <a name="l00408"></a>00408 }
  496. <a name="l00409"></a>00409 <span class="comment">// DEBUG</span>
  497. <a name="l00410"></a>00410 <span class="comment">// ang=dataType(0.0);</span>
  498. <a name="l00411"></a>00411 materials[at][0].setAngle(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,ang);
  499. <a name="l00412"></a>00412 }
  500. <a name="l00413"></a>00413 }
  501. <a name="l00414"></a>00414 cxDesigns[at].setSkin(0,tmpBox);
  502. <a name="l00415"></a>00415
  503. <a name="l00416"></a>00416 <span class="comment">// the spar caps</span>
  504. <a name="l00417"></a>00417 <span class="keywordflow">if</span>(capLayers&lt;2)
  505. <a name="l00418"></a>00418 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesignerSplineSparCap::setH(): The cap layers must be at lease 2&quot;</span>);
  506. <a name="l00419"></a>00419 materials[at][1].setFailureModel(flrMdl,<span class="keyword">false</span>);
  507. <a name="l00420"></a>00420 materials[at][1].setMatrix(matlMtx);
  508. <a name="l00421"></a>00421 materials[at][1].setExtraBinCount(capLayers-2);
  509. <a name="l00422"></a>00422 tmpBox.<a class="code" href="classcxDesignBoxDesign.html#ae306bbc9d412742a3ad48809bc4df74d">matl</a>=&amp;materials[at][1];
  510. <a name="l00423"></a>00423 tmpBox.<a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>.resize(capLayers-1);
  511. <a name="l00424"></a>00424 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;capLayers;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  512. <a name="l00425"></a>00425 {
  513. <a name="l00426"></a>00426 <span class="keywordflow">if</span>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&gt;0)
  514. <a name="l00427"></a>00427 tmpBox.<a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>-1]=(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)*(h/<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(capLayers-1))+skinThick)/(chrdVal);
  515. <a name="l00428"></a>00428 materials[at][1].setBoundary(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)/<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(capLayers-1));
  516. <a name="l00429"></a>00429 <span class="keywordflow">if</span>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;(capLayers-1))
  517. <a name="l00430"></a>00430 materials[at][1].setAngle(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0));
  518. <a name="l00431"></a>00431 }
  519. <a name="l00432"></a>00432 cxDesigns[at].setCap(0,tmpBox);
  520. <a name="l00433"></a>00433 cxDesigns[at].setCap(1,tmpBox);
  521. <a name="l00434"></a>00434
  522. <a name="l00435"></a>00435 <span class="comment">// web design</span>
  523. <a name="l00436"></a>00436 <span class="keywordflow">if</span>(webLayers&lt;2)
  524. <a name="l00437"></a>00437 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesignerSplineSparCap::setH(): The web layers must be at lease 2&quot;</span>);
  525. <a name="l00438"></a>00438 materials[at][2].setFailureModel(flrMdl,<span class="keyword">false</span>);
  526. <a name="l00439"></a>00439 materials[at][2].setMatrix(matlMtx);
  527. <a name="l00440"></a>00440 materials[at][2].setExtraBinCount(webLayers-2);
  528. <a name="l00441"></a>00441 tmpBox.<a class="code" href="classcxDesignBoxDesign.html#ae306bbc9d412742a3ad48809bc4df74d">matl</a>=&amp;materials[at][2];
  529. <a name="l00442"></a>00442 tmpBox.<a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>.resize(webLayers);
  530. <a name="l00443"></a>00443 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;webLayers;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  531. <a name="l00444"></a>00444 {
  532. <a name="l00445"></a>00445 tmpBox.<a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)*webThick/(chrdVal*<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(webLayers-1));
  533. <a name="l00446"></a>00446 materials[at][2].setBoundary(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,tmpBox.<a class="code" href="classcxDesignBoxDesign.html#a3eb250c11de989c0c7866a79db80c615">hVal</a>[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]);
  534. <a name="l00447"></a>00447 <span class="keywordflow">if</span>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;(webLayers-1))
  535. <a name="l00448"></a>00448 {
  536. <a name="l00449"></a>00449 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> ang;
  537. <a name="l00450"></a>00450 <span class="keywordflow">switch</span>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>%2)
  538. <a name="l00451"></a>00451 {
  539. <a name="l00452"></a>00452 <span class="keywordflow">case</span> 0:
  540. <a name="l00453"></a>00453 ang=<a class="code" href="classglobal.html">global&lt;dataType&gt;::pi</a>/<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(4.0);
  541. <a name="l00454"></a>00454 <span class="keywordflow">break</span>;
  542. <a name="l00455"></a>00455 <span class="keywordflow">case</span> 1:
  543. <a name="l00456"></a>00456 ang=-<a class="code" href="classglobal.html">global&lt;dataType&gt;::pi</a>/<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(4.0);
  544. <a name="l00457"></a>00457 <span class="keywordflow">break</span>;
  545. <a name="l00458"></a>00458 }
  546. <a name="l00459"></a>00459 <span class="comment">// DEBUG</span>
  547. <a name="l00460"></a>00460 <span class="comment">// ang=dataType(0.0);</span>
  548. <a name="l00461"></a>00461 materials[at][2].setAngle(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,ang);
  549. <a name="l00462"></a>00462 }
  550. <a name="l00463"></a>00463 }
  551. <a name="l00464"></a>00464 cxDesigns[at].setWeb(0,tmpBox);
  552. <a name="l00465"></a>00465 cxDesigns[at].setWeb(1,tmpBox);
  553. <a name="l00466"></a>00466 }
  554. <a name="l00467"></a>00467
  555. <a name="l00468"></a>00468 <span class="keyword">public</span>:
  556. <a name="l00469"></a>00469
  557. <a name="l00470"></a><a class="code" href="classcxDesignerSplineSparCap.html#a352ce3a2224f250e4f2772636f6f31f4">00470</a> <a class="code" href="classcxDesignerSplineSparCap.html#a352ce3a2224f250e4f2772636f6f31f4">cxDesignerSplineSparCap</a>(
  558. <a name="l00471"></a>00471 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> extraDesVar_in=0
  559. <a name="l00472"></a>00472 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> cxCnt_in=2
  560. <a name="l00473"></a>00473 ,<a class="code" href="classcxBlade__designInput.html">cxBlade_designInput&lt;dataType&gt;</a>* blade_in=NULL
  561. <a name="l00474"></a>00474 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> skinLayers_in=4
  562. <a name="l00475"></a>00475 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> capLayers_in=20
  563. <a name="l00476"></a>00476 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> webLayers_in=20
  564. <a name="l00477"></a>00477 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> skinThick_in=0.006
  565. <a name="l00478"></a>00478 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> webThick_in=0.03
  566. <a name="l00479"></a>00479 ,<a class="code" href="classfailureModel.html">failureModel&lt;dataType&gt;</a>* flrMdl_in=NULL
  567. <a name="l00480"></a>00480 ,<a class="code" href="classfunction.html">function&lt;dataType,dataType&gt;</a>* chord_in=NULL
  568. <a name="l00481"></a>00481 ,<span class="keywordtype">bool</span> deleteFlrMdl_in=<span class="keyword">false</span>
  569. <a name="l00482"></a>00482 ,<span class="keywordtype">bool</span> deleteChord_in=<span class="keyword">false</span>
  570. <a name="l00483"></a>00483 ,<span class="keywordtype">bool</span> deleteBlade_in=<span class="keyword">false</span>
  571. <a name="l00484"></a>00484 )
  572. <a name="l00485"></a>00485 : desFunc(extraDesVar_in)
  573. <a name="l00486"></a>00486 , cxLocs(cxCnt_in,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0))
  574. <a name="l00487"></a>00487 , cxDesigns(cxCnt_in)
  575. <a name="l00488"></a>00488 , materials(cxCnt_in,std::vector&lt;<a class="code" href="classconstituitive__orthotropicLaminateLayer.html">constituitive_orthotropicLaminateLayer</a>&lt;<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt; &gt;(3))
  576. <a name="l00489"></a>00489 , flrMdl(flrMdl_in)
  577. <a name="l00490"></a>00490 , skinLayers(skinLayers_in)
  578. <a name="l00491"></a>00491 , capLayers(capLayers_in)
  579. <a name="l00492"></a>00492 , webLayers(webLayers_in)
  580. <a name="l00493"></a>00493 , skinThick(skinThick_in)
  581. <a name="l00494"></a>00494 , webThick(webThick_in)
  582. <a name="l00495"></a>00495 , chord(chord_in)
  583. <a name="l00496"></a>00496 , blade(blade_in)
  584. <a name="l00497"></a>00497 , deleteFlrMdl(deleteFlrMdl_in)
  585. <a name="l00498"></a>00498 , deleteChord(deleteChord_in)
  586. <a name="l00499"></a>00499 , deleteBlade(deleteBlade_in)
  587. <a name="l00500"></a>00500 {}
  588. <a name="l00501"></a>00501
  589. <a name="l00502"></a><a class="code" href="classcxDesignerSplineSparCap.html#a9b808df38b39c36fe94313793c1c0349">00502</a> <a class="code" href="classcxDesignerSplineSparCap.html#a9b808df38b39c36fe94313793c1c0349">~cxDesignerSplineSparCap</a>()
  590. <a name="l00503"></a>00503 {
  591. <a name="l00504"></a>00504 <span class="keywordflow">if</span>(deleteFlrMdl &amp;&amp; flrMdl!=NULL)
  592. <a name="l00505"></a>00505 <span class="keyword">delete</span> flrMdl;
  593. <a name="l00506"></a>00506 <span class="keywordflow">if</span>(deleteChord &amp;&amp; chord!=NULL)
  594. <a name="l00507"></a>00507 <span class="keyword">delete</span> chord;
  595. <a name="l00508"></a>00508 <span class="keywordflow">if</span>(deleteBlade &amp;&amp; blade!=NULL)
  596. <a name="l00509"></a>00509 <span class="keyword">delete</span> blade;
  597. <a name="l00510"></a>00510 }
  598. <a name="l00511"></a>00511
  599. <a name="l00512"></a><a class="code" href="classcxDesignerSplineSparCap.html#a24d612844889da7ded3c1dfc8524e515">00512</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#a24d612844889da7ded3c1dfc8524e515">setExtraDesignCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> extraDesVar_in)
  600. <a name="l00513"></a>00513 {
  601. <a name="l00514"></a>00514 desFunc.setExtra(extraDesVar_in);
  602. <a name="l00515"></a>00515 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  603. <a name="l00516"></a>00516 }
  604. <a name="l00517"></a>00517
  605. <a name="l00518"></a><a class="code" href="classcxDesignerSplineSparCap.html#a31f421be576a429a4481dccc9f81f73a">00518</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#a31f421be576a429a4481dccc9f81f73a">setCrossSectionCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> cxCnt_in)
  606. <a name="l00519"></a>00519 {
  607. <a name="l00520"></a>00520 cxLocs.resize(cxCnt_in,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0));
  608. <a name="l00521"></a>00521 cxDesigns.resize(cxCnt_in);
  609. <a name="l00522"></a>00522 <span class="keywordflow">if</span>(blade!=NULL)
  610. <a name="l00523"></a>00523 blade-&gt;setCrossSectionCount(cxCnt_in);
  611. <a name="l00524"></a>00524
  612. <a name="l00525"></a>00525 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  613. <a name="l00526"></a>00526 }
  614. <a name="l00527"></a>00527
  615. <a name="l00528"></a><a class="code" href="classcxDesignerSplineSparCap.html#a3c1a9732e418820f2af515f5e6d4c1d7">00528</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classcxDesignerSplineSparCap.html#a3c1a9732e418820f2af515f5e6d4c1d7">getDefinitionCount</a>()
  616. <a name="l00529"></a>00529 {
  617. <a name="l00530"></a>00530 <span class="keywordflow">return</span> desFunc.size();
  618. <a name="l00531"></a>00531 }
  619. <a name="l00532"></a>00532
  620. <a name="l00533"></a><a class="code" href="classcxDesignerSplineSparCap.html#a87380fd4372d3702ead9abbdff269c29">00533</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#a87380fd4372d3702ead9abbdff269c29">setCrossSectionLocation</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc_in)
  621. <a name="l00534"></a>00534 {
  622. <a name="l00535"></a>00535 <span class="keywordflow">if</span>(at&gt;=cxLocs.size())
  623. <a name="l00536"></a>00536 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesignerSplineSparCap&lt;dataType&gt;::setCrossSectionLocation()&quot;</span>);
  624. <a name="l00537"></a>00537 cxLocs[at]=loc_in;
  625. <a name="l00538"></a>00538 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  626. <a name="l00539"></a>00539 }
  627. <a name="l00540"></a>00540
  628. <a name="l00541"></a><a class="code" href="classcxDesignerSplineSparCap.html#af82233994f88a20e14a74173d11858a9">00541</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#af82233994f88a20e14a74173d11858a9">setMaterialMatrix</a>(<span class="keyword">const</span> <a class="code" href="classmatrixStaticSqr.html">matrixStaticSqr&lt;dataType,6&gt;</a>&amp; matlMtx_in)
  629. <a name="l00542"></a>00542 {
  630. <a name="l00543"></a>00543 matlMtx=matlMtx_in;
  631. <a name="l00544"></a>00544
  632. <a name="l00545"></a>00545 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  633. <a name="l00546"></a>00546 }
  634. <a name="l00547"></a>00547
  635. <a name="l00548"></a><a class="code" href="classcxDesignerSplineSparCap.html#a20ff9f041130c04e276a92aa48794b38">00548</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#a20ff9f041130c04e276a92aa48794b38">setFailureModel</a>(<a class="code" href="classfailureModel.html">failureModel&lt;dataType&gt;</a>* flrMdl_in,<span class="keywordtype">bool</span> deleteFlrMdl_in=<span class="keyword">false</span>)
  636. <a name="l00549"></a>00549 {
  637. <a name="l00550"></a>00550 <span class="keywordflow">if</span>(deleteFlrMdl &amp;&amp; flrMdl!=NULL &amp;&amp; flrMdl!=flrMdl_in)
  638. <a name="l00551"></a>00551 <span class="keyword">delete</span> flrMdl;
  639. <a name="l00552"></a>00552
  640. <a name="l00553"></a>00553 flrMdl=flrMdl_in;
  641. <a name="l00554"></a>00554 deleteFlrMdl=deleteFlrMdl_in;
  642. <a name="l00555"></a>00555
  643. <a name="l00556"></a>00556 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  644. <a name="l00557"></a>00557 }
  645. <a name="l00558"></a>00558
  646. <a name="l00559"></a><a class="code" href="classcxDesignerSplineSparCap.html#a7fb231e5c9951da0656b849e2b528baa">00559</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#a7fb231e5c9951da0656b849e2b528baa">setSkinMeshLayerCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> skinLayers_in)
  647. <a name="l00560"></a>00560 {
  648. <a name="l00561"></a>00561 skinLayers=skinLayers_in;
  649. <a name="l00562"></a>00562 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  650. <a name="l00563"></a>00563 }
  651. <a name="l00564"></a>00564
  652. <a name="l00565"></a><a class="code" href="classcxDesignerSplineSparCap.html#a76469137bb7e7c42250d8d88358f6634">00565</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#a76469137bb7e7c42250d8d88358f6634">setCapMeshLayerCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> capLayers_in)
  653. <a name="l00566"></a>00566 {
  654. <a name="l00567"></a>00567 capLayers=capLayers_in;
  655. <a name="l00568"></a>00568 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  656. <a name="l00569"></a>00569 }
  657. <a name="l00570"></a>00570
  658. <a name="l00571"></a><a class="code" href="classcxDesignerSplineSparCap.html#a1ef8af6280eb026ca8ba056712624fa8">00571</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#a1ef8af6280eb026ca8ba056712624fa8">setWebMeshLayerCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> webLayers_in)
  659. <a name="l00572"></a>00572 {
  660. <a name="l00573"></a>00573 webLayers=webLayers_in;
  661. <a name="l00574"></a>00574 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  662. <a name="l00575"></a>00575 }
  663. <a name="l00576"></a>00576
  664. <a name="l00577"></a><a class="code" href="classcxDesignerSplineSparCap.html#a94b3e260f4ff54e0936624a0b4baa799">00577</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#a94b3e260f4ff54e0936624a0b4baa799">setSkinThickness</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> skinThick_in)
  665. <a name="l00578"></a>00578 {
  666. <a name="l00579"></a>00579 skinThick=skinThick_in;
  667. <a name="l00580"></a>00580 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  668. <a name="l00581"></a>00581 }
  669. <a name="l00582"></a>00582
  670. <a name="l00583"></a><a class="code" href="classcxDesignerSplineSparCap.html#a0266df2146436f104a1015fc465f3ff4">00583</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#a0266df2146436f104a1015fc465f3ff4">setWebThickness</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> webThick_in)
  671. <a name="l00584"></a>00584 {
  672. <a name="l00585"></a>00585 webThick=webThick_in;
  673. <a name="l00586"></a>00586 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  674. <a name="l00587"></a>00587 }
  675. <a name="l00588"></a>00588
  676. <a name="l00589"></a><a class="code" href="classcxDesignerSplineSparCap.html#a35196a65d1db4107cbafaa5735cdeb71">00589</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#a35196a65d1db4107cbafaa5735cdeb71">setChord</a>(<a class="code" href="classfunction.html">function&lt;dataType,dataType&gt;</a>* chord_in,<span class="keywordtype">bool</span> deleteChord_in=<span class="keyword">false</span>)
  677. <a name="l00590"></a>00590 {
  678. <a name="l00591"></a>00591 <span class="keywordflow">if</span>(deleteChord &amp;&amp; chord!=NULL &amp;&amp; chord!=chord_in)
  679. <a name="l00592"></a>00592 <span class="keyword">delete</span> chord;
  680. <a name="l00593"></a>00593
  681. <a name="l00594"></a>00594 chord=chord_in;
  682. <a name="l00595"></a>00595 deleteChord=deleteChord_in;
  683. <a name="l00596"></a>00596
  684. <a name="l00597"></a>00597 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  685. <a name="l00598"></a>00598 }
  686. <a name="l00599"></a>00599
  687. <a name="l00600"></a><a class="code" href="classcxDesignerSplineSparCap.html#ab203ac17d95684499b1f849667459b07">00600</a> <a class="code" href="classcxDesignerSplineSparCap.html">cxDesignerSplineSparCap&lt;dataType&gt;</a>&amp; <a class="code" href="classcxDesignerSplineSparCap.html#ab203ac17d95684499b1f849667459b07">setDesignInputInterface</a>(<a class="code" href="classcxBlade__designInput.html">cxBlade_designInput&lt;dataType&gt;</a>* blade_in,<span class="keywordtype">bool</span> deleteBlade_in=<span class="keyword">false</span>)
  688. <a name="l00601"></a>00601 {
  689. <a name="l00602"></a>00602 <span class="keywordflow">if</span>(deleteBlade &amp;&amp; blade!=NULL &amp;&amp; blade!=blade_in)
  690. <a name="l00603"></a>00603 <span class="keyword">delete</span> blade;
  691. <a name="l00604"></a>00604
  692. <a name="l00605"></a>00605 blade=blade_in;
  693. <a name="l00606"></a>00606 deleteBlade=deleteBlade_in;
  694. <a name="l00607"></a>00607
  695. <a name="l00608"></a>00608 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  696. <a name="l00609"></a>00609 }
  697. <a name="l00610"></a>00610
  698. <a name="l00611"></a><a class="code" href="classcxDesignerSplineSparCap.html#a891d8b8ba6b09988fbde438f7c56b501">00611</a> <span class="keywordtype">void</span> <a class="code" href="classcxDesignerSplineSparCap.html#a891d8b8ba6b09988fbde438f7c56b501">setDesign</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>&amp; atVar,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>* desVar)
  699. <a name="l00612"></a>00612 {
  700. <a name="l00613"></a>00613 <span class="keywordflow">if</span>(blade==NULL)
  701. <a name="l00614"></a>00614 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;cxDesignerSplineSparCap&lt;dataType&gt;::setDesign(): The blade has not been set&quot;</span>);
  702. <a name="l00615"></a>00615
  703. <a name="l00616"></a>00616 <span class="comment">// set the coefficients on the cubic spline</span>
  704. <a name="l00617"></a>00617 desFunc.setDesign(atVar,desVar);
  705. <a name="l00618"></a>00618
  706. <a name="l00619"></a>00619 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;cxLocs.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  707. <a name="l00620"></a>00620 {
  708. <a name="l00621"></a>00621 <span class="comment">// collect the h and generate the design types</span>
  709. <a name="l00622"></a>00622 this-&gt;setH(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,desFunc.value(cxLocs[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]));
  710. <a name="l00623"></a>00623 <span class="comment">// set the locations</span>
  711. <a name="l00624"></a>00624 blade-&gt;setCXPosition(i,cxLocs[i]);
  712. <a name="l00625"></a>00625 <span class="comment">// set the design objects</span>
  713. <a name="l00626"></a>00626 blade-&gt;setCXDesign(i,cxDesigns[i]);
  714. <a name="l00627"></a>00627 }
  715. <a name="l00628"></a>00628 }
  716. <a name="l00629"></a>00629 };
  717. <a name="l00630"></a>00630
  718. <a name="l00631"></a>00631 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  719. <a name="l00632"></a><a class="code" href="classprofileFamily.html">00632</a> <span class="keyword">class </span><a class="code" href="classprofileFamily.html">profileFamily</a>
  720. <a name="l00633"></a>00633 {
  721. <a name="l00634"></a>00634 <span class="keyword">private</span>:
  722. <a name="l00635"></a>00635
  723. <a name="l00636"></a>00636 <span class="keyword">struct </span>profileData
  724. <a name="l00637"></a>00637 {
  725. <a name="l00638"></a>00638 <span class="keyword">public</span>:
  726. <a name="l00639"></a>00639
  727. <a name="l00640"></a>00640 <a class="code" href="classpolygon.html">polygon&lt;dataType&gt;</a> trueProfile;
  728. <a name="l00641"></a>00641 <a class="code" href="classpolygon.html">polygon&lt;dataType&gt;</a> extendedProfile;
  729. <a name="l00642"></a>00642 };
  730. <a name="l00643"></a>00643
  731. <a name="l00644"></a>00644 std::vector&lt;profileData&gt; profiles;
  732. <a name="l00645"></a>00645 <span class="keywordtype">bool</span> haveExtended;
  733. <a name="l00646"></a>00646
  734. <a name="l00647"></a>00647 <span class="keywordtype">void</span> createExtended();
  735. <a name="l00648"></a>00648
  736. <a name="l00649"></a>00649 <span class="keyword">public</span>:
  737. <a name="l00650"></a>00650
  738. <a name="l00651"></a><a class="code" href="classprofileFamily.html#af685d0ba32963a37e79eb50119272d2c">00651</a> <a class="code" href="classprofileFamily.html#af685d0ba32963a37e79eb50119272d2c">profileFamily</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> size_in=0)
  739. <a name="l00652"></a>00652 : profiles(size_in)
  740. <a name="l00653"></a>00653 , haveExtended(false)
  741. <a name="l00654"></a>00654 {}
  742. <a name="l00655"></a>00655
  743. <a name="l00656"></a><a class="code" href="classprofileFamily.html#a193d7367e9fa61c0377b67961e9d53e7">00656</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classprofileFamily.html#a193d7367e9fa61c0377b67961e9d53e7">getProfileCount</a>()
  744. <a name="l00657"></a>00657 {
  745. <a name="l00658"></a>00658 <span class="keywordflow">return</span> profiles.size();
  746. <a name="l00659"></a>00659 }
  747. <a name="l00660"></a>00660
  748. <a name="l00661"></a><a class="code" href="classprofileFamily.html#a5ff9111492fd4cff15c30869f317a441">00661</a> <a class="code" href="classprofileFamily.html">profileFamily&lt;dataType&gt;</a>&amp; <a class="code" href="classprofileFamily.html#a5ff9111492fd4cff15c30869f317a441">setProfileCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> cnt)
  749. <a name="l00662"></a>00662 {
  750. <a name="l00663"></a>00663 <span class="keywordflow">if</span>(cnt==profiles.size())
  751. <a name="l00664"></a>00664 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  752. <a name="l00665"></a>00665
  753. <a name="l00666"></a>00666 profiles.resize(cnt);
  754. <a name="l00667"></a>00667 haveExtended(<span class="keyword">false</span>);
  755. <a name="l00668"></a>00668
  756. <a name="l00669"></a>00669 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  757. <a name="l00670"></a>00670 }
  758. <a name="l00671"></a>00671
  759. <a name="l00672"></a><a class="code" href="classprofileFamily.html#a326b4c28b5b0fa510fdca3b145922e98">00672</a> <a class="code" href="classprofileFamily.html">profileFamily&lt;dataType&gt;</a>&amp; <a class="code" href="classprofileFamily.html#a326b4c28b5b0fa510fdca3b145922e98">setProfile</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at,<span class="keyword">const</span> <a class="code" href="classpolygon.html">polygon&lt;dataType&gt;</a>&amp; profile_in)
  760. <a name="l00673"></a>00673 {
  761. <a name="l00674"></a>00674 <span class="keywordflow">if</span>(at&gt;=profiles.size())
  762. <a name="l00675"></a>00675 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;profileFamily&lt;dataType&gt;::setProfile(): The profile does not exist&quot;</span>);
  763. <a name="l00676"></a>00676
  764. <a name="l00677"></a>00677 profiles[at].trueProfile=profile_in;
  765. <a name="l00678"></a>00678 haveExtended=<span class="keyword">false</span>;
  766. <a name="l00679"></a>00679
  767. <a name="l00680"></a>00680 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  768. <a name="l00681"></a>00681 }
  769. <a name="l00682"></a>00682
  770. <a name="l00683"></a><a class="code" href="classprofileFamily.html#a35674da7b64eabc7eb38398e73f765dc">00683</a> <span class="keyword">const</span> <a class="code" href="classpolygon.html">polygon&lt;dataType&gt;</a>&amp; <a class="code" href="classprofileFamily.html#a35674da7b64eabc7eb38398e73f765dc">getProfile</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at)
  771. <a name="l00684"></a>00684 {
  772. <a name="l00685"></a>00685 <span class="keywordflow">if</span>(!haveExtended)
  773. <a name="l00686"></a>00686 this-&gt;createExtended();
  774. <a name="l00687"></a>00687 <span class="keywordflow">return</span> profiles[at].extendedProfile;
  775. <a name="l00688"></a>00688 }
  776. <a name="l00689"></a>00689 };
  777. <a name="l00690"></a>00690
  778. <a name="l00691"></a>00691 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  779. <a name="l00692"></a>00692 <span class="keywordtype">void</span> <a class="code" href="classprofileFamily.html">profileFamily&lt;dataType&gt;::createExtended</a>()
  780. <a name="l00693"></a>00693 {
  781. <a name="l00694"></a>00694 std::list&lt;dataType&gt; uniqueSPoints;
  782. <a name="l00695"></a>00695 std::vector&lt;unsigned long&gt; atPoint(profiles.size(),0);
  783. <a name="l00696"></a>00696
  784. <a name="l00697"></a>00697 std::vector&lt;std::vector&lt;dataType&gt; &gt; profileSPoints(profiles.size(),std::vector&lt;dataType&gt;(0,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0)));
  785. <a name="l00698"></a>00698 std::vector&lt;curve_polygon&lt;dataType&gt; &gt; curves(profiles.size());
  786. <a name="l00699"></a>00699
  787. <a name="l00700"></a>00700 <span class="comment">// generate all the S values</span>
  788. <a name="l00701"></a>00701 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;profiles.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  789. <a name="l00702"></a>00702 {
  790. <a name="l00703"></a>00703 <span class="keywordflow">if</span>(profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.size()&lt;3)
  791. <a name="l00704"></a>00704 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;profileFamily&lt;dataType&gt;::createExtended(): Polygon must have at least 3 vertices&quot;</span>);
  792. <a name="l00705"></a>00705
  793. <a name="l00706"></a>00706 profileSPoints[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].resize(profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.size(),<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0));
  794. <a name="l00707"></a>00707 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> j=0;j&lt;profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.size();j++)
  795. <a name="l00708"></a>00708 {
  796. <a name="l00709"></a>00709 <span class="comment">// notes that the polygon stores only N points and wrap-around is assumed</span>
  797. <a name="l00710"></a>00710 <span class="comment">// the airfoil store N+1 points though where the first and last are the same point</span>
  798. <a name="l00711"></a>00711 <span class="keywordflow">if</span>(j!=0)
  799. <a name="l00712"></a>00712 {
  800. <a name="l00713"></a>00713 profileSPoints[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>][j]=profileSPoints[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>][j-1];
  801. <a name="l00714"></a>00714 profileSPoints[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>][j]+=(profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.getPoint(j)-profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.getPoint(j-1)).<a class="code" href="rotationMath_8cpp.html#a5c585f7f82a9507ad212639d44663ac2">length</a>();
  802. <a name="l00715"></a>00715 }
  803. <a name="l00716"></a>00716 <span class="keywordflow">else</span>
  804. <a name="l00717"></a>00717 {
  805. <a name="l00718"></a>00718 profileSPoints[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>][0]=0.0;
  806. <a name="l00719"></a>00719 }
  807. <a name="l00720"></a>00720 }
  808. <a name="l00721"></a>00721 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> S=profileSPoints[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>][profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.size()-1]+(profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.getPoint(0)-profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.getPoint(profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.size()-1)).length();
  809. <a name="l00722"></a>00722 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> j=0;j&lt;profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.size();j++)
  810. <a name="l00723"></a>00723 profileSPoints[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>][j]=profileSPoints[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>][j]/S;
  811. <a name="l00724"></a>00724 curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].setPolygon(profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile);
  812. <a name="l00725"></a>00725 }
  813. <a name="l00726"></a>00726
  814. <a name="l00727"></a>00727 <span class="comment">// populate a sorted list of unique s values</span>
  815. <a name="l00728"></a>00728 <span class="keywordtype">bool</span> pointsLeft=<span class="keyword">true</span>;
  816. <a name="l00729"></a>00729 <span class="keywordflow">while</span>(pointsLeft)
  817. <a name="l00730"></a>00730 {
  818. <a name="l00731"></a>00731 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> sMin=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0);
  819. <a name="l00732"></a>00732 pointsLeft=<span class="keyword">false</span>;
  820. <a name="l00733"></a>00733 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;profiles.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  821. <a name="l00734"></a>00734 {
  822. <a name="l00735"></a>00735 <span class="keywordflow">if</span>(atPoint[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]&lt;profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.size())
  823. <a name="l00736"></a>00736 {
  824. <a name="l00737"></a>00737 <span class="keywordflow">if</span>(sMin&gt;profileSPoints[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>][atPoint[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]])
  825. <a name="l00738"></a>00738 sMin=profileSPoints[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>][atPoint[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]];
  826. <a name="l00739"></a>00739 }
  827. <a name="l00740"></a>00740 }
  828. <a name="l00741"></a>00741 uniqueSPoints.push_back(sMin);
  829. <a name="l00742"></a>00742 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;profiles.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  830. <a name="l00743"></a>00743 {
  831. <a name="l00744"></a>00744 <span class="keywordflow">if</span>(atPoint[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]&lt;profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].trueProfile.size())
  832. <a name="l00745"></a>00745 {
  833. <a name="l00746"></a>00746 <span class="keywordflow">if</span>(sMin==profileSPoints[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>][atPoint[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]])
  834. <a name="l00747"></a>00747 {
  835. <a name="l00748"></a>00748 atPoint[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]++;
  836. <a name="l00749"></a>00749 <span class="keywordflow">if</span>(atPoint[i]&lt;profiles[i].trueProfile.size())
  837. <a name="l00750"></a>00750 pointsLeft=<span class="keyword">true</span>;
  838. <a name="l00751"></a>00751 }
  839. <a name="l00752"></a>00752 }
  840. <a name="l00753"></a>00753 }
  841. <a name="l00754"></a>00754 }
  842. <a name="l00755"></a>00755
  843. <a name="l00756"></a>00756 <span class="comment">// populate the extended profile list</span>
  844. <a name="l00757"></a>00757 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;profiles.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  845. <a name="l00758"></a>00758 {
  846. <a name="l00759"></a>00759 profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].extendedProfile.resize(uniqueSPoints.size());
  847. <a name="l00760"></a>00760 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at=0;
  848. <a name="l00761"></a>00761 <span class="keywordflow">for</span>(<span class="keyword">typename</span> std::list&lt;dataType&gt;::iterator it=uniqueSPoints.begin();it!=uniqueSPoints.end();it++)
  849. <a name="l00762"></a>00762 {
  850. <a name="l00763"></a>00763 profiles[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].extendedProfile.getPoint(at)=curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].getPosition(*it);
  851. <a name="l00764"></a>00764 at++;
  852. <a name="l00765"></a>00765 }
  853. <a name="l00766"></a>00766 }
  854. <a name="l00767"></a>00767
  855. <a name="l00768"></a>00768 haveExtended=<span class="keyword">true</span>;
  856. <a name="l00769"></a>00769 }
  857. <a name="l00770"></a>00770
  858. <a name="l00771"></a>00771 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  859. <a name="l00772"></a><a class="code" href="classprofileBlend.html">00772</a> <span class="keyword">class </span><a class="code" href="classprofileBlend.html">profileBlend</a>
  860. <a name="l00773"></a>00773 {
  861. <a name="l00774"></a>00774 <span class="keyword">private</span>:
  862. <a name="l00775"></a>00775
  863. <a name="l00776"></a>00776 <a class="code" href="classprofileFamily.html">profileFamily&lt;dataType&gt;</a>* profiles;
  864. <a name="l00777"></a>00777 <span class="keywordtype">bool</span> deleteProfiles;
  865. <a name="l00778"></a>00778
  866. <a name="l00779"></a>00779 <span class="keyword">public</span>:
  867. <a name="l00780"></a>00780
  868. <a name="l00781"></a><a class="code" href="classprofileBlend.html#ab12e697bba1280cb8bcc907ae0d2f1be">00781</a> <a class="code" href="classprofileBlend.html#ab12e697bba1280cb8bcc907ae0d2f1be">profileBlend</a>(<a class="code" href="classprofileFamily.html">profileFamily&lt;dataType&gt;</a>* profiles_in=NULL,<span class="keywordtype">bool</span> deleteProfiles_in=<span class="keyword">false</span>)
  869. <a name="l00782"></a>00782 : profiles(profiles_in)
  870. <a name="l00783"></a>00783 , deleteProfiles(deleteProfiles_in)
  871. <a name="l00784"></a>00784 {}
  872. <a name="l00785"></a>00785
  873. <a name="l00786"></a><a class="code" href="classprofileBlend.html#a36aaafcd0c174155771cc3bd5f010efa">00786</a> <a class="code" href="classprofileBlend.html#a36aaafcd0c174155771cc3bd5f010efa">~profileBlend</a>()
  874. <a name="l00787"></a>00787 {
  875. <a name="l00788"></a>00788 <span class="keywordflow">if</span>(deleteProfiles &amp;&amp; profiles!=NULL)
  876. <a name="l00789"></a>00789 <span class="keyword">delete</span> profiles;
  877. <a name="l00790"></a>00790 }
  878. <a name="l00791"></a>00791
  879. <a name="l00792"></a><a class="code" href="classprofileBlend.html#ad2096c21aed0cd8377c734757efbb5c2">00792</a> <a class="code" href="classprofileBlend.html">profileBlend&lt;dataType&gt;</a>&amp; <a class="code" href="classprofileBlend.html#ad2096c21aed0cd8377c734757efbb5c2">setProfileSource</a>(<a class="code" href="classprofileFamily.html">profileFamily&lt;dataType&gt;</a>* profiles_in,<span class="keywordtype">bool</span> deleteProfiles_in=<span class="keyword">false</span>)
  880. <a name="l00793"></a>00793 {
  881. <a name="l00794"></a>00794 <span class="keywordflow">if</span>(profiles!=NULL &amp;&amp; deleteProfiles &amp;&amp; profiles!=profiles_in)
  882. <a name="l00795"></a>00795 <span class="keyword">delete</span> profiles;
  883. <a name="l00796"></a>00796 profiles=profiles_in;
  884. <a name="l00797"></a>00797 deleteProfiles=deleteProfiles_in;
  885. <a name="l00798"></a>00798 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  886. <a name="l00799"></a>00799 }
  887. <a name="l00800"></a>00800
  888. <a name="l00801"></a><a class="code" href="classprofileBlend.html#a0035a07e9217659bcaf23d2f99b17344">00801</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classprofileBlend.html#a0035a07e9217659bcaf23d2f99b17344">getProfileCount</a>()
  889. <a name="l00802"></a>00802 {
  890. <a name="l00803"></a>00803 <span class="keywordflow">if</span>(profiles==NULL)
  891. <a name="l00804"></a>00804 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;profileBlend&lt;dataType&gt;::getProfileCount(): The profile source has not been found&quot;</span>);
  892. <a name="l00805"></a>00805
  893. <a name="l00806"></a>00806 <span class="keywordflow">return</span> profiles-&gt;getProfileCount();
  894. <a name="l00807"></a>00807 }
  895. <a name="l00808"></a>00808
  896. <a name="l00809"></a><a class="code" href="classprofileBlend.html#a795497fd5ec73f45652bf0d133b86f3a">00809</a> <a class="code" href="classpolygon.html">polygon&lt;dataType&gt;</a> <a class="code" href="classprofileBlend.html#a795497fd5ec73f45652bf0d133b86f3a">getProfile</a>(<span class="keyword">const</span> std::vector&lt;dataType&gt;&amp; weight)
  897. <a name="l00810"></a>00810 {
  898. <a name="l00811"></a>00811 <span class="keywordflow">if</span>(profiles==NULL)
  899. <a name="l00812"></a>00812 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;profileBlend&lt;dataType&gt;::getProfile(): The profile source has not been found&quot;</span>);
  900. <a name="l00813"></a>00813 <span class="keywordflow">if</span>(weight.size()!=profiles-&gt;getProfileCount())
  901. <a name="l00814"></a>00814 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;profileBlend&lt;dataType&gt;::getProfile(): The number of weights does not match the number of profiles&quot;</span>);
  902. <a name="l00815"></a>00815
  903. <a name="l00816"></a>00816 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> wSum=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0);
  904. <a name="l00817"></a>00817 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;weight.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  905. <a name="l00818"></a>00818 wSum+=weight[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  906. <a name="l00819"></a>00819 <span class="keywordflow">if</span>(wSum!=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0))
  907. <a name="l00820"></a>00820 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;profileBlend&lt;dataType&gt;::getProfile(): The weight do not add to 1.0&quot;</span>);
  908. <a name="l00821"></a>00821
  909. <a name="l00822"></a>00822 <a class="code" href="classpolygon.html">polygon&lt;dataType&gt;</a> retVal(profiles-&gt;getProfile(0).size());
  910. <a name="l00823"></a>00823
  911. <a name="l00824"></a>00824 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;profiles-&gt;getProfile(0).size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  912. <a name="l00825"></a>00825 {
  913. <a name="l00826"></a>00826 <span class="keywordtype">bool</span> first=<span class="keyword">true</span>;
  914. <a name="l00827"></a>00827 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> j=0;j&lt;weight.size();j++)
  915. <a name="l00828"></a>00828 {
  916. <a name="l00829"></a>00829 <span class="keywordflow">if</span>(weight[j]!=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0))
  917. <a name="l00830"></a>00830 {
  918. <a name="l00831"></a>00831 <span class="keywordflow">if</span>(first)
  919. <a name="l00832"></a>00832 {
  920. <a name="l00833"></a>00833 retVal.<a class="code" href="classpolygon.html#afacfb555417d495769e88a176755c528">getPoint</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)=weight[j]*profiles-&gt;getProfile(j).getPoint(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>);
  921. <a name="l00834"></a>00834 first=<span class="keyword">false</span>;
  922. <a name="l00835"></a>00835 }
  923. <a name="l00836"></a>00836 <span class="keywordflow">else</span>
  924. <a name="l00837"></a>00837 {
  925. <a name="l00838"></a>00838 retVal.getPoint(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)=retVal.getPoint(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)+weight[j]*profiles-&gt;getProfile(j).getPoint(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>);
  926. <a name="l00839"></a>00839 }
  927. <a name="l00840"></a>00840 }
  928. <a name="l00841"></a>00841 }
  929. <a name="l00842"></a>00842 }
  930. <a name="l00843"></a>00843 <span class="keywordflow">return</span> retVal;
  931. <a name="l00844"></a>00844 }
  932. <a name="l00845"></a>00845 };
  933. <a name="l00846"></a>00846
  934. <a name="l00847"></a>00847 <span class="comment">// this class is an intermediate.</span>
  935. <a name="l00848"></a>00848 <span class="comment">// All it does is hold all the Ibeam objects and ensures that all the pointers are set correctly. </span>
  936. <a name="l00849"></a>00849 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType,<span class="keyword">class</span> cxDesignType&gt;
  937. <a name="l00850"></a><a class="code" href="classcrossSectionGeom__boxSpar.html">00850</a> <span class="keyword">class </span><a class="code" href="classcrossSectionGeom__boxSpar.html">crossSectionGeom_boxSpar</a>
  938. <a name="l00851"></a>00851 : <span class="keyword">public</span> <a class="code" href="classcrossSectionGeom.html">crossSectionGeom</a>&lt;dataType,cxDesignType&gt;
  939. <a name="l00852"></a>00852 {
  940. <a name="l00853"></a>00853 <span class="keyword">protected</span>:
  941. <a name="l00854"></a>00854
  942. <a name="l00855"></a>00855 <span class="comment">// this is essentially the mold line and the offsets:</span>
  943. <a name="l00856"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">00856</a> <a class="code" href="classcurveFamily.html">curveFamily&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">curveSource</a>;
  944. <a name="l00857"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ad9712a92329b747a3d7e5cee84741107">00857</a> <span class="keywordtype">bool</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#ad9712a92329b747a3d7e5cee84741107">deleteCurveSource</a>;
  945. <a name="l00858"></a>00858
  946. <a name="l00859"></a>00859 <span class="comment">// these are the actual objects required for the mesh</span>
  947. <a name="l00860"></a>00860
  948. <a name="l00861"></a>00861 <span class="comment">// these control the common curves</span>
  949. <a name="l00862"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">00862</a> <a class="code" href="classcommonEW.html">commonEW&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>;
  950. <a name="l00863"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">00863</a> <a class="code" href="classcommonEW.html">commonEW&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>;
  951. <a name="l00864"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">00864</a> <a class="code" href="classcommonEW.html">commonEW&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>;
  952. <a name="l00865"></a>00865
  953. <a name="l00866"></a>00866 <span class="comment">// This controls the line density</span>
  954. <a name="l00867"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a7e7d72643dcf7494434dff1bc05ee572">00867</a> <a class="code" href="classcommonNS.html">commonNS</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a7e7d72643dcf7494434dff1bc05ee572">teNS</a>;
  955. <a name="l00868"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aa0ed7cb98e82d476f93d64a21b387788">00868</a> <a class="code" href="classcommonNS.html">commonNS</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#aa0ed7cb98e82d476f93d64a21b387788">teWebNS</a>; <span class="comment">// formerly teTopCapNS and teBotCapNS</span>
  956. <a name="l00869"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a667f13e078dac2e3b6954d2a89caa567">00869</a> <a class="code" href="classcommonNS.html">commonNS</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a667f13e078dac2e3b6954d2a89caa567">topCapNS</a>; <span class="comment">// formerly webCurveNS</span>
  957. <a name="l00870"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aaab0a92e0d4cb17fd2863883d3a52615">00870</a> <a class="code" href="classcommonNS.html">commonNS</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#aaab0a92e0d4cb17fd2863883d3a52615">leWebNS</a>; <span class="comment">// formerly leTopCapNS and leBotCapNS</span>
  958. <a name="l00871"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a758dba0a6e09d6b711b095a565376a2e">00871</a> <a class="code" href="classcommonNS.html">commonNS</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a758dba0a6e09d6b711b095a565376a2e">leNS</a>;
  959. <a name="l00872"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#af249c0a98ebd4009a4532d90c258cf53">00872</a> <a class="code" href="classcommonNS.html">commonNS</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#af249c0a98ebd4009a4532d90c258cf53">botCapNS</a>; <span class="comment">// formerly webCurveNS</span>
  960. <a name="l00873"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a786ec9cbbdc63299d078ddf3259fbe80">00873</a> <a class="code" href="classcommonNS.html">commonNS</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a786ec9cbbdc63299d078ddf3259fbe80">teWebCrossNS</a>; <span class="comment">// formerly webNS</span>
  961. <a name="l00874"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a2c6a78faccb081701e5be67f1b8320aa">00874</a> <a class="code" href="classcommonNS.html">commonNS</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a2c6a78faccb081701e5be67f1b8320aa">leWebCrossNS</a>; <span class="comment">// formerly webNS</span>
  962. <a name="l00875"></a>00875
  963. <a name="l00876"></a>00876 <span class="comment">// these are the common points</span>
  964. <a name="l00877"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a1422433b87890d17379f00a3de81a4ad">00877</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a1422433b87890d17379f00a3de81a4ad">A0</a>;
  965. <a name="l00878"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aed61352beb17b58f6db0ad5696f7b88d">00878</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#aed61352beb17b58f6db0ad5696f7b88d">B0</a>;
  966. <a name="l00879"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#afee4791db4bfb95ee81c18b2b1c06bc1">00879</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#afee4791db4bfb95ee81c18b2b1c06bc1">A1</a>;
  967. <a name="l00880"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a43c458f298608f9bec46ac4d10004022">00880</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a43c458f298608f9bec46ac4d10004022">B1</a>;
  968. <a name="l00881"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a56121913b2656778996108c9ae63861e">00881</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a56121913b2656778996108c9ae63861e">C1</a>;
  969. <a name="l00882"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a933a931d73246fc761783936862eea1b">00882</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a933a931d73246fc761783936862eea1b">A2</a>;
  970. <a name="l00883"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ad4d6c45d2d39b55516dd0f9a8668e6cf">00883</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#ad4d6c45d2d39b55516dd0f9a8668e6cf">B2</a>;
  971. <a name="l00884"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a55a2751a3a1b3b865dcb75a6128fdf02">00884</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a55a2751a3a1b3b865dcb75a6128fdf02">C2</a>;
  972. <a name="l00885"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#abde4a2b04d0fd4f46886cad988a9b92a">00885</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#abde4a2b04d0fd4f46886cad988a9b92a">A3</a>;
  973. <a name="l00886"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a4aee53e8bfacbaafb9fe8addb4272529">00886</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a4aee53e8bfacbaafb9fe8addb4272529">B3</a>;
  974. <a name="l00887"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a29a5cca50f71feb2732d138a11beb791">00887</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a29a5cca50f71feb2732d138a11beb791">C3</a>;
  975. <a name="l00888"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ae98b06e7dcac554700ae17ca4913f400">00888</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#ae98b06e7dcac554700ae17ca4913f400">A4</a>;
  976. <a name="l00889"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ad785cfb8b42e15c3978fbe5bf22227e8">00889</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#ad785cfb8b42e15c3978fbe5bf22227e8">B4</a>;
  977. <a name="l00890"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a4925e50ae43097efc3f610d67cc99582">00890</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a4925e50ae43097efc3f610d67cc99582">C4</a>;
  978. <a name="l00891"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ad2b0e8e9d5b5bac7bbfe8ec04e301230">00891</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#ad2b0e8e9d5b5bac7bbfe8ec04e301230">A5</a>;
  979. <a name="l00892"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a607d7b4d9d6cc316b733221694be2fa6">00892</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a607d7b4d9d6cc316b733221694be2fa6">B5</a>;
  980. <a name="l00893"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a799a3ccc947297717536e8da86d37352">00893</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a799a3ccc947297717536e8da86d37352">C5</a>;
  981. <a name="l00894"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#af0862244e16f6a505e925fe5944c2825">00894</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#af0862244e16f6a505e925fe5944c2825">A6</a>;
  982. <a name="l00895"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a24a23cd15607e1a8961e6e37c0074c02">00895</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a24a23cd15607e1a8961e6e37c0074c02">B6</a>;
  983. <a name="l00896"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a25afa740fb8891f5ee5ee18c5d78bb85">00896</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a25afa740fb8891f5ee5ee18c5d78bb85">C6</a>;
  984. <a name="l00897"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a4d379da61d1b4230eab4a3668cea77d2">00897</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a4d379da61d1b4230eab4a3668cea77d2">A7</a>;
  985. <a name="l00898"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a7390bd69fa3a1c7b8f0573d7f7c2eb57">00898</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a7390bd69fa3a1c7b8f0573d7f7c2eb57">B7</a>;
  986. <a name="l00899"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a9efc731f1f7f87d77c3e68dcd52d3500">00899</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a9efc731f1f7f87d77c3e68dcd52d3500">C7</a>;
  987. <a name="l00900"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a75a27c6d376a2fa566e4dff382549652">00900</a> <a class="code" href="classcommonPoint__Wrap.html">commonPoint_Wrap&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a75a27c6d376a2fa566e4dff382549652">A8</a>;
  988. <a name="l00901"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a90c5665c71d343002e0f8394a785e57d">00901</a> <a class="code" href="classcommonPoint__Wrap.html">commonPoint_Wrap&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a90c5665c71d343002e0f8394a785e57d">B8</a>;
  989. <a name="l00902"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a4beef0cf83eaf46361d59ecd22180179">00902</a> <a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a4beef0cf83eaf46361d59ecd22180179">C8</a>;
  990. <a name="l00903"></a>00903
  991. <a name="l00904"></a>00904 <span class="comment">// These are the pointers to the material</span>
  992. <a name="l00905"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ab7b6fa9f449038d97c0f47302b02cf0c">00905</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#ab7b6fa9f449038d97c0f47302b02cf0c">A0Matl</a>;
  993. <a name="l00906"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a8bc1b7198faf2c92aa34ccb7c9b9637b">00906</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a8bc1b7198faf2c92aa34ccb7c9b9637b">A1Matl</a>;
  994. <a name="l00907"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a9a7dcd81f82f7bad7692f0050ff353da">00907</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a9a7dcd81f82f7bad7692f0050ff353da">A2Matl</a>;
  995. <a name="l00908"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a8561407dd8b35c653c91f80702533dbf">00908</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a8561407dd8b35c653c91f80702533dbf">A3Matl</a>;
  996. <a name="l00909"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#abaefed0dec69f5ca25886d734262ad54">00909</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#abaefed0dec69f5ca25886d734262ad54">A4Matl</a>;
  997. <a name="l00910"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a12c693a2206f3b7ca40dc80b6b88e5c6">00910</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a12c693a2206f3b7ca40dc80b6b88e5c6">A5Matl</a>;
  998. <a name="l00911"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a7317407936c8fe049cf9c9972fe3a724">00911</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a7317407936c8fe049cf9c9972fe3a724">A6Matl</a>;
  999. <a name="l00912"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a037b19eda0f6ce4696b5bc8c40f331ab">00912</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a037b19eda0f6ce4696b5bc8c40f331ab">A7Matl</a>;
  1000. <a name="l00913"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a6620bd3f120622e6f40dbe6338a000b5">00913</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a6620bd3f120622e6f40dbe6338a000b5">B1Matl</a>;
  1001. <a name="l00914"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a9236c6c0ca9d8c466a29b1fbe6c2cab9">00914</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a9236c6c0ca9d8c466a29b1fbe6c2cab9">B2Matl</a>;
  1002. <a name="l00915"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aa3b11fe99302b14e216af9beb2ed219b">00915</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#aa3b11fe99302b14e216af9beb2ed219b">B3Matl</a>;
  1003. <a name="l00916"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ae26b9762273456e1d5db40d4f745c186">00916</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#ae26b9762273456e1d5db40d4f745c186">B5Matl</a>;
  1004. <a name="l00917"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a62aa825e6ad73927e08360b6fb061fb0">00917</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a62aa825e6ad73927e08360b6fb061fb0">B6Matl</a>;
  1005. <a name="l00918"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ad05f7893207820460142b949972dc4c9">00918</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#ad05f7893207820460142b949972dc4c9">B7Matl</a>;
  1006. <a name="l00919"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aa975b745c69253a9f8e11e6191ab365f">00919</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#aa975b745c69253a9f8e11e6191ab365f">W0Matl</a>;
  1007. <a name="l00920"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a599076f0db4a86d25e1546f4429a95f3">00920</a> <a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a599076f0db4a86d25e1546f4429a95f3">W1Matl</a>;
  1008. <a name="l00921"></a>00921
  1009. <a name="l00922"></a>00922 <span class="comment">// these are the actual mesh boxes</span>
  1010. <a name="l00923"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#af530a17a3a41083443ddb25a07ee51d9">00923</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#af530a17a3a41083443ddb25a07ee51d9">A0Box</a>;
  1011. <a name="l00924"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ab3c35eef72ad917dddda3f3ace581727">00924</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#ab3c35eef72ad917dddda3f3ace581727">A1Box</a>;
  1012. <a name="l00925"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aef0f95659ef1ccfa6500871c94a41306">00925</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#aef0f95659ef1ccfa6500871c94a41306">A2Box</a>;
  1013. <a name="l00926"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aa7bb190b19e6391608e9b178d60cb634">00926</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#aa7bb190b19e6391608e9b178d60cb634">A3Box</a>;
  1014. <a name="l00927"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ad406194295bd5c6b86194c0617d53c0c">00927</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#ad406194295bd5c6b86194c0617d53c0c">A4Box</a>;
  1015. <a name="l00928"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a18cc66c382585e485bdd891bd979a292">00928</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a18cc66c382585e485bdd891bd979a292">A5Box</a>;
  1016. <a name="l00929"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#af157f54a312b3414156c6d4fb950664e">00929</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#af157f54a312b3414156c6d4fb950664e">A6Box</a>;
  1017. <a name="l00930"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a84c3b4c11d93986bd88b35f804685a8a">00930</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a84c3b4c11d93986bd88b35f804685a8a">A7Box</a>;
  1018. <a name="l00931"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a1e168cd07f831900bf024dbf3ddd7974">00931</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a1e168cd07f831900bf024dbf3ddd7974">B1Box</a>;
  1019. <a name="l00932"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a5dabb18555b56b2129e02480218ce326">00932</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a5dabb18555b56b2129e02480218ce326">B2Box</a>;
  1020. <a name="l00933"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ab351e4505c837eafb49df647078992a2">00933</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#ab351e4505c837eafb49df647078992a2">B3Box</a>;
  1021. <a name="l00934"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#af91e3936b5d026263070d888f123800b">00934</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#af91e3936b5d026263070d888f123800b">B5Box</a>;
  1022. <a name="l00935"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a8b5701d7248669755fb817d7d1eaeb10">00935</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a8b5701d7248669755fb817d7d1eaeb10">B6Box</a>;
  1023. <a name="l00936"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a4606c3846a8de71625c6ffa9da348c76">00936</a> <a class="code" href="classbox__basic.html">box_basic&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a4606c3846a8de71625c6ffa9da348c76">B7Box</a>;
  1024. <a name="l00937"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ad11e93e805eb3e43fe3bb457c0d0077c">00937</a> <a class="code" href="classbox__web.html">box_web&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#ad11e93e805eb3e43fe3bb457c0d0077c">W0Box</a>;
  1025. <a name="l00938"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aa22a699857454a59cb666aa766248af9">00938</a> <a class="code" href="classbox__web.html">box_web&lt;dataType&gt;</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#aa22a699857454a59cb666aa766248af9">W1Box</a>;
  1026. <a name="l00939"></a>00939
  1027. <a name="l00940"></a>00940 <span class="comment">// this is the maximum H</span>
  1028. <a name="l00941"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#af143f5625bc4c40c73c2da2560176789">00941</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#af143f5625bc4c40c73c2da2560176789">maxH</a>;
  1029. <a name="l00942"></a>00942 <span class="comment">// these are the offset distances</span>
  1030. <a name="l00943"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a7938b11ac65ff99eec4390b53f44a719">00943</a> std::vector&lt;dataType&gt; <a class="code" href="classcrossSectionGeom__boxSpar.html#a7938b11ac65ff99eec4390b53f44a719">skinH</a>; <span class="comment">// this is the set of H&#39;s of the skin</span>
  1031. <a name="l00944"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a980cf408be9a65c341f84d20dd33ebe5">00944</a> std::vector&lt;dataType&gt; <a class="code" href="classcrossSectionGeom__boxSpar.html#a980cf408be9a65c341f84d20dd33ebe5">capTopH</a>; <span class="comment">// these are all the H&#39;s of the top cap</span>
  1032. <a name="l00945"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a2fb6e8ee79af8c205ffe08a9c7d30149">00945</a> std::vector&lt;dataType&gt; <a class="code" href="classcrossSectionGeom__boxSpar.html#a2fb6e8ee79af8c205ffe08a9c7d30149">capBotH</a>; <span class="comment">// these are all the H&#39;s of the bottom cap</span>
  1033. <a name="l00946"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a1b202fdc59360582d820694d133c17da">00946</a> <span class="keywordtype">bool</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a1b202fdc59360582d820694d133c17da">firstOffset</a>;
  1034. <a name="l00947"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">00947</a> <span class="keywordtype">bool</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a>;
  1035. <a name="l00948"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">00948</a> <span class="keywordtype">bool</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>;
  1036. <a name="l00949"></a>00949 <span class="comment">// this is the bounding box for the molde line</span>
  1037. <a name="l00950"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a8d01455718c3eae5cbfff1757da192a0">00950</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a8d01455718c3eae5cbfff1757da192a0">xMin</a>;
  1038. <a name="l00951"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aee7feab134ec58da09ad2748dbf7e3fa">00951</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#aee7feab134ec58da09ad2748dbf7e3fa">yMin</a>;
  1039. <a name="l00952"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a18f41ebaa3f758afb23f5e0633feab44">00952</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a18f41ebaa3f758afb23f5e0633feab44">xMax</a>;
  1040. <a name="l00953"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a5250d59b9a494f2d9942d648ba7a8f48">00953</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a5250d59b9a494f2d9942d648ba7a8f48">yMax</a>;
  1041. <a name="l00954"></a>00954
  1042. <a name="l00956"></a>00956 <span class="comment">// These are a set of helper methods for modifying the cross section geometry</span>
  1043. <a name="l00958"></a>00958 <span class="comment"></span>
  1044. <a name="l00959"></a>00959 <span class="comment">// these retrieve specific curves that define geometry</span>
  1045. <a name="l00960"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a45cf9ae0bf458e2bbe28b6afedeb69f8">00960</a> <a class="code" href="classcurve.html">curve&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a45cf9ae0bf458e2bbe28b6afedeb69f8">curveA</a>()
  1046. <a name="l00961"></a>00961 {
  1047. <a name="l00962"></a>00962 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a1b202fdc59360582d820694d133c17da">firstOffset</a>)
  1048. <a name="l00963"></a>00963 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::curveA(): The curve has not been generated&quot;</span>);
  1049. <a name="l00964"></a>00964 <span class="keywordflow">return</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[0];
  1050. <a name="l00965"></a>00965 }
  1051. <a name="l00966"></a>00966
  1052. <a name="l00967"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a907749586b2db14e42b2a827adbdcbd6">00967</a> <a class="code" href="classcurve.html">curve&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a907749586b2db14e42b2a827adbdcbd6">curveB</a>()
  1053. <a name="l00968"></a>00968 {
  1054. <a name="l00969"></a>00969 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a1b202fdc59360582d820694d133c17da">firstOffset</a>)
  1055. <a name="l00970"></a>00970 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::curveB(): The curve has not been generated&quot;</span>);
  1056. <a name="l00971"></a>00971 <span class="keywordflow">return</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves.size()-1];
  1057. <a name="l00972"></a>00972 }
  1058. <a name="l00973"></a>00973
  1059. <a name="l00974"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">00974</a> <a class="code" href="classcurve.html">curve&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">curveCTop</a>()
  1060. <a name="l00975"></a>00975 {
  1061. <a name="l00976"></a>00976 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a>)
  1062. <a name="l00977"></a>00977 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::curveCTop(): The curve has not been generated&quot;</span>);
  1063. <a name="l00978"></a>00978 <span class="keywordflow">return</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves[<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves.size()-1];
  1064. <a name="l00979"></a>00979 }
  1065. <a name="l00980"></a>00980
  1066. <a name="l00981"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">00981</a> <a class="code" href="classcurve.html">curve&lt;dataType&gt;</a>* <a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">curveCBot</a>()
  1067. <a name="l00982"></a>00982 {
  1068. <a name="l00983"></a>00983 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>)
  1069. <a name="l00984"></a>00984 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::curveCBot(): The curve has not been generated&quot;</span>);
  1070. <a name="l00985"></a>00985 <span class="keywordflow">return</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves[<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves.size()-1];
  1071. <a name="l00986"></a>00986 }
  1072. <a name="l00987"></a>00987
  1073. <a name="l00988"></a>00988 <span class="comment">// This method modifies the thickness of the top spar cap</span>
  1074. <a name="l00989"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aaf95fdb64f23781e8de010992d1a97f1">00989</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#aaf95fdb64f23781e8de010992d1a97f1">offsetTopCap</a>(<span class="keyword">const</span> std::vector&lt;dataType&gt;&amp; vectH)
  1075. <a name="l00990"></a>00990 {
  1076. <a name="l00991"></a>00991 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">curveSource</a>==NULL)
  1077. <a name="l00992"></a>00992 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::offsetTopCap(): The curve source has not been specified&quot;</span>);
  1078. <a name="l00993"></a>00993 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a1b202fdc59360582d820694d133c17da">firstOffset</a>)
  1079. <a name="l00994"></a>00994 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::offsetTopCap(): Cannot build cap without skin&quot;</span>);
  1080. <a name="l00995"></a>00995
  1081. <a name="l00996"></a>00996 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a980cf408be9a65c341f84d20dd33ebe5">capTopH</a>.size()!=vectH.size())
  1082. <a name="l00997"></a>00997 <a class="code" href="classcrossSectionGeom__boxSpar.html#a980cf408be9a65c341f84d20dd33ebe5">capTopH</a>.resize(vectH.size(),<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0));
  1083. <a name="l00998"></a>00998 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves.size()!=vectH.size()+1)
  1084. <a name="l00999"></a>00999 <a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves.resize(vectH.size()+1,NULL);
  1085. <a name="l01000"></a>01000
  1086. <a name="l01001"></a>01001 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;vectH.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1087. <a name="l01002"></a>01002 {
  1088. <a name="l01003"></a>01003 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a> || vectH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]!=<a class="code" href="classcrossSectionGeom__boxSpar.html#a980cf408be9a65c341f84d20dd33ebe5">capTopH</a>[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>])
  1089. <a name="l01004"></a>01004 {
  1090. <a name="l01005"></a>01005 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves[i+1]!=NULL)
  1091. <a name="l01006"></a>01006 <span class="keyword">delete</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves[i+1];
  1092. <a name="l01007"></a>01007 <a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves[i+1]=<a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">curveSource</a>-&gt;getCurve(vectH[i]);
  1093. <a name="l01008"></a>01008 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves[i+1]==NULL)
  1094. <a name="l01009"></a>01009 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::offsetTopCap(): Failed to create the offset curve&quot;</span>);
  1095. <a name="l01010"></a>01010 <a class="code" href="classcrossSectionGeom__boxSpar.html#a980cf408be9a65c341f84d20dd33ebe5">capTopH</a>[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]=vectH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  1096. <a name="l01011"></a>01011 <span class="comment">// insert it into the next curve holder</span>
  1097. <a name="l01012"></a>01012 <span class="keywordflow">if</span>(i==(vectH.size()-1))
  1098. <a name="l01013"></a>01013 {
  1099. <a name="l01014"></a>01014 <a class="code" href="classcrossSectionGeom__boxSpar.html#ad11e93e805eb3e43fe3bb457c0d0077c">W0Box</a>.top=<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves[i+1];
  1100. <a name="l01015"></a>01015 <a class="code" href="classcrossSectionGeom__boxSpar.html#aa22a699857454a59cb666aa766248af9">W1Box</a>.top=<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves[i+1];
  1101. <a name="l01016"></a>01016 }
  1102. <a name="l01017"></a>01017 }
  1103. <a name="l01018"></a>01018 }
  1104. <a name="l01019"></a>01019
  1105. <a name="l01020"></a>01020 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a>)
  1106. <a name="l01021"></a>01021 <a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a>=<span class="keyword">false</span>;
  1107. <a name="l01022"></a>01022 }
  1108. <a name="l01023"></a>01023
  1109. <a name="l01024"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a276335e580a726aefe5460ec9f26eb66">01024</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#aaf95fdb64f23781e8de010992d1a97f1">offsetTopCap</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="timoshenko_8cpp.html#a61e26f9dc99fba49f7fadb4c55cad0d9">H</a>)
  1110. <a name="l01025"></a>01025 {
  1111. <a name="l01026"></a>01026 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> div=H/(<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves.size()-1);
  1112. <a name="l01027"></a>01027 std::vector&lt;dataType&gt; vectH(<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves.size()-1,0.0);
  1113. <a name="l01028"></a>01028 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=1;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1114. <a name="l01029"></a>01029 vectH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>-1]=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)*div+<a class="code" href="classcrossSectionGeom__boxSpar.html#a7938b11ac65ff99eec4390b53f44a719">skinH</a>[<a class="code" href="classcrossSectionGeom__boxSpar.html#a7938b11ac65ff99eec4390b53f44a719">skinH</a>.size()-1];
  1115. <a name="l01030"></a>01030 <a class="code" href="classcrossSectionGeom__boxSpar.html#aaf95fdb64f23781e8de010992d1a97f1">offsetTopCap</a>(vectH);
  1116. <a name="l01031"></a>01031 }
  1117. <a name="l01032"></a>01032
  1118. <a name="l01033"></a>01033 <span class="comment">// This method modifies the thickness of the bottom spar cap</span>
  1119. <a name="l01034"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a529553c62b2b36290af337cb815a2407">01034</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a529553c62b2b36290af337cb815a2407">offsetBotCap</a>(<span class="keyword">const</span> std::vector&lt;dataType&gt;&amp; vectH)
  1120. <a name="l01035"></a>01035 {
  1121. <a name="l01036"></a>01036 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">curveSource</a>==NULL)
  1122. <a name="l01037"></a>01037 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::offsetBotCap(): The curve source has not been specified&quot;</span>);
  1123. <a name="l01038"></a>01038 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a1b202fdc59360582d820694d133c17da">firstOffset</a>)
  1124. <a name="l01039"></a>01039 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::offsetBotCap(): Cannot build cap without skin&quot;</span>);
  1125. <a name="l01040"></a>01040
  1126. <a name="l01041"></a>01041 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a2fb6e8ee79af8c205ffe08a9c7d30149">capBotH</a>.size()!=vectH.size())
  1127. <a name="l01042"></a>01042 <a class="code" href="classcrossSectionGeom__boxSpar.html#a2fb6e8ee79af8c205ffe08a9c7d30149">capBotH</a>.resize(vectH.size(),<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0));
  1128. <a name="l01043"></a>01043 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves.size()!=vectH.size()+1)
  1129. <a name="l01044"></a>01044 <a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves.resize(vectH.size()+1,NULL);
  1130. <a name="l01045"></a>01045
  1131. <a name="l01046"></a>01046 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;vectH.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1132. <a name="l01047"></a>01047 {
  1133. <a name="l01048"></a>01048 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a> || vectH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]!=<a class="code" href="classcrossSectionGeom__boxSpar.html#a2fb6e8ee79af8c205ffe08a9c7d30149">capBotH</a>[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>])
  1134. <a name="l01049"></a>01049 {
  1135. <a name="l01050"></a>01050 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves[i+1]!=NULL)
  1136. <a name="l01051"></a>01051 <span class="keyword">delete</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves[i+1];
  1137. <a name="l01052"></a>01052 <a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves[i+1]=<a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">curveSource</a>-&gt;getCurve(vectH[i]);
  1138. <a name="l01053"></a>01053 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves[i+1]==NULL)
  1139. <a name="l01054"></a>01054 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::offsetBotCap(): Failed to create the offset curve&quot;</span>);
  1140. <a name="l01055"></a>01055 <a class="code" href="classcrossSectionGeom__boxSpar.html#a2fb6e8ee79af8c205ffe08a9c7d30149">capBotH</a>[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]=vectH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  1141. <a name="l01056"></a>01056 <span class="comment">// insert it into the next curve holder</span>
  1142. <a name="l01057"></a>01057 <span class="keywordflow">if</span>(i==(vectH.size()-1))
  1143. <a name="l01058"></a>01058 {
  1144. <a name="l01059"></a>01059 <a class="code" href="classcrossSectionGeom__boxSpar.html#ad11e93e805eb3e43fe3bb457c0d0077c">W0Box</a>.bot=<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves[i+1];
  1145. <a name="l01060"></a>01060 <a class="code" href="classcrossSectionGeom__boxSpar.html#aa22a699857454a59cb666aa766248af9">W1Box</a>.bot=<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves[i+1];
  1146. <a name="l01061"></a>01061 }
  1147. <a name="l01062"></a>01062 }
  1148. <a name="l01063"></a>01063 }
  1149. <a name="l01064"></a>01064
  1150. <a name="l01065"></a>01065 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>)
  1151. <a name="l01066"></a>01066 <a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>=<span class="keyword">false</span>;
  1152. <a name="l01067"></a>01067 }
  1153. <a name="l01068"></a>01068
  1154. <a name="l01069"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a6ff52e53a2d20d5f9550332e6475013d">01069</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a529553c62b2b36290af337cb815a2407">offsetBotCap</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="timoshenko_8cpp.html#a61e26f9dc99fba49f7fadb4c55cad0d9">H</a>)
  1155. <a name="l01070"></a>01070 {
  1156. <a name="l01071"></a>01071 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> div=H/(<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves.size()-1);
  1157. <a name="l01072"></a>01072 std::vector&lt;dataType&gt; vectH(<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves.size()-1,0.0);
  1158. <a name="l01073"></a>01073 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=1;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1159. <a name="l01074"></a>01074 vectH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>-1]=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)*div+<a class="code" href="classcrossSectionGeom__boxSpar.html#a7938b11ac65ff99eec4390b53f44a719">skinH</a>[<a class="code" href="classcrossSectionGeom__boxSpar.html#a7938b11ac65ff99eec4390b53f44a719">skinH</a>.size()-1];
  1160. <a name="l01075"></a>01075 <a class="code" href="classcrossSectionGeom__boxSpar.html#a529553c62b2b36290af337cb815a2407">offsetBotCap</a>(vectH);
  1161. <a name="l01076"></a>01076 }
  1162. <a name="l01077"></a>01077
  1163. <a name="l01078"></a>01078 <span class="comment">// Important note... NEED TO RE-SET THE CURVE FOR THE SHEAR WEB!!!</span>
  1164. <a name="l01079"></a>01079 <span class="comment">// This method modifies the skin thickness</span>
  1165. <a name="l01080"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aebacd02bffad1703eb9d9e6c0822e4a1">01080</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#aebacd02bffad1703eb9d9e6c0822e4a1">offsetSkin</a>(<span class="keyword">const</span> std::vector&lt;dataType&gt;&amp; vectH,<span class="keywordtype">bool</span> shiftCapH=<span class="keyword">false</span>)
  1166. <a name="l01081"></a>01081 {
  1167. <a name="l01082"></a>01082 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> delta=vectH[vectH.size()-1]-<a class="code" href="classcrossSectionGeom__boxSpar.html#a7938b11ac65ff99eec4390b53f44a719">skinH</a>[<a class="code" href="classcrossSectionGeom__boxSpar.html#a7938b11ac65ff99eec4390b53f44a719">skinH</a>.size()-1];
  1168. <a name="l01083"></a>01083 <span class="keywordflow">if</span>(skinH.size()!=vectH.size())
  1169. <a name="l01084"></a>01084 skinH.resize(vectH.size(),<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0));
  1170. <a name="l01085"></a>01085 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves.size()!=vectH.size())
  1171. <a name="l01086"></a>01086 <a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves.resize(vectH.size(),NULL);
  1172. <a name="l01087"></a>01087
  1173. <a name="l01088"></a>01088 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">curveSource</a>==NULL)
  1174. <a name="l01089"></a>01089 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::offsetSkin(): The curve source has not been specified&quot;</span>);
  1175. <a name="l01090"></a>01090
  1176. <a name="l01091"></a>01091 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=1;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;vectH.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1177. <a name="l01092"></a>01092 {
  1178. <a name="l01093"></a>01093 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a1b202fdc59360582d820694d133c17da">firstOffset</a> || vectH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]!=skinH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>])
  1179. <a name="l01094"></a>01094 {
  1180. <a name="l01095"></a>01095 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[i]!=NULL)
  1181. <a name="l01096"></a>01096 <span class="keyword">delete</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  1182. <a name="l01097"></a>01097 <a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]=<a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">curveSource</a>-&gt;getCurve(vectH[i]);
  1183. <a name="l01098"></a>01098 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[i]==NULL)
  1184. <a name="l01099"></a>01099 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::offsetSkin(): Failed to create the offset curve&quot;</span>);
  1185. <a name="l01100"></a>01100 skinH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]=vectH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  1186. <a name="l01101"></a>01101 <span class="comment">// insert it into the next curve holder</span>
  1187. <a name="l01102"></a>01102 <span class="keywordflow">if</span>(i==(vectH.size()-1))
  1188. <a name="l01103"></a>01103 {
  1189. <a name="l01104"></a>01104 <a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves[0]=<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  1190. <a name="l01105"></a>01105 <a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves[0]=<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  1191. <a name="l01106"></a>01106 }
  1192. <a name="l01107"></a>01107 }
  1193. <a name="l01108"></a>01108 }
  1194. <a name="l01109"></a>01109
  1195. <a name="l01110"></a>01110 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a1b202fdc59360582d820694d133c17da">firstOffset</a>)
  1196. <a name="l01111"></a>01111 <a class="code" href="classcrossSectionGeom__boxSpar.html#a1b202fdc59360582d820694d133c17da">firstOffset</a>=<span class="keyword">false</span>;
  1197. <a name="l01112"></a>01112
  1198. <a name="l01113"></a>01113 <span class="keywordflow">if</span>(shiftCapH &amp;&amp; !<a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a> &amp;&amp; delta!=0.0)
  1199. <a name="l01114"></a>01114 {
  1200. <a name="l01115"></a>01115 std::vector&lt;dataType&gt; capH(<a class="code" href="classcrossSectionGeom__boxSpar.html#a980cf408be9a65c341f84d20dd33ebe5">capTopH</a>.size());
  1201. <a name="l01116"></a>01116 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a980cf408be9a65c341f84d20dd33ebe5">capTopH</a>.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1202. <a name="l01117"></a>01117 capH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]=<a class="code" href="classcrossSectionGeom__boxSpar.html#a980cf408be9a65c341f84d20dd33ebe5">capTopH</a>[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]+delta;
  1203. <a name="l01118"></a>01118 <a class="code" href="classcrossSectionGeom__boxSpar.html#aaf95fdb64f23781e8de010992d1a97f1">offsetTopCap</a>(capH);
  1204. <a name="l01119"></a>01119 }
  1205. <a name="l01120"></a>01120
  1206. <a name="l01121"></a>01121 <span class="keywordflow">if</span>(shiftCapH &amp;&amp; !<a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a> &amp;&amp; delta!=0.0)
  1207. <a name="l01122"></a>01122 {
  1208. <a name="l01123"></a>01123 std::vector&lt;dataType&gt; capH(<a class="code" href="classcrossSectionGeom__boxSpar.html#a2fb6e8ee79af8c205ffe08a9c7d30149">capBotH</a>.size());
  1209. <a name="l01124"></a>01124 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a2fb6e8ee79af8c205ffe08a9c7d30149">capBotH</a>.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1210. <a name="l01125"></a>01125 capH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]=<a class="code" href="classcrossSectionGeom__boxSpar.html#a2fb6e8ee79af8c205ffe08a9c7d30149">capBotH</a>[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]+delta;
  1211. <a name="l01126"></a>01126 <a class="code" href="classcrossSectionGeom__boxSpar.html#a529553c62b2b36290af337cb815a2407">offsetBotCap</a>(capH);
  1212. <a name="l01127"></a>01127 }
  1213. <a name="l01128"></a>01128 }
  1214. <a name="l01129"></a>01129
  1215. <a name="l01130"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a757f42a3d56635455fdda8d88035b5ca">01130</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#aebacd02bffad1703eb9d9e6c0822e4a1">offsetSkin</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="timoshenko_8cpp.html#a61e26f9dc99fba49f7fadb4c55cad0d9">H</a>,<span class="keywordtype">bool</span> shiftCapH=<span class="keyword">false</span>)
  1216. <a name="l01131"></a>01131 {
  1217. <a name="l01132"></a>01132 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> div=H/(<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves.size()-1);
  1218. <a name="l01133"></a>01133 std::vector&lt;dataType&gt; vectH(<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves.size(),0.0);
  1219. <a name="l01134"></a>01134 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=1;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1220. <a name="l01135"></a>01135 vectH[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>)*div;
  1221. <a name="l01136"></a>01136 <a class="code" href="classcrossSectionGeom__boxSpar.html#aebacd02bffad1703eb9d9e6c0822e4a1">offsetSkin</a>(vectH,shiftCapH);
  1222. <a name="l01137"></a>01137 }
  1223. <a name="l01138"></a>01138
  1224. <a name="l01139"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a05b61d1a4876a0ee9df6f2ff4f361bec">01139</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a05b61d1a4876a0ee9df6f2ff4f361bec">midCurveSet</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s,<a class="code" href="classcurve.html">curve&lt;dataType&gt;</a>* curveC,<a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a>&amp; <a class="code" href="timoshenko_8cpp.html#ac5eb09f63c828d8b858cf5c18eabfe8a">A</a>,<a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a>&amp; <a class="code" href="timoshenko_8cpp.html#a8edcb78651b9b4807e1de4008fe949c4">B</a>,<a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a>&amp; <a class="code" href="timoshenko_8cpp.html#a782271fe256f5ab9801b612fc8c854d0">C</a>,<span class="keywordtype">bool</span> cWrap=<span class="keyword">false</span>)
  1225. <a name="l01140"></a>01140 {
  1226. <a name="l01141"></a>01141 <a class="code" href="classcurvePointData.html">curvePointData&lt;dataType&gt;</a> pntDataA;
  1227. <a name="l01142"></a>01142 <a class="code" href="classcurvePointData.html">curvePointData&lt;dataType&gt;</a> pntDataB;
  1228. <a name="l01143"></a>01143 <a class="code" href="classcurvePointData.html">curvePointData&lt;dataType&gt;</a> pntDataC;
  1229. <a name="l01144"></a>01144 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> ang;
  1230. <a name="l01145"></a>01145 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> L=2.0*sqrt(pow(<a class="code" href="classcrossSectionGeom__boxSpar.html#a18f41ebaa3f758afb23f5e0633feab44">xMax</a>-<a class="code" href="classcrossSectionGeom__boxSpar.html#a8d01455718c3eae5cbfff1757da192a0">xMin</a>,2.0)+pow(<a class="code" href="classcrossSectionGeom__boxSpar.html#a5250d59b9a494f2d9942d648ba7a8f48">yMax</a>-<a class="code" href="classcrossSectionGeom__boxSpar.html#aee7feab134ec58da09ad2748dbf7e3fa">yMin</a>,2.0));
  1231. <a name="l01146"></a>01146 <a class="code" href="classlineSegment.html">lineSegment&lt;dataType&gt;</a> seg;
  1232. <a name="l01147"></a>01147
  1233. <a name="l01148"></a>01148 <span class="comment">// set the B1</span>
  1234. <a name="l01149"></a>01149 B.<a class="code" href="classcommonPoint__Data.html#a29773035d7b102059354220827b49951">s</a>=s;
  1235. <a name="l01150"></a>01150 pntDataB=<a class="code" href="classcrossSectionGeom__boxSpar.html#a907749586b2db14e42b2a827adbdcbd6">curveB</a>()-&gt;getPointData(B.<a class="code" href="classcommonPoint__Data.html#a29773035d7b102059354220827b49951">s</a>);
  1236. <a name="l01151"></a>01151
  1237. <a name="l01152"></a>01152 <span class="comment">// seek out A1</span>
  1238. <a name="l01153"></a>01153 ang=pntDataB.<a class="code" href="classcurvePointData.html#a46594ff5b9f3d0b1a2c422f40113f23d">angle</a>-<a class="code" href="classglobal.html">global&lt;dataType&gt;::pi</a>/2.0;
  1239. <a name="l01154"></a>01154 seg.<a class="code" href="classlineSegment.html#a08b1e2ce361736f69809ae2b3200b8d5">start</a>=pntDataB.<a class="code" href="classcurvePointData.html#a0eed9b95e394660b13ebab4080bc9afc">position</a>;
  1240. <a name="l01155"></a>01155 seg.<a class="code" href="classlineSegment.html#ac80f03cc2352b52fd08e0b4d804815b8">delta</a>.x=L*cos(ang);
  1241. <a name="l01156"></a>01156 seg.<a class="code" href="classlineSegment.html#ac80f03cc2352b52fd08e0b4d804815b8">delta</a>.y=L*sin(ang);
  1242. <a name="l01157"></a>01157 pntDataA=<a class="code" href="classcrossSectionGeom__boxSpar.html#a45cf9ae0bf458e2bbe28b6afedeb69f8">curveA</a>()-&gt;intersectFirstData(seg);
  1243. <a name="l01158"></a>01158 A.<a class="code" href="classcommonPoint__Data.html#a29773035d7b102059354220827b49951">s</a>=pntDataA.<a class="code" href="classcurvePointData.html#a8a6d5fff4e06528adf91c68e285a1edb">sEstimate</a>;
  1244. <a name="l01159"></a>01159 <span class="keywordflow">if</span>(cWrap)
  1245. <a name="l01160"></a>01160 A.<a class="code" href="classcommonPoint__Data.html#a29773035d7b102059354220827b49951">s</a>-=1.0;
  1246. <a name="l01161"></a>01161
  1247. <a name="l01162"></a>01162 <span class="comment">// seek out C1</span>
  1248. <a name="l01163"></a>01163 seg.<a class="code" href="classlineSegment.html#ac80f03cc2352b52fd08e0b4d804815b8">delta</a>.x=-seg.<a class="code" href="classlineSegment.html#ac80f03cc2352b52fd08e0b4d804815b8">delta</a>.x;
  1249. <a name="l01164"></a>01164 seg.<a class="code" href="classlineSegment.html#ac80f03cc2352b52fd08e0b4d804815b8">delta</a>.y=-seg.<a class="code" href="classlineSegment.html#ac80f03cc2352b52fd08e0b4d804815b8">delta</a>.y;
  1250. <a name="l01165"></a>01165 pntDataC=curveC-&gt;<a class="code" href="classcurve.html#a0f79a2d3330cfc9b6a69ff6e65e0e4b4">intersectFirstData</a>(seg);
  1251. <a name="l01166"></a>01166 C.<a class="code" href="classcommonPoint__Data.html#a29773035d7b102059354220827b49951">s</a>=pntDataC.<a class="code" href="classcurvePointData.html#a8a6d5fff4e06528adf91c68e285a1edb">sEstimate</a>;
  1252. <a name="l01167"></a>01167 }
  1253. <a name="l01168"></a>01168
  1254. <a name="l01169"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ab7629a9d2c1ddfd937660fc212015821">01169</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#ab7629a9d2c1ddfd937660fc212015821">innerCurveSet</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s,<a class="code" href="classcurve.html">curve&lt;dataType&gt;</a>* curveC,<a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a>&amp; <a class="code" href="timoshenko_8cpp.html#ac5eb09f63c828d8b858cf5c18eabfe8a">A</a>,<a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a>&amp; <a class="code" href="timoshenko_8cpp.html#a8edcb78651b9b4807e1de4008fe949c4">B</a>,<a class="code" href="classcommonPoint__Data.html">commonPoint_Data&lt;dataType&gt;</a>&amp; <a class="code" href="timoshenko_8cpp.html#a782271fe256f5ab9801b612fc8c854d0">C</a>,<span class="keywordtype">bool</span> cWrap=<span class="keyword">false</span>)
  1255. <a name="l01170"></a>01170 {
  1256. <a name="l01171"></a>01171 <a class="code" href="classcurvePointData.html">curvePointData&lt;dataType&gt;</a> pntDataA;
  1257. <a name="l01172"></a>01172 <a class="code" href="classcurvePointData.html">curvePointData&lt;dataType&gt;</a> pntDataB;
  1258. <a name="l01173"></a>01173 <a class="code" href="classcurvePointData.html">curvePointData&lt;dataType&gt;</a> pntDataC;
  1259. <a name="l01174"></a>01174 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> ang;
  1260. <a name="l01175"></a>01175 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> L=2.0*sqrt(pow(<a class="code" href="classcrossSectionGeom__boxSpar.html#a18f41ebaa3f758afb23f5e0633feab44">xMax</a>-<a class="code" href="classcrossSectionGeom__boxSpar.html#a8d01455718c3eae5cbfff1757da192a0">xMin</a>,2.0)+pow(<a class="code" href="classcrossSectionGeom__boxSpar.html#a5250d59b9a494f2d9942d648ba7a8f48">yMax</a>-<a class="code" href="classcrossSectionGeom__boxSpar.html#aee7feab134ec58da09ad2748dbf7e3fa">yMin</a>,2.0));
  1261. <a name="l01176"></a>01176 <a class="code" href="classlineSegment.html">lineSegment&lt;dataType&gt;</a> seg;
  1262. <a name="l01177"></a>01177
  1263. <a name="l01178"></a>01178 <span class="comment">// seek out C1</span>
  1264. <a name="l01179"></a>01179 C.<a class="code" href="classcommonPoint__Data.html#a29773035d7b102059354220827b49951">s</a>=s;
  1265. <a name="l01180"></a>01180 pntDataC=curveC-&gt;<a class="code" href="classcurve.html#a92ca2b6aada5dfea9dab8c6ccbc98ab7">getPointData</a>(C.<a class="code" href="classcommonPoint__Data.html#a29773035d7b102059354220827b49951">s</a>);
  1266. <a name="l01181"></a>01181
  1267. <a name="l01182"></a>01182 <span class="comment">// seek out A1</span>
  1268. <a name="l01183"></a>01183 ang=pntDataC.<a class="code" href="classcurvePointData.html#a46594ff5b9f3d0b1a2c422f40113f23d">angle</a>-<a class="code" href="classglobal.html">global&lt;dataType&gt;::pi</a>/2.0;
  1269. <a name="l01184"></a>01184 seg.<a class="code" href="classlineSegment.html#a08b1e2ce361736f69809ae2b3200b8d5">start</a>=pntDataC.<a class="code" href="classcurvePointData.html#a0eed9b95e394660b13ebab4080bc9afc">position</a>;
  1270. <a name="l01185"></a>01185 seg.<a class="code" href="classlineSegment.html#ac80f03cc2352b52fd08e0b4d804815b8">delta</a>.x=L*cos(ang);
  1271. <a name="l01186"></a>01186 seg.<a class="code" href="classlineSegment.html#ac80f03cc2352b52fd08e0b4d804815b8">delta</a>.y=L*sin(ang);
  1272. <a name="l01187"></a>01187 pntDataA=<a class="code" href="classcrossSectionGeom__boxSpar.html#a45cf9ae0bf458e2bbe28b6afedeb69f8">curveA</a>()-&gt;intersectFirstData(seg);
  1273. <a name="l01188"></a>01188 A.<a class="code" href="classcommonPoint__Data.html#a29773035d7b102059354220827b49951">s</a>=pntDataA.<a class="code" href="classcurvePointData.html#a8a6d5fff4e06528adf91c68e285a1edb">sEstimate</a>;
  1274. <a name="l01189"></a>01189 <span class="keywordflow">if</span>(cWrap)
  1275. <a name="l01190"></a>01190 A.<a class="code" href="classcommonPoint__Data.html#a29773035d7b102059354220827b49951">s</a>-=1.0;
  1276. <a name="l01191"></a>01191
  1277. <a name="l01192"></a>01192 <span class="comment">// set the B1</span>
  1278. <a name="l01193"></a>01193 pntDataB=<a class="code" href="classcrossSectionGeom__boxSpar.html#a907749586b2db14e42b2a827adbdcbd6">curveB</a>()-&gt;intersectFirstData(seg);
  1279. <a name="l01194"></a>01194 B.<a class="code" href="classcommonPoint__Data.html#a29773035d7b102059354220827b49951">s</a>=pntDataB.<a class="code" href="classcurvePointData.html#a8a6d5fff4e06528adf91c68e285a1edb">sEstimate</a>;
  1280. <a name="l01195"></a>01195 <span class="keywordflow">if</span>(cWrap)
  1281. <a name="l01196"></a>01196 B.<a class="code" href="classcommonPoint__Data.html#a29773035d7b102059354220827b49951">s</a>-=1.0;
  1282. <a name="l01197"></a>01197 }
  1283. <a name="l01198"></a>01198
  1284. <a name="l01199"></a>01199 <span class="comment">// this will project orthogonal lines to the adjacent curves to get the intersection locations</span>
  1285. <a name="l01200"></a>01200 <span class="comment">// modify the TE location of the bottom spar cap</span>
  1286. <a name="l01201"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a4aa9670c7cdd324a4f3f70acdd7d6819">01201</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a4aa9670c7cdd324a4f3f70acdd7d6819">moveB0</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s) <span class="comment">// this really moves the A0, C8 pnts as well</span>
  1287. <a name="l01202"></a>01202 {
  1288. <a name="l01203"></a>01203 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>)
  1289. <a name="l01204"></a>01204 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveB0(): Cannot move points because the curves have not been generated&quot;</span>);
  1290. <a name="l01205"></a>01205
  1291. <a name="l01206"></a>01206 <a class="code" href="classcrossSectionGeom__boxSpar.html#a05b61d1a4876a0ee9df6f2ff4f361bec">midCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">curveCBot</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#a1422433b87890d17379f00a3de81a4ad">A0</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#aed61352beb17b58f6db0ad5696f7b88d">B0</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a4beef0cf83eaf46361d59ecd22180179">C8</a>,<span class="keyword">true</span>);
  1292. <a name="l01207"></a>01207 }
  1293. <a name="l01208"></a>01208
  1294. <a name="l01209"></a>01209 <span class="comment">// modify the TE location of the top spar cap</span>
  1295. <a name="l01210"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a8f643c2d8eee61cb0d70f20df4298ca9">01210</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a8f643c2d8eee61cb0d70f20df4298ca9">moveB1</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s)
  1296. <a name="l01211"></a>01211 {
  1297. <a name="l01212"></a>01212 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a>)
  1298. <a name="l01213"></a>01213 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveB1(): Cannot move points because the curves have not been generated&quot;</span>);
  1299. <a name="l01214"></a>01214
  1300. <a name="l01215"></a>01215 <a class="code" href="classcrossSectionGeom__boxSpar.html#a05b61d1a4876a0ee9df6f2ff4f361bec">midCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">curveCTop</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#afee4791db4bfb95ee81c18b2b1c06bc1">A1</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a43c458f298608f9bec46ac4d10004022">B1</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a56121913b2656778996108c9ae63861e">C1</a>,<span class="keyword">false</span>);
  1301. <a name="l01216"></a>01216 }
  1302. <a name="l01217"></a>01217
  1303. <a name="l01218"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a2ca91659c701efdc3e1cdab7123704e9">01218</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a2ca91659c701efdc3e1cdab7123704e9">moveC1</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s)
  1304. <a name="l01219"></a>01219 {
  1305. <a name="l01220"></a>01220 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a>)
  1306. <a name="l01221"></a>01221 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveC1(): Cannot move points because the curves have not been generated&quot;</span>);
  1307. <a name="l01222"></a>01222
  1308. <a name="l01223"></a>01223 <a class="code" href="classcrossSectionGeom__boxSpar.html#ab7629a9d2c1ddfd937660fc212015821">innerCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">curveCTop</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#afee4791db4bfb95ee81c18b2b1c06bc1">A1</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a43c458f298608f9bec46ac4d10004022">B1</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a56121913b2656778996108c9ae63861e">C1</a>,<span class="keyword">false</span>);
  1309. <a name="l01224"></a>01224 }
  1310. <a name="l01225"></a>01225
  1311. <a name="l01226"></a>01226 <span class="comment">// modify the LE location of the top spar cap</span>
  1312. <a name="l01227"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ab8f98c61324e521977e1904fe3b7759a">01227</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#ab8f98c61324e521977e1904fe3b7759a">moveB4</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s)
  1313. <a name="l01228"></a>01228 {
  1314. <a name="l01229"></a>01229 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a>)
  1315. <a name="l01230"></a>01230 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveB4(): Cannot move points because the curves have not been generated&quot;</span>);
  1316. <a name="l01231"></a>01231
  1317. <a name="l01232"></a>01232 <a class="code" href="classcrossSectionGeom__boxSpar.html#a05b61d1a4876a0ee9df6f2ff4f361bec">midCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">curveCTop</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#ae98b06e7dcac554700ae17ca4913f400">A4</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#ad785cfb8b42e15c3978fbe5bf22227e8">B4</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a4925e50ae43097efc3f610d67cc99582">C4</a>,<span class="keyword">false</span>);
  1318. <a name="l01233"></a>01233 }
  1319. <a name="l01234"></a>01234
  1320. <a name="l01235"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a8076d4878160955bcae84a745198611d">01235</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a8076d4878160955bcae84a745198611d">moveC4</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s)
  1321. <a name="l01236"></a>01236 {
  1322. <a name="l01237"></a>01237 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a>)
  1323. <a name="l01238"></a>01238 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveC4(): Cannot move points because the curves have not been generated&quot;</span>);
  1324. <a name="l01239"></a>01239
  1325. <a name="l01240"></a>01240 <a class="code" href="classcrossSectionGeom__boxSpar.html#ab7629a9d2c1ddfd937660fc212015821">innerCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">curveCTop</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#ae98b06e7dcac554700ae17ca4913f400">A4</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#ad785cfb8b42e15c3978fbe5bf22227e8">B4</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a4925e50ae43097efc3f610d67cc99582">C4</a>,<span class="keyword">false</span>);
  1326. <a name="l01241"></a>01241 }
  1327. <a name="l01242"></a>01242
  1328. <a name="l01243"></a>01243 <span class="comment">// modify the LE location of the bottom spar cap</span>
  1329. <a name="l01244"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a8663359ef9fc569fb90a034a51558e35">01244</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a8663359ef9fc569fb90a034a51558e35">moveB5</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s)
  1330. <a name="l01245"></a>01245 {
  1331. <a name="l01246"></a>01246 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>)
  1332. <a name="l01247"></a>01247 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveB5(): Cannot move points because the curves have not been generated&quot;</span>);
  1333. <a name="l01248"></a>01248
  1334. <a name="l01249"></a>01249 <a class="code" href="classcrossSectionGeom__boxSpar.html#a05b61d1a4876a0ee9df6f2ff4f361bec">midCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">curveCBot</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#ad2b0e8e9d5b5bac7bbfe8ec04e301230">A5</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a607d7b4d9d6cc316b733221694be2fa6">B5</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a799a3ccc947297717536e8da86d37352">C5</a>,<span class="keyword">false</span>);
  1335. <a name="l01250"></a>01250 }
  1336. <a name="l01251"></a>01251
  1337. <a name="l01252"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ac2730c7fd48da4e8bdfa17a613081ccf">01252</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#ac2730c7fd48da4e8bdfa17a613081ccf">moveC5</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s)
  1338. <a name="l01253"></a>01253 {
  1339. <a name="l01254"></a>01254 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>)
  1340. <a name="l01255"></a>01255 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveC5(): Cannot move points because the curves have not been generated&quot;</span>);
  1341. <a name="l01256"></a>01256
  1342. <a name="l01257"></a>01257 <a class="code" href="classcrossSectionGeom__boxSpar.html#ab7629a9d2c1ddfd937660fc212015821">innerCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">curveCBot</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#ad2b0e8e9d5b5bac7bbfe8ec04e301230">A5</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a607d7b4d9d6cc316b733221694be2fa6">B5</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a799a3ccc947297717536e8da86d37352">C5</a>,<span class="keyword">false</span>);
  1343. <a name="l01258"></a>01258 }
  1344. <a name="l01259"></a>01259
  1345. <a name="l01260"></a>01260 <span class="comment">// modify the TE location of the bottom spar cap</span>
  1346. <a name="l01261"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ac2b98045296288df6300396d9458abb8">01261</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#ac2b98045296288df6300396d9458abb8">moveC8</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s) <span class="comment">// this really moves the A0, B0 pnts as well </span>
  1347. <a name="l01262"></a>01262 {
  1348. <a name="l01263"></a>01263 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>)
  1349. <a name="l01264"></a>01264 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveC8(): Cannot move points because the curves have not been generated&quot;</span>);
  1350. <a name="l01265"></a>01265
  1351. <a name="l01266"></a>01266 <a class="code" href="classcrossSectionGeom__boxSpar.html#ab7629a9d2c1ddfd937660fc212015821">innerCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">curveCBot</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#a1422433b87890d17379f00a3de81a4ad">A0</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#aed61352beb17b58f6db0ad5696f7b88d">B0</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a4beef0cf83eaf46361d59ecd22180179">C8</a>,<span class="keyword">true</span>);
  1352. <a name="l01267"></a>01267 }
  1353. <a name="l01268"></a>01268
  1354. <a name="l01269"></a>01269 <span class="comment">// modify the TE location at the top of the shear web</span>
  1355. <a name="l01270"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a9af3d3008da6cd39b4f95937dee9331d">01270</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a9af3d3008da6cd39b4f95937dee9331d">moveC2</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s)
  1356. <a name="l01271"></a>01271 {
  1357. <a name="l01272"></a>01272 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a>)
  1358. <a name="l01273"></a>01273 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveC2(): Cannot move points because the curves have not been generated&quot;</span>);
  1359. <a name="l01274"></a>01274
  1360. <a name="l01275"></a>01275 <a class="code" href="classcrossSectionGeom__boxSpar.html#ab7629a9d2c1ddfd937660fc212015821">innerCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">curveCTop</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#a933a931d73246fc761783936862eea1b">A2</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#ad4d6c45d2d39b55516dd0f9a8668e6cf">B2</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a55a2751a3a1b3b865dcb75a6128fdf02">C2</a>,<span class="keyword">false</span>);
  1361. <a name="l01276"></a>01276 }
  1362. <a name="l01277"></a>01277
  1363. <a name="l01278"></a>01278 <span class="comment">// modify the LE location at the top of the shear web</span>
  1364. <a name="l01279"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a6140f1e23077c3e9eb5ef94d23a971dd">01279</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a6140f1e23077c3e9eb5ef94d23a971dd">moveC3</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s)
  1365. <a name="l01280"></a>01280 {
  1366. <a name="l01281"></a>01281 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a>)
  1367. <a name="l01282"></a>01282 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveC3(): Cannot move points because the curves have not been generated&quot;</span>);
  1368. <a name="l01283"></a>01283
  1369. <a name="l01284"></a>01284 <a class="code" href="classcrossSectionGeom__boxSpar.html#ab7629a9d2c1ddfd937660fc212015821">innerCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">curveCTop</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#abde4a2b04d0fd4f46886cad988a9b92a">A3</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a4aee53e8bfacbaafb9fe8addb4272529">B3</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a29a5cca50f71feb2732d138a11beb791">C3</a>,<span class="keyword">false</span>);
  1370. <a name="l01285"></a>01285 }
  1371. <a name="l01286"></a>01286
  1372. <a name="l01287"></a>01287 <span class="comment">// modify the LE location at the bottom of the shear web</span>
  1373. <a name="l01288"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a2ec666c5a60e4a20796155ec3e5bb2fb">01288</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a2ec666c5a60e4a20796155ec3e5bb2fb">moveC6</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s)
  1374. <a name="l01289"></a>01289 {
  1375. <a name="l01290"></a>01290 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>)
  1376. <a name="l01291"></a>01291 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveC6(): Cannot move points because the curves have not been generated&quot;</span>);
  1377. <a name="l01292"></a>01292
  1378. <a name="l01293"></a>01293 <a class="code" href="classcrossSectionGeom__boxSpar.html#ab7629a9d2c1ddfd937660fc212015821">innerCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">curveCBot</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#af0862244e16f6a505e925fe5944c2825">A6</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a24a23cd15607e1a8961e6e37c0074c02">B6</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a25afa740fb8891f5ee5ee18c5d78bb85">C6</a>,<span class="keyword">false</span>);
  1379. <a name="l01294"></a>01294 }
  1380. <a name="l01295"></a>01295
  1381. <a name="l01296"></a>01296 <span class="comment">// modify the TE location at the bottom of the shear web</span>
  1382. <a name="l01297"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#aacbec7f2953174738e321bd3ace3931c">01297</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#aacbec7f2953174738e321bd3ace3931c">moveC7</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> s)
  1383. <a name="l01298"></a>01298 {
  1384. <a name="l01299"></a>01299 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>)
  1385. <a name="l01300"></a>01300 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::moveC7(): Cannot move points because the curves have not been generated&quot;</span>);
  1386. <a name="l01301"></a>01301
  1387. <a name="l01302"></a>01302 <a class="code" href="classcrossSectionGeom__boxSpar.html#ab7629a9d2c1ddfd937660fc212015821">innerCurveSet</a>(s,<a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">curveCBot</a>(),<a class="code" href="classcrossSectionGeom__boxSpar.html#a4d379da61d1b4230eab4a3668cea77d2">A7</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a7390bd69fa3a1c7b8f0573d7f7c2eb57">B7</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a9efc731f1f7f87d77c3e68dcd52d3500">C7</a>,<span class="keyword">false</span>);
  1388. <a name="l01303"></a>01303 }
  1389. <a name="l01304"></a>01304
  1390. <a name="l01305"></a>01305 <span class="comment">// note that this assumes that the shear web connects in places where there is little curvature</span>
  1391. <a name="l01306"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#ab0233ff7ec9af60b9fec2cf170b7e6f0">01306</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#ab0233ff7ec9af60b9fec2cf170b7e6f0">setShearWeb0</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> width)
  1392. <a name="l01307"></a>01307 {
  1393. <a name="l01308"></a>01308 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> sTop=<a class="code" href="classcrossSectionGeom__boxSpar.html#a56121913b2656778996108c9ae63861e">C1</a>.s;
  1394. <a name="l01309"></a>01309 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> sBot=<a class="code" href="classcrossSectionGeom__boxSpar.html#a4beef0cf83eaf46361d59ecd22180179">C8</a>.s;
  1395. <a name="l01310"></a>01310
  1396. <a name="l01311"></a>01311 <a class="code" href="classcurvePointData.html">curvePointData&lt;dataType&gt;</a> topData=<a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">curveCTop</a>()-&gt;getPointData(sTop);
  1397. <a name="l01312"></a>01312 <a class="code" href="classcurvePointData.html">curvePointData&lt;dataType&gt;</a> botData=<a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">curveCBot</a>()-&gt;getPointData(sBot);
  1398. <a name="l01313"></a>01313
  1399. <a name="l01314"></a>01314 <a class="code" href="classplanePoint.html">planePoint&lt;dataType&gt;</a> webLine=botData.<a class="code" href="classcurvePointData.html#a0eed9b95e394660b13ebab4080bc9afc">position</a>-topData.<a class="code" href="classcurvePointData.html#a0eed9b95e394660b13ebab4080bc9afc">position</a>;
  1400. <a name="l01315"></a>01315 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> ang=atan2(webLine.<a class="code" href="classplanePoint.html#aaf99f5b126fa4b299ef00b308d5a10ed">y</a>,webLine.<a class="code" href="classplanePoint.html#aa74fa1087ea6d64336c8bf9f8f4e9c6c">x</a>);
  1401. <a name="l01316"></a>01316
  1402. <a name="l01317"></a>01317 <span class="keywordflow">if</span>(sin(topData.<a class="code" href="classcurvePointData.html#a46594ff5b9f3d0b1a2c422f40113f23d">angle</a>-ang)==0.0)
  1403. <a name="l01318"></a>01318 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::Cannot connect parallel points&quot;</span>);
  1404. <a name="l01319"></a>01319 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> dS=width/(fabs(sin(topData.<a class="code" href="classcurvePointData.html#a46594ff5b9f3d0b1a2c422f40113f23d">angle</a>-ang))*<a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">curveCTop</a>()-&gt;jacobian(sTop));
  1405. <a name="l01320"></a>01320 <a class="code" href="classcrossSectionGeom__boxSpar.html#a9af3d3008da6cd39b4f95937dee9331d">moveC2</a>(sTop+dS);
  1406. <a name="l01321"></a>01321
  1407. <a name="l01322"></a>01322 <span class="keywordflow">if</span>(sin(ang-botData.<a class="code" href="classcurvePointData.html#a46594ff5b9f3d0b1a2c422f40113f23d">angle</a>)==0.0)
  1408. <a name="l01323"></a>01323 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::Cannot connect parallel points&quot;</span>);
  1409. <a name="l01324"></a>01324 dS=width/(fabs(sin(ang-botData.<a class="code" href="classcurvePointData.html#a46594ff5b9f3d0b1a2c422f40113f23d">angle</a>))*<a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">curveCBot</a>()-&gt;jacobian(sBot));
  1410. <a name="l01325"></a>01325 <a class="code" href="classcrossSectionGeom__boxSpar.html#aacbec7f2953174738e321bd3ace3931c">moveC7</a>(sBot-dS);
  1411. <a name="l01326"></a>01326 }
  1412. <a name="l01327"></a>01327
  1413. <a name="l01328"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a3646807d9ffae0bf5545044b0c6f552e">01328</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a3646807d9ffae0bf5545044b0c6f552e">setShearWeb1</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> width)
  1414. <a name="l01329"></a>01329 {
  1415. <a name="l01330"></a>01330 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> sTop=<a class="code" href="classcrossSectionGeom__boxSpar.html#a4925e50ae43097efc3f610d67cc99582">C4</a>.s;
  1416. <a name="l01331"></a>01331 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> sBot=<a class="code" href="classcrossSectionGeom__boxSpar.html#a799a3ccc947297717536e8da86d37352">C5</a>.s;
  1417. <a name="l01332"></a>01332
  1418. <a name="l01333"></a>01333 <a class="code" href="classcurvePointData.html">curvePointData&lt;dataType&gt;</a> topData=<a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">curveCTop</a>()-&gt;getPointData(sTop);
  1419. <a name="l01334"></a>01334 <a class="code" href="classcurvePointData.html">curvePointData&lt;dataType&gt;</a> botData=<a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">curveCBot</a>()-&gt;getPointData(sBot);
  1420. <a name="l01335"></a>01335
  1421. <a name="l01336"></a>01336 <a class="code" href="classplanePoint.html">planePoint&lt;dataType&gt;</a> webLine=botData.<a class="code" href="classcurvePointData.html#a0eed9b95e394660b13ebab4080bc9afc">position</a>-topData.<a class="code" href="classcurvePointData.html#a0eed9b95e394660b13ebab4080bc9afc">position</a>;
  1422. <a name="l01337"></a>01337 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> ang=atan2(webLine.<a class="code" href="classplanePoint.html#aaf99f5b126fa4b299ef00b308d5a10ed">y</a>,webLine.<a class="code" href="classplanePoint.html#aa74fa1087ea6d64336c8bf9f8f4e9c6c">x</a>);
  1423. <a name="l01338"></a>01338
  1424. <a name="l01339"></a>01339 <span class="keywordflow">if</span>(sin(topData.<a class="code" href="classcurvePointData.html#a46594ff5b9f3d0b1a2c422f40113f23d">angle</a>-ang)==0.0)
  1425. <a name="l01340"></a>01340 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::Cannot connect parallel points&quot;</span>);
  1426. <a name="l01341"></a>01341 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> dS=width/(fabs(sin(topData.<a class="code" href="classcurvePointData.html#a46594ff5b9f3d0b1a2c422f40113f23d">angle</a>-ang))*<a class="code" href="classcrossSectionGeom__boxSpar.html#ae1604e7c370393c317c26378cbe03caa">curveCTop</a>()-&gt;jacobian(sTop));
  1427. <a name="l01342"></a>01342 <a class="code" href="classcrossSectionGeom__boxSpar.html#a6140f1e23077c3e9eb5ef94d23a971dd">moveC3</a>(sTop-dS);
  1428. <a name="l01343"></a>01343
  1429. <a name="l01344"></a>01344 <span class="keywordflow">if</span>(sin(ang-botData.<a class="code" href="classcurvePointData.html#a46594ff5b9f3d0b1a2c422f40113f23d">angle</a>)==0.0)
  1430. <a name="l01345"></a>01345 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::Cannot connect parallel points&quot;</span>);
  1431. <a name="l01346"></a>01346 dS=width/(fabs(sin(ang-botData.<a class="code" href="classcurvePointData.html#a46594ff5b9f3d0b1a2c422f40113f23d">angle</a>))*<a class="code" href="classcrossSectionGeom__boxSpar.html#a5717494de49de5f4e3135287c1f7f5b2">curveCBot</a>()-&gt;jacobian(sBot));
  1432. <a name="l01347"></a>01347 <a class="code" href="classcrossSectionGeom__boxSpar.html#a2ec666c5a60e4a20796155ec3e5bb2fb">moveC6</a>(sBot+dS);
  1433. <a name="l01348"></a>01348 }
  1434. <a name="l01349"></a>01349
  1435. <a name="l01350"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a9b27bbd4a6b72b6356bea51400c3c1ef">01350</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a9b27bbd4a6b72b6356bea51400c3c1ef">loadMatlIntoBoxes</a>()
  1436. <a name="l01351"></a>01351 {
  1437. <a name="l01352"></a>01352 <a class="code" href="classcrossSectionGeom__boxSpar.html#af530a17a3a41083443ddb25a07ee51d9">A0Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#ab7b6fa9f449038d97c0f47302b02cf0c">A0Matl</a>;
  1438. <a name="l01353"></a>01353 <a class="code" href="classcrossSectionGeom__boxSpar.html#ab3c35eef72ad917dddda3f3ace581727">A1Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#a8bc1b7198faf2c92aa34ccb7c9b9637b">A1Matl</a>;
  1439. <a name="l01354"></a>01354 <a class="code" href="classcrossSectionGeom__boxSpar.html#aef0f95659ef1ccfa6500871c94a41306">A2Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#a9a7dcd81f82f7bad7692f0050ff353da">A2Matl</a>;
  1440. <a name="l01355"></a>01355 <a class="code" href="classcrossSectionGeom__boxSpar.html#aa7bb190b19e6391608e9b178d60cb634">A3Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#a8561407dd8b35c653c91f80702533dbf">A3Matl</a>;
  1441. <a name="l01356"></a>01356 <a class="code" href="classcrossSectionGeom__boxSpar.html#ad406194295bd5c6b86194c0617d53c0c">A4Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#abaefed0dec69f5ca25886d734262ad54">A4Matl</a>;
  1442. <a name="l01357"></a>01357 <a class="code" href="classcrossSectionGeom__boxSpar.html#a18cc66c382585e485bdd891bd979a292">A5Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#a12c693a2206f3b7ca40dc80b6b88e5c6">A5Matl</a>;
  1443. <a name="l01358"></a>01358 <a class="code" href="classcrossSectionGeom__boxSpar.html#af157f54a312b3414156c6d4fb950664e">A6Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#a7317407936c8fe049cf9c9972fe3a724">A6Matl</a>;
  1444. <a name="l01359"></a>01359 <a class="code" href="classcrossSectionGeom__boxSpar.html#a84c3b4c11d93986bd88b35f804685a8a">A7Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#a037b19eda0f6ce4696b5bc8c40f331ab">A7Matl</a>;
  1445. <a name="l01360"></a>01360 <a class="code" href="classcrossSectionGeom__boxSpar.html#a1e168cd07f831900bf024dbf3ddd7974">B1Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#a6620bd3f120622e6f40dbe6338a000b5">B1Matl</a>;
  1446. <a name="l01361"></a>01361 <a class="code" href="classcrossSectionGeom__boxSpar.html#a5dabb18555b56b2129e02480218ce326">B2Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#a9236c6c0ca9d8c466a29b1fbe6c2cab9">B2Matl</a>;
  1447. <a name="l01362"></a>01362 <a class="code" href="classcrossSectionGeom__boxSpar.html#ab351e4505c837eafb49df647078992a2">B3Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#aa3b11fe99302b14e216af9beb2ed219b">B3Matl</a>;
  1448. <a name="l01363"></a>01363 <a class="code" href="classcrossSectionGeom__boxSpar.html#af91e3936b5d026263070d888f123800b">B5Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#ae26b9762273456e1d5db40d4f745c186">B5Matl</a>;
  1449. <a name="l01364"></a>01364 <a class="code" href="classcrossSectionGeom__boxSpar.html#a8b5701d7248669755fb817d7d1eaeb10">B6Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#a62aa825e6ad73927e08360b6fb061fb0">B6Matl</a>;
  1450. <a name="l01365"></a>01365 <a class="code" href="classcrossSectionGeom__boxSpar.html#a4606c3846a8de71625c6ffa9da348c76">B7Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#ad05f7893207820460142b949972dc4c9">B7Matl</a>;
  1451. <a name="l01366"></a>01366 <a class="code" href="classcrossSectionGeom__boxSpar.html#ad11e93e805eb3e43fe3bb457c0d0077c">W0Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#aa975b745c69253a9f8e11e6191ab365f">W0Matl</a>;
  1452. <a name="l01367"></a>01367 <a class="code" href="classcrossSectionGeom__boxSpar.html#aa22a699857454a59cb666aa766248af9">W1Box</a>.material=<a class="code" href="classcrossSectionGeom__boxSpar.html#a599076f0db4a86d25e1546f4429a95f3">W1Matl</a>;
  1453. <a name="l01368"></a>01368 }
  1454. <a name="l01369"></a>01369
  1455. <a name="l01370"></a>01370 <span class="keyword">public</span>:
  1456. <a name="l01371"></a>01371
  1457. <a name="l01372"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a00269ab72f87beb1e163d49adb4bfb5d">01372</a> <a class="code" href="classcrossSectionGeom__boxSpar.html#a00269ab72f87beb1e163d49adb4bfb5d">crossSectionGeom_boxSpar</a>(
  1458. <a name="l01373"></a>01373 <a class="code" href="classcurveFamily.html">curveFamily&lt;dataType&gt;</a>* curveSource_in=NULL
  1459. <a name="l01374"></a>01374 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> skinCurveCnt_in=2
  1460. <a name="l01375"></a>01375 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> topCapCurveCnt_in=2
  1461. <a name="l01376"></a>01376 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> botCapCurveCnt_in=2
  1462. <a name="l01377"></a>01377 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> teLineCnt_in=2
  1463. <a name="l01378"></a>01378 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> teWebLineCnt_in=2
  1464. <a name="l01379"></a>01379 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> topCapLineCnt_in=2
  1465. <a name="l01380"></a>01380 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> leWebLineCnt_in=2
  1466. <a name="l01381"></a>01381 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> leLineCnt_in=2
  1467. <a name="l01382"></a>01382 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> botCapLineCnt_in=2
  1468. <a name="l01383"></a>01383 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> teWebCrossLineCnt_in=2
  1469. <a name="l01384"></a>01384 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> leWebCrossLineCnt_in=2
  1470. <a name="l01385"></a>01385 ,<span class="keywordtype">bool</span> deleteCurveSource_in=<span class="keyword">false</span>
  1471. <a name="l01386"></a>01386 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* A0Matl_in=NULL
  1472. <a name="l01387"></a>01387 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* A1Matl_in=NULL
  1473. <a name="l01388"></a>01388 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* A2Matl_in=NULL
  1474. <a name="l01389"></a>01389 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* A3Matl_in=NULL
  1475. <a name="l01390"></a>01390 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* A4Matl_in=NULL
  1476. <a name="l01391"></a>01391 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* A5Matl_in=NULL
  1477. <a name="l01392"></a>01392 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* A6Matl_in=NULL
  1478. <a name="l01393"></a>01393 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* A7Matl_in=NULL
  1479. <a name="l01394"></a>01394 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* B1Matl_in=NULL
  1480. <a name="l01395"></a>01395 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* B2Matl_in=NULL
  1481. <a name="l01396"></a>01396 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* B3Matl_in=NULL
  1482. <a name="l01397"></a>01397 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* B5Matl_in=NULL
  1483. <a name="l01398"></a>01398 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* B6Matl_in=NULL
  1484. <a name="l01399"></a>01399 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* B7Matl_in=NULL
  1485. <a name="l01400"></a>01400 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* web0Matl_in=NULL
  1486. <a name="l01401"></a>01401 ,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* web1Matl_in=NULL
  1487. <a name="l01402"></a>01402 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A0_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(-0.125)
  1488. <a name="l01403"></a>01403 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B0_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(-0.125)
  1489. <a name="l01404"></a>01404 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A1_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.125)
  1490. <a name="l01405"></a>01405 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B1_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.125)
  1491. <a name="l01406"></a>01406 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C1_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.125)
  1492. <a name="l01407"></a>01407 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A2_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.225)
  1493. <a name="l01408"></a>01408 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B2_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.225)
  1494. <a name="l01409"></a>01409 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C2_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.225)
  1495. <a name="l01410"></a>01410 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A3_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.275)
  1496. <a name="l01411"></a>01411 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B3_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.275)
  1497. <a name="l01412"></a>01412 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C3_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.275)
  1498. <a name="l01413"></a>01413 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A4_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.375)
  1499. <a name="l01414"></a>01414 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B4_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.375)
  1500. <a name="l01415"></a>01415 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C4_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.375)
  1501. <a name="l01416"></a>01416 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A5_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.625)
  1502. <a name="l01417"></a>01417 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B5_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.625)
  1503. <a name="l01418"></a>01418 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C5_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.625)
  1504. <a name="l01419"></a>01419 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A6_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.725)
  1505. <a name="l01420"></a>01420 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B6_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.725)
  1506. <a name="l01421"></a>01421 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C6_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.725)
  1507. <a name="l01422"></a>01422 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A7_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.775)
  1508. <a name="l01423"></a>01423 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B7_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.775)
  1509. <a name="l01424"></a>01424 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C7_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.775)
  1510. <a name="l01425"></a>01425 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C8_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.875)
  1511. <a name="l01426"></a>01426 )
  1512. <a name="l01427"></a>01427 : <a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">curveSource</a>(curveSource_in)
  1513. <a name="l01428"></a>01428 , <a class="code" href="classcrossSectionGeom__boxSpar.html#ad9712a92329b747a3d7e5cee84741107">deleteCurveSource</a>(deleteCurveSource_in)
  1514. <a name="l01429"></a>01429 , <a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>(skinCurveCnt_in)
  1515. <a name="l01430"></a>01430 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>(topCapCurveCnt_in)
  1516. <a name="l01431"></a>01431 , <a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>(botCapCurveCnt_in)
  1517. <a name="l01432"></a>01432 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a7e7d72643dcf7494434dff1bc05ee572">teNS</a>(teLineCnt_in)
  1518. <a name="l01433"></a>01433 , <a class="code" href="classcrossSectionGeom__boxSpar.html#aa0ed7cb98e82d476f93d64a21b387788">teWebNS</a>(teWebLineCnt_in)
  1519. <a name="l01434"></a>01434 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a667f13e078dac2e3b6954d2a89caa567">topCapNS</a>(topCapLineCnt_in)
  1520. <a name="l01435"></a>01435 , <a class="code" href="classcrossSectionGeom__boxSpar.html#aaab0a92e0d4cb17fd2863883d3a52615">leWebNS</a>(leWebLineCnt_in)
  1521. <a name="l01436"></a>01436 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a758dba0a6e09d6b711b095a565376a2e">leNS</a>(leLineCnt_in)
  1522. <a name="l01437"></a>01437 , <a class="code" href="classcrossSectionGeom__boxSpar.html#af249c0a98ebd4009a4532d90c258cf53">botCapNS</a>(botCapLineCnt_in)
  1523. <a name="l01438"></a>01438 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a786ec9cbbdc63299d078ddf3259fbe80">teWebCrossNS</a>(teWebCrossLineCnt_in)
  1524. <a name="l01439"></a>01439 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a2c6a78faccb081701e5be67f1b8320aa">leWebCrossNS</a>(leWebCrossLineCnt_in)
  1525. <a name="l01440"></a>01440 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a1422433b87890d17379f00a3de81a4ad">A0</a>(A0_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#aed61352beb17b58f6db0ad5696f7b88d">B0</a>(B0_s)
  1526. <a name="l01441"></a>01441 , <a class="code" href="classcrossSectionGeom__boxSpar.html#afee4791db4bfb95ee81c18b2b1c06bc1">A1</a>(A1_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a43c458f298608f9bec46ac4d10004022">B1</a>(A1_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a56121913b2656778996108c9ae63861e">C1</a>(C1_s)
  1527. <a name="l01442"></a>01442 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a933a931d73246fc761783936862eea1b">A2</a>(A2_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#ad4d6c45d2d39b55516dd0f9a8668e6cf">B2</a>(B2_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a55a2751a3a1b3b865dcb75a6128fdf02">C2</a>(C2_s)
  1528. <a name="l01443"></a>01443 , <a class="code" href="classcrossSectionGeom__boxSpar.html#abde4a2b04d0fd4f46886cad988a9b92a">A3</a>(A3_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a4aee53e8bfacbaafb9fe8addb4272529">B3</a>(B3_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a29a5cca50f71feb2732d138a11beb791">C3</a>(C3_s)
  1529. <a name="l01444"></a>01444 , <a class="code" href="classcrossSectionGeom__boxSpar.html#ae98b06e7dcac554700ae17ca4913f400">A4</a>(A4_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#ad785cfb8b42e15c3978fbe5bf22227e8">B4</a>(B4_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a4925e50ae43097efc3f610d67cc99582">C4</a>(C4_s)
  1530. <a name="l01445"></a>01445 , <a class="code" href="classcrossSectionGeom__boxSpar.html#ad2b0e8e9d5b5bac7bbfe8ec04e301230">A5</a>(A5_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a607d7b4d9d6cc316b733221694be2fa6">B5</a>(B5_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a799a3ccc947297717536e8da86d37352">C5</a>(C5_s)
  1531. <a name="l01446"></a>01446 , <a class="code" href="classcrossSectionGeom__boxSpar.html#af0862244e16f6a505e925fe5944c2825">A6</a>(A6_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a24a23cd15607e1a8961e6e37c0074c02">B6</a>(B6_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a25afa740fb8891f5ee5ee18c5d78bb85">C6</a>(C6_s)
  1532. <a name="l01447"></a>01447 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a4d379da61d1b4230eab4a3668cea77d2">A7</a>(A7_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a7390bd69fa3a1c7b8f0573d7f7c2eb57">B7</a>(B7_s) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a9efc731f1f7f87d77c3e68dcd52d3500">C7</a>(C7_s)
  1533. <a name="l01448"></a>01448 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a75a27c6d376a2fa566e4dff382549652">A8</a>(&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a1422433b87890d17379f00a3de81a4ad">A0</a>) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a90c5665c71d343002e0f8394a785e57d">B8</a>(&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aed61352beb17b58f6db0ad5696f7b88d">B0</a>) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a4beef0cf83eaf46361d59ecd22180179">C8</a>(C8_s)
  1534. <a name="l01449"></a>01449 , <a class="code" href="classcrossSectionGeom__boxSpar.html#ab7b6fa9f449038d97c0f47302b02cf0c">A0Matl</a>(A0Matl_in)
  1535. <a name="l01450"></a>01450 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a8bc1b7198faf2c92aa34ccb7c9b9637b">A1Matl</a>(A1Matl_in)
  1536. <a name="l01451"></a>01451 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a9a7dcd81f82f7bad7692f0050ff353da">A2Matl</a>(A2Matl_in)
  1537. <a name="l01452"></a>01452 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a8561407dd8b35c653c91f80702533dbf">A3Matl</a>(A3Matl_in)
  1538. <a name="l01453"></a>01453 , <a class="code" href="classcrossSectionGeom__boxSpar.html#abaefed0dec69f5ca25886d734262ad54">A4Matl</a>(A4Matl_in)
  1539. <a name="l01454"></a>01454 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a12c693a2206f3b7ca40dc80b6b88e5c6">A5Matl</a>(A5Matl_in)
  1540. <a name="l01455"></a>01455 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a7317407936c8fe049cf9c9972fe3a724">A6Matl</a>(A6Matl_in)
  1541. <a name="l01456"></a>01456 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a037b19eda0f6ce4696b5bc8c40f331ab">A7Matl</a>(A7Matl_in)
  1542. <a name="l01457"></a>01457 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a6620bd3f120622e6f40dbe6338a000b5">B1Matl</a>(B1Matl_in)
  1543. <a name="l01458"></a>01458 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a9236c6c0ca9d8c466a29b1fbe6c2cab9">B2Matl</a>(B2Matl_in)
  1544. <a name="l01459"></a>01459 , <a class="code" href="classcrossSectionGeom__boxSpar.html#aa3b11fe99302b14e216af9beb2ed219b">B3Matl</a>(B3Matl_in)
  1545. <a name="l01460"></a>01460 , <a class="code" href="classcrossSectionGeom__boxSpar.html#ae26b9762273456e1d5db40d4f745c186">B5Matl</a>(B5Matl_in)
  1546. <a name="l01461"></a>01461 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a62aa825e6ad73927e08360b6fb061fb0">B6Matl</a>(B6Matl_in)
  1547. <a name="l01462"></a>01462 , <a class="code" href="classcrossSectionGeom__boxSpar.html#ad05f7893207820460142b949972dc4c9">B7Matl</a>(B7Matl_in)
  1548. <a name="l01463"></a>01463 , <a class="code" href="classcrossSectionGeom__boxSpar.html#aa975b745c69253a9f8e11e6191ab365f">W0Matl</a>(web0Matl_in)
  1549. <a name="l01464"></a>01464 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a599076f0db4a86d25e1546f4429a95f3">W1Matl</a>(web1Matl_in)
  1550. <a name="l01465"></a>01465 , <a class="code" href="classcrossSectionGeom__boxSpar.html#af530a17a3a41083443ddb25a07ee51d9">A0Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#ab7b6fa9f449038d97c0f47302b02cf0c">A0Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a7e7d72643dcf7494434dff1bc05ee572">teNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a1422433b87890d17379f00a3de81a4ad">A0</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#afee4791db4bfb95ee81c18b2b1c06bc1">A1</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a43c458f298608f9bec46ac4d10004022">B1</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aed61352beb17b58f6db0ad5696f7b88d">B0</a>)
  1551. <a name="l01466"></a>01466 , <a class="code" href="classcrossSectionGeom__boxSpar.html#ab3c35eef72ad917dddda3f3ace581727">A1Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a8bc1b7198faf2c92aa34ccb7c9b9637b">A1Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aa0ed7cb98e82d476f93d64a21b387788">teWebNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#afee4791db4bfb95ee81c18b2b1c06bc1">A1</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a933a931d73246fc761783936862eea1b">A2</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ad4d6c45d2d39b55516dd0f9a8668e6cf">B2</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a43c458f298608f9bec46ac4d10004022">B1</a>)
  1552. <a name="l01467"></a>01467 , <a class="code" href="classcrossSectionGeom__boxSpar.html#aef0f95659ef1ccfa6500871c94a41306">A2Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a9a7dcd81f82f7bad7692f0050ff353da">A2Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a667f13e078dac2e3b6954d2a89caa567">topCapNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a933a931d73246fc761783936862eea1b">A2</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#abde4a2b04d0fd4f46886cad988a9b92a">A3</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a4aee53e8bfacbaafb9fe8addb4272529">B3</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ad4d6c45d2d39b55516dd0f9a8668e6cf">B2</a>)
  1553. <a name="l01468"></a>01468 , <a class="code" href="classcrossSectionGeom__boxSpar.html#aa7bb190b19e6391608e9b178d60cb634">A3Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a8561407dd8b35c653c91f80702533dbf">A3Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aaab0a92e0d4cb17fd2863883d3a52615">leWebNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#abde4a2b04d0fd4f46886cad988a9b92a">A3</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ae98b06e7dcac554700ae17ca4913f400">A4</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ad785cfb8b42e15c3978fbe5bf22227e8">B4</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a4aee53e8bfacbaafb9fe8addb4272529">B3</a>)
  1554. <a name="l01469"></a>01469 , <a class="code" href="classcrossSectionGeom__boxSpar.html#ad406194295bd5c6b86194c0617d53c0c">A4Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#abaefed0dec69f5ca25886d734262ad54">A4Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a758dba0a6e09d6b711b095a565376a2e">leNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ae98b06e7dcac554700ae17ca4913f400">A4</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ad2b0e8e9d5b5bac7bbfe8ec04e301230">A5</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a607d7b4d9d6cc316b733221694be2fa6">B5</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ad785cfb8b42e15c3978fbe5bf22227e8">B4</a>)
  1555. <a name="l01470"></a>01470 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a18cc66c382585e485bdd891bd979a292">A5Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a12c693a2206f3b7ca40dc80b6b88e5c6">A5Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aaab0a92e0d4cb17fd2863883d3a52615">leWebNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ad2b0e8e9d5b5bac7bbfe8ec04e301230">A5</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#af0862244e16f6a505e925fe5944c2825">A6</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a24a23cd15607e1a8961e6e37c0074c02">B6</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a607d7b4d9d6cc316b733221694be2fa6">B5</a>)
  1556. <a name="l01471"></a>01471 , <a class="code" href="classcrossSectionGeom__boxSpar.html#af157f54a312b3414156c6d4fb950664e">A6Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a7317407936c8fe049cf9c9972fe3a724">A6Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#af249c0a98ebd4009a4532d90c258cf53">botCapNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#af0862244e16f6a505e925fe5944c2825">A6</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a4d379da61d1b4230eab4a3668cea77d2">A7</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a7390bd69fa3a1c7b8f0573d7f7c2eb57">B7</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a24a23cd15607e1a8961e6e37c0074c02">B6</a>)
  1557. <a name="l01472"></a>01472 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a84c3b4c11d93986bd88b35f804685a8a">A7Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a037b19eda0f6ce4696b5bc8c40f331ab">A7Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aa0ed7cb98e82d476f93d64a21b387788">teWebNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a4d379da61d1b4230eab4a3668cea77d2">A7</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a75a27c6d376a2fa566e4dff382549652">A8</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a90c5665c71d343002e0f8394a785e57d">B8</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a7390bd69fa3a1c7b8f0573d7f7c2eb57">B7</a>)
  1558. <a name="l01473"></a>01473 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a1e168cd07f831900bf024dbf3ddd7974">B1Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a6620bd3f120622e6f40dbe6338a000b5">B1Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aa0ed7cb98e82d476f93d64a21b387788">teWebNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a43c458f298608f9bec46ac4d10004022">B1</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ad4d6c45d2d39b55516dd0f9a8668e6cf">B2</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a55a2751a3a1b3b865dcb75a6128fdf02">C2</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a56121913b2656778996108c9ae63861e">C1</a>)
  1559. <a name="l01474"></a>01474 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a5dabb18555b56b2129e02480218ce326">B2Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a9236c6c0ca9d8c466a29b1fbe6c2cab9">B2Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a667f13e078dac2e3b6954d2a89caa567">topCapNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ad4d6c45d2d39b55516dd0f9a8668e6cf">B2</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a4aee53e8bfacbaafb9fe8addb4272529">B3</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a29a5cca50f71feb2732d138a11beb791">C3</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a55a2751a3a1b3b865dcb75a6128fdf02">C2</a>)
  1560. <a name="l01475"></a>01475 , <a class="code" href="classcrossSectionGeom__boxSpar.html#ab351e4505c837eafb49df647078992a2">B3Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#aa3b11fe99302b14e216af9beb2ed219b">B3Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aaab0a92e0d4cb17fd2863883d3a52615">leWebNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a4aee53e8bfacbaafb9fe8addb4272529">B3</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ad785cfb8b42e15c3978fbe5bf22227e8">B4</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a4925e50ae43097efc3f610d67cc99582">C4</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a29a5cca50f71feb2732d138a11beb791">C3</a>)
  1561. <a name="l01476"></a>01476 , <a class="code" href="classcrossSectionGeom__boxSpar.html#af91e3936b5d026263070d888f123800b">B5Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#ae26b9762273456e1d5db40d4f745c186">B5Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aaab0a92e0d4cb17fd2863883d3a52615">leWebNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a607d7b4d9d6cc316b733221694be2fa6">B5</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a24a23cd15607e1a8961e6e37c0074c02">B6</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a25afa740fb8891f5ee5ee18c5d78bb85">C6</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a799a3ccc947297717536e8da86d37352">C5</a>)
  1562. <a name="l01477"></a>01477 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a8b5701d7248669755fb817d7d1eaeb10">B6Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a62aa825e6ad73927e08360b6fb061fb0">B6Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#af249c0a98ebd4009a4532d90c258cf53">botCapNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a24a23cd15607e1a8961e6e37c0074c02">B6</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a7390bd69fa3a1c7b8f0573d7f7c2eb57">B7</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a9efc731f1f7f87d77c3e68dcd52d3500">C7</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a25afa740fb8891f5ee5ee18c5d78bb85">C6</a>)
  1563. <a name="l01478"></a>01478 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a4606c3846a8de71625c6ffa9da348c76">B7Box</a>(<a class="code" href="classcrossSectionGeom__boxSpar.html#ad05f7893207820460142b949972dc4c9">B7Matl</a>, &amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aa0ed7cb98e82d476f93d64a21b387788">teWebNS</a> ,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a7390bd69fa3a1c7b8f0573d7f7c2eb57">B7</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a90c5665c71d343002e0f8394a785e57d">B8</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a4beef0cf83eaf46361d59ecd22180179">C8</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a9efc731f1f7f87d77c3e68dcd52d3500">C7</a>)
  1564. <a name="l01479"></a>01479 , <a class="code" href="classcrossSectionGeom__boxSpar.html#ad11e93e805eb3e43fe3bb457c0d0077c">W0Box</a>(web0Matl_in, NULL,NULL,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aa0ed7cb98e82d476f93d64a21b387788">teWebNS</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a786ec9cbbdc63299d078ddf3259fbe80">teWebCrossNS</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a56121913b2656778996108c9ae63861e">C1</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a55a2751a3a1b3b865dcb75a6128fdf02">C2</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a9efc731f1f7f87d77c3e68dcd52d3500">C7</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a4beef0cf83eaf46361d59ecd22180179">C8</a>)
  1565. <a name="l01480"></a>01480 , <a class="code" href="classcrossSectionGeom__boxSpar.html#aa22a699857454a59cb666aa766248af9">W1Box</a>(web1Matl_in, NULL,NULL,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#aaab0a92e0d4cb17fd2863883d3a52615">leWebNS</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a2c6a78faccb081701e5be67f1b8320aa">leWebCrossNS</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a29a5cca50f71feb2732d138a11beb791">C3</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a4925e50ae43097efc3f610d67cc99582">C4</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a799a3ccc947297717536e8da86d37352">C5</a>,&amp;<a class="code" href="classcrossSectionGeom__boxSpar.html#a25afa740fb8891f5ee5ee18c5d78bb85">C6</a>)
  1566. <a name="l01481"></a>01481 , <a class="code" href="classcrossSectionGeom__boxSpar.html#af143f5625bc4c40c73c2da2560176789">maxH</a>(0.0)
  1567. <a name="l01482"></a>01482 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a7938b11ac65ff99eec4390b53f44a719">skinH</a>(skinCurveCnt_in,0.0)
  1568. <a name="l01483"></a>01483 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a980cf408be9a65c341f84d20dd33ebe5">capTopH</a>(topCapCurveCnt_in-1,0.0)
  1569. <a name="l01484"></a>01484 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a2fb6e8ee79af8c205ffe08a9c7d30149">capBotH</a>(botCapCurveCnt_in-1,0.0)
  1570. <a name="l01485"></a>01485 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a1b202fdc59360582d820694d133c17da">firstOffset</a>(true)
  1571. <a name="l01486"></a>01486 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a>(true)
  1572. <a name="l01487"></a>01487 , <a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>(true)
  1573. <a name="l01488"></a>01488 , <a class="code" href="classcrossSectionGeom__boxSpar.html#a8d01455718c3eae5cbfff1757da192a0">xMin</a>(0.0) , <a class="code" href="classcrossSectionGeom__boxSpar.html#aee7feab134ec58da09ad2748dbf7e3fa">yMin</a>(0.0) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a18f41ebaa3f758afb23f5e0633feab44">xMax</a>(0.0) , <a class="code" href="classcrossSectionGeom__boxSpar.html#a5250d59b9a494f2d9942d648ba7a8f48">yMax</a>(0.0)
  1574. <a name="l01489"></a>01489 {
  1575. <a name="l01490"></a>01490 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">curveSource</a>!=NULL)
  1576. <a name="l01491"></a>01491 {
  1577. <a name="l01492"></a>01492 <a class="code" href="classcrossSectionGeom__boxSpar.html#af143f5625bc4c40c73c2da2560176789">maxH</a>=<a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">curveSource</a>-&gt;maximumOffset();
  1578. <a name="l01493"></a>01493 <a class="code" href="classcrossSectionGeom__boxSpar.html#a7938b11ac65ff99eec4390b53f44a719">skinH</a>[0]=0.0;
  1579. <a name="l01494"></a>01494 <a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[0]=<a class="code" href="classcrossSectionGeom__boxSpar.html#a09ed8395056687367c5f38e38d9d2575">curveSource</a>-&gt;getCurve(0.0);
  1580. <a name="l01495"></a>01495 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[0]==NULL)
  1581. <a name="l01496"></a>01496 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::crossSectionGeom_boxSpar(): Failed to create the mold line&quot;</span>);
  1582. <a name="l01497"></a>01497 <a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[0]-&gt;boundingBox(<a class="code" href="classcrossSectionGeom__boxSpar.html#a8d01455718c3eae5cbfff1757da192a0">xMin</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#aee7feab134ec58da09ad2748dbf7e3fa">yMin</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a18f41ebaa3f758afb23f5e0633feab44">xMax</a>,<a class="code" href="classcrossSectionGeom__boxSpar.html#a5250d59b9a494f2d9942d648ba7a8f48">yMax</a>);
  1583. <a name="l01498"></a>01498 }
  1584. <a name="l01499"></a>01499 }
  1585. <a name="l01500"></a>01500
  1586. <a name="l01501"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a55480a7b7663788096a363626839514e">01501</a> <span class="keyword">virtual</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a55480a7b7663788096a363626839514e">~crossSectionGeom_boxSpar</a>()
  1587. <a name="l01502"></a>01502 {
  1588. <a name="l01503"></a>01503 <span class="comment">// delete all the curves</span>
  1589. <a name="l01504"></a>01504 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1590. <a name="l01505"></a>01505 {
  1591. <a name="l01506"></a>01506 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]!=NULL)
  1592. <a name="l01507"></a>01507 <span class="keyword">delete</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#aab5dfa2b9723894a533652dc44b1c913">skinEW</a>.curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  1593. <a name="l01508"></a>01508 }
  1594. <a name="l01509"></a>01509 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=1;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1595. <a name="l01510"></a>01510 {
  1596. <a name="l01511"></a>01511 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]!=NULL)
  1597. <a name="l01512"></a>01512 <span class="keyword">delete</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a2e6948ef977221225d87a619f795dae4">capTopEW</a>.curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  1598. <a name="l01513"></a>01513 }
  1599. <a name="l01514"></a>01514 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=1;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1600. <a name="l01515"></a>01515 {
  1601. <a name="l01516"></a>01516 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]!=NULL)
  1602. <a name="l01517"></a>01517 <span class="keyword">delete</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#ae076cc521b3ec91cd9fe3d03950e2aca">capBotEW</a>.curves[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  1603. <a name="l01518"></a>01518 }
  1604. <a name="l01519"></a>01519 }
  1605. <a name="l01520"></a>01520
  1606. <a name="l01521"></a><a class="code" href="classcrossSectionGeom__boxSpar.html#a5c473a93cf2fb21bf8f8ed89c3cc227c">01521</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar.html#a5c473a93cf2fb21bf8f8ed89c3cc227c">getMesh</a>(<a class="code" href="classmesh.html">mesh&lt;dataType&gt;</a>&amp; msh)
  1607. <a name="l01522"></a>01522 {
  1608. <a name="l01523"></a>01523 <span class="keywordflow">if</span>(<a class="code" href="classcrossSectionGeom__boxSpar.html#a1b202fdc59360582d820694d133c17da">firstOffset</a> || <a class="code" href="classcrossSectionGeom__boxSpar.html#a38171676413098151f76f204289ce445">firstTopOffset</a> || <a class="code" href="classcrossSectionGeom__boxSpar.html#af2bfbda632c514fdf50cd9301cf6a93a">firstBottomOffset</a>)
  1609. <a name="l01524"></a>01524 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar::getMesh(): The curves have not been generated&quot;</span>);
  1610. <a name="l01525"></a>01525
  1611. <a name="l01526"></a>01526 msh=<a class="code" href="classcrossSectionGeom__boxSpar.html#af530a17a3a41083443ddb25a07ee51d9">A0Box</a>.getMesh();
  1612. <a name="l01527"></a>01527 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#ab3c35eef72ad917dddda3f3ace581727">A1Box</a>.getMesh();
  1613. <a name="l01528"></a>01528 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#aef0f95659ef1ccfa6500871c94a41306">A2Box</a>.getMesh();
  1614. <a name="l01529"></a>01529 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#aa7bb190b19e6391608e9b178d60cb634">A3Box</a>.getMesh();
  1615. <a name="l01530"></a>01530 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#ad406194295bd5c6b86194c0617d53c0c">A4Box</a>.getMesh();
  1616. <a name="l01531"></a>01531 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#a18cc66c382585e485bdd891bd979a292">A5Box</a>.getMesh();
  1617. <a name="l01532"></a>01532 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#af157f54a312b3414156c6d4fb950664e">A6Box</a>.getMesh();
  1618. <a name="l01533"></a>01533 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#a84c3b4c11d93986bd88b35f804685a8a">A7Box</a>.getMesh();
  1619. <a name="l01534"></a>01534 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#a1e168cd07f831900bf024dbf3ddd7974">B1Box</a>.getMesh();
  1620. <a name="l01535"></a>01535 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#a5dabb18555b56b2129e02480218ce326">B2Box</a>.getMesh();
  1621. <a name="l01536"></a>01536 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#ab351e4505c837eafb49df647078992a2">B3Box</a>.getMesh();
  1622. <a name="l01537"></a>01537 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#af91e3936b5d026263070d888f123800b">B5Box</a>.getMesh();
  1623. <a name="l01538"></a>01538 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#a8b5701d7248669755fb817d7d1eaeb10">B6Box</a>.getMesh();
  1624. <a name="l01539"></a>01539 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#a4606c3846a8de71625c6ffa9da348c76">B7Box</a>.getMesh();
  1625. <a name="l01540"></a>01540 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#ad11e93e805eb3e43fe3bb457c0d0077c">W0Box</a>.getMesh();
  1626. <a name="l01541"></a>01541 msh+=<a class="code" href="classcrossSectionGeom__boxSpar.html#aa22a699857454a59cb666aa766248af9">W1Box</a>.getMesh();
  1627. <a name="l01542"></a>01542
  1628. <a name="l01543"></a>01543 }
  1629. <a name="l01544"></a>01544 };
  1630. <a name="l01545"></a>01545
  1631. <a name="l01546"></a>01546 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  1632. <a name="l01547"></a><a class="code" href="classcrossSectionGeom__boxSpar__cxDesign.html">01547</a> <span class="keyword">class </span><a class="code" href="classcrossSectionGeom__boxSpar__cxDesign.html">crossSectionGeom_boxSpar_cxDesign</a>
  1633. <a name="l01548"></a>01548 : <span class="keyword">public</span> <a class="code" href="classcrossSectionGeom__boxSpar.html">crossSectionGeom_boxSpar</a>&lt;dataType,cxDesign&lt;dataType&gt; &gt;
  1634. <a name="l01549"></a>01549 {
  1635. <a name="l01550"></a>01550 <span class="keyword">public</span>:
  1636. <a name="l01551"></a>01551
  1637. <a name="l01552"></a><a class="code" href="classcrossSectionGeom__boxSpar__cxDesign.html#a86d8a8738f3cbc4031fc763ca6226789">01552</a> <a class="code" href="classcrossSectionGeom__boxSpar__cxDesign.html#a86d8a8738f3cbc4031fc763ca6226789">crossSectionGeom_boxSpar_cxDesign</a>(
  1638. <a name="l01553"></a>01553 <a class="code" href="classcurveFamily.html">curveFamily&lt;dataType&gt;</a>* curveSource_in=NULL
  1639. <a name="l01554"></a>01554 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> teLineCnt_in=2
  1640. <a name="l01555"></a>01555 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> topCapLineCnt_in=2
  1641. <a name="l01556"></a>01556 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> leLineCnt_in=2
  1642. <a name="l01557"></a>01557 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> botCapLineCnt_in=2
  1643. <a name="l01558"></a>01558 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> teWebCrossLineCnt_in=2
  1644. <a name="l01559"></a>01559 ,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> leWebCrossLineCnt_in=2
  1645. <a name="l01560"></a>01560 ,<span class="keywordtype">bool</span> deleteCurveSource_in=<span class="keyword">false</span>
  1646. <a name="l01561"></a>01561 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A0_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(-0.125)
  1647. <a name="l01562"></a>01562 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B0_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(-0.125)
  1648. <a name="l01563"></a>01563 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A1_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.125)
  1649. <a name="l01564"></a>01564 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B1_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.125)
  1650. <a name="l01565"></a>01565 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C1_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.125)
  1651. <a name="l01566"></a>01566 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A2_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.225)
  1652. <a name="l01567"></a>01567 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B2_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.225)
  1653. <a name="l01568"></a>01568 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C2_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.225)
  1654. <a name="l01569"></a>01569 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A3_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.275)
  1655. <a name="l01570"></a>01570 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B3_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.275)
  1656. <a name="l01571"></a>01571 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C3_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.275)
  1657. <a name="l01572"></a>01572 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A4_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.375)
  1658. <a name="l01573"></a>01573 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B4_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.375)
  1659. <a name="l01574"></a>01574 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C4_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.375)
  1660. <a name="l01575"></a>01575 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A5_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.625)
  1661. <a name="l01576"></a>01576 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B5_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.625)
  1662. <a name="l01577"></a>01577 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C5_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.625)
  1663. <a name="l01578"></a>01578 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A6_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.725)
  1664. <a name="l01579"></a>01579 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B6_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.725)
  1665. <a name="l01580"></a>01580 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C6_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.725)
  1666. <a name="l01581"></a>01581 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> A7_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.775)
  1667. <a name="l01582"></a>01582 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> B7_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.775)
  1668. <a name="l01583"></a>01583 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C7_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.775)
  1669. <a name="l01584"></a>01584 ,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> C8_s=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.875)
  1670. <a name="l01585"></a>01585 )
  1671. <a name="l01586"></a>01586 : <a class="code" href="classcrossSectionGeom__boxSpar.html">crossSectionGeom_boxSpar</a>&lt;<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>,<a class="code" href="classcxDesign.html">cxDesign</a>&lt;<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt; &gt;(curveSource_in,2,2,2,teLineCnt_in,2,topCapLineCnt_in,2,leLineCnt_in,botCapLineCnt_in,teWebCrossLineCnt_in,leWebCrossLineCnt_in,deleteCurveSource_in,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,A0_s,B0_s,A1_s,B1_s,C1_s,A2_s,B2_s,C2_s,A3_s,B3_s,C3_s,A4_s,B4_s,C4_s,A5_s,B5_s,C5_s,A6_s,B6_s,C6_s,A7_s,B7_s,C7_s,C8_s)
  1672. <a name="l01587"></a>01587 {}
  1673. <a name="l01588"></a>01588
  1674. <a name="l01589"></a><a class="code" href="classcrossSectionGeom__boxSpar__cxDesign.html#a1369a88f0b78eb6d7e74e787ab7e1d78">01589</a> <span class="keywordtype">void</span> <a class="code" href="classcrossSectionGeom__boxSpar__cxDesign.html#a1369a88f0b78eb6d7e74e787ab7e1d78">setDesign</a>(<span class="keyword">const</span> <a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;</a>&amp; desParam)
  1675. <a name="l01590"></a>01590 {
  1676. <a name="l01591"></a>01591 <span class="keywordflow">if</span>(desParam.<a class="code" href="classcxDesign.html#ad3deaab2c7f4e4966edd031d71c21423">getSectionCount</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>)!=1 || desParam.<a class="code" href="classcxDesign.html#ad3deaab2c7f4e4966edd031d71c21423">getSectionCount</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SPAR_CAP</a>)!=2 || desParam.<a class="code" href="classcxDesign.html#ad3deaab2c7f4e4966edd031d71c21423">getSectionCount</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SHEAR_WEB</a>)!=2)
  1677. <a name="l01592"></a>01592 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;crossSectionGeom_boxSpar_cxDesign&lt;dataType&gt;::setDesign(): The design object is not the correct size&quot;</span>);
  1678. <a name="l01593"></a>01593
  1679. <a name="l01594"></a>01594 <span class="comment">// apply the skin design</span>
  1680. <a name="l01595"></a>01595 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#aebacd02bffad1703eb9d9e6c0822e4a1">offsetSkin</a>(desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>,0).hVal,<span class="keyword">false</span>);
  1681. <a name="l01596"></a>01596 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#ab7b6fa9f449038d97c0f47302b02cf0c">A0Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>,0).matl;
  1682. <a name="l01597"></a>01597 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a8bc1b7198faf2c92aa34ccb7c9b9637b">A1Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>,0).matl;
  1683. <a name="l01598"></a>01598 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a9a7dcd81f82f7bad7692f0050ff353da">A2Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>,0).matl;
  1684. <a name="l01599"></a>01599 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a8561407dd8b35c653c91f80702533dbf">A3Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>,0).matl;
  1685. <a name="l01600"></a>01600 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#abaefed0dec69f5ca25886d734262ad54">A4Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>,0).matl;
  1686. <a name="l01601"></a>01601 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a12c693a2206f3b7ca40dc80b6b88e5c6">A5Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>,0).matl;
  1687. <a name="l01602"></a>01602 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a7317407936c8fe049cf9c9972fe3a724">A6Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>,0).matl;
  1688. <a name="l01603"></a>01603 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a037b19eda0f6ce4696b5bc8c40f331ab">A7Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SKIN</a>,0).matl;
  1689. <a name="l01604"></a>01604
  1690. <a name="l01605"></a>01605 <span class="comment">// apply the top spar cap design</span>
  1691. <a name="l01606"></a>01606 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#aaf95fdb64f23781e8de010992d1a97f1">offsetTopCap</a>(desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SPAR_CAP</a>,0).hVal);
  1692. <a name="l01607"></a>01607 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a6620bd3f120622e6f40dbe6338a000b5">B1Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SPAR_CAP</a>,0).matl;
  1693. <a name="l01608"></a>01608 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a9236c6c0ca9d8c466a29b1fbe6c2cab9">B2Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SPAR_CAP</a>,0).matl;
  1694. <a name="l01609"></a>01609 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#aa3b11fe99302b14e216af9beb2ed219b">B3Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SPAR_CAP</a>,0).matl;
  1695. <a name="l01610"></a>01610
  1696. <a name="l01611"></a>01611 <span class="comment">// apply the bottom spar cap design</span>
  1697. <a name="l01612"></a>01612 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a529553c62b2b36290af337cb815a2407">offsetBotCap</a>(desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SPAR_CAP</a>,1).hVal);
  1698. <a name="l01613"></a>01613 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#ae26b9762273456e1d5db40d4f745c186">B5Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SPAR_CAP</a>,1).matl;
  1699. <a name="l01614"></a>01614 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a62aa825e6ad73927e08360b6fb061fb0">B6Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SPAR_CAP</a>,1).matl;
  1700. <a name="l01615"></a>01615 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#ad05f7893207820460142b949972dc4c9">B7Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SPAR_CAP</a>,1).matl;
  1701. <a name="l01616"></a>01616
  1702. <a name="l01617"></a>01617 <span class="comment">// apply the trailing edge shear web design</span>
  1703. <a name="l01618"></a>01618 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#aa0ed7cb98e82d476f93d64a21b387788">teWebNS</a>.<a class="code" href="classcommonNS.html#ac9d4698595b8ac865f4d0da1f9dacc2a">nInt</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SHEAR_WEB</a>,0).hVal.size()-2;
  1704. <a name="l01619"></a>01619 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#ab0233ff7ec9af60b9fec2cf170b7e6f0">setShearWeb0</a>(desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SHEAR_WEB</a>,0).hVal.back());
  1705. <a name="l01620"></a>01620 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#aa975b745c69253a9f8e11e6191ab365f">W0Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SHEAR_WEB</a>,0).matl;
  1706. <a name="l01621"></a>01621
  1707. <a name="l01622"></a>01622 <span class="comment">// apply the leading edge shear web design</span>
  1708. <a name="l01623"></a>01623 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#aaab0a92e0d4cb17fd2863883d3a52615">leWebNS</a>.<a class="code" href="classcommonNS.html#ac9d4698595b8ac865f4d0da1f9dacc2a">nInt</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SHEAR_WEB</a>,1).hVal.size()-2;
  1709. <a name="l01624"></a>01624 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a3646807d9ffae0bf5545044b0c6f552e">setShearWeb1</a>(desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SHEAR_WEB</a>,1).hVal.back());
  1710. <a name="l01625"></a>01625 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a599076f0db4a86d25e1546f4429a95f3">W1Matl</a>=desParam.<a class="code" href="classcxDesign.html#acb702848fc254af8b06c30c00f62f1f5">getSectionDesign</a>(<a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;::SHEAR_WEB</a>,1).matl;
  1711. <a name="l01626"></a>01626
  1712. <a name="l01627"></a>01627 this-&gt;<a class="code" href="classcrossSectionGeom__boxSpar.html#a9b27bbd4a6b72b6356bea51400c3c1ef">loadMatlIntoBoxes</a>();
  1713. <a name="l01628"></a>01628 }
  1714. <a name="l01629"></a>01629 };
  1715. <a name="l01630"></a>01630
  1716. <a name="l01631"></a>01631 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  1717. <a name="l01632"></a><a class="code" href="classtimoshenkoVabsBlade.html">01632</a> <span class="keyword">class </span><a class="code" href="classtimoshenkoVabsBlade.html">timoshenkoVabsBlade</a>
  1718. <a name="l01633"></a>01633 : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="classcxBlade__base.html">cxBlade_base</a>
  1719. <a name="l01634"></a>01634 , <span class="keyword">public</span> <a class="code" href="classcxBlade__designInput.html">cxBlade_designInput</a>&lt;dataType&gt;
  1720. <a name="l01635"></a>01635 , <span class="keyword">public</span> <a class="code" href="classcxBlade__bladeStiffness.html">cxBlade_bladeStiffness</a>&lt;dataType&gt;
  1721. <a name="l01636"></a>01636 {
  1722. <a name="l01637"></a>01637 <span class="keyword">private</span>:
  1723. <a name="l01638"></a>01638
  1724. <a name="l01639"></a>01639 std::vector&lt;dataType&gt; prflLocations;
  1725. <a name="l01640"></a>01640 std::vector&lt; std::vector&lt;dataType&gt; &gt; definedProfileBlend;
  1726. <a name="l01641"></a>01641 <a class="code" href="classprofileBlend.html">profileBlend&lt;dataType&gt;</a> profiles;
  1727. <a name="l01642"></a>01642
  1728. <a name="l01643"></a>01643 std::vector&lt;dataType&gt; cxLocations;
  1729. <a name="l01644"></a>01644 std::vector&lt;bool&gt; isSolved;
  1730. <a name="l01645"></a>01645 std::vector&lt;timoshenkoVabs&lt;dataType&gt; &gt; calculators;
  1731. <a name="l01646"></a>01646 std::vector&lt;mesh&lt;dataType&gt; &gt; cxMeshVect;
  1732. <a name="l01647"></a>01647 std::vector&lt;cxAreaIntProp_Data&lt;dataType&gt; &gt; meshStatistics;
  1733. <a name="l01648"></a>01648 std::vector&lt;cxMatrixData_permutationDefault_iCurvatureData_meshMaterial&lt;dataType&gt; &gt; matrixDataVect;
  1734. <a name="l01649"></a>01649 std::vector&lt;cxModel_mesh&lt;dataType&gt; &gt; cxModelVect;
  1735. <a name="l01650"></a>01650 std::vector&lt;cxDesign&lt;dataType&gt;*&gt; cxDesigns;
  1736. <a name="l01651"></a>01651 std::vector&lt;dataSource_Data&lt;matrixRdWtStaticVectCol_Data&lt;dataType,6&gt; &gt; &gt; strainDataSource;
  1737. <a name="l01652"></a>01652 std::vector&lt;dataSource_Data&lt;matrixRdWtStaticVectCol_Data&lt;dataType,6&gt; &gt; &gt; appliedInertialForceDataSource;
  1738. <a name="l01653"></a>01653 std::vector&lt;dataSource_Data&lt;matrixRdWtStaticVectCol_Data&lt;dataType,6&gt; &gt; &gt; appliedInertialForceGradDataSource;
  1739. <a name="l01654"></a>01654 std::vector&lt;dataSource_Data&lt;matrixRdWtStaticVectCol_Data&lt;dataType,6&gt; &gt; &gt; appliedInertialForceConcavityDataSource;
  1740. <a name="l01655"></a>01655 std::vector&lt;dataSource_Data&lt;matrixRdWtStaticVectCol_Data&lt;dataType,3&gt; &gt; &gt; curvatureDataSource;
  1741. <a name="l01656"></a>01656 std::vector&lt;dataSource_Data&lt;matrixRdWtStaticVectCol_Data&lt;dataType,3&gt; &gt; &gt; curvatureGradDataSource;
  1742. <a name="l01657"></a>01657 std::vector&lt;dataSource_Data&lt;matrixRdWtStaticVectCol_Data&lt;dataType,3&gt; &gt; &gt; curvatureConcavityDataSource;
  1743. <a name="l01658"></a>01658
  1744. <a name="l01659"></a>01659 <a class="code" href="classfunction.html">function&lt;dataType,dataType&gt;</a>* xShift;
  1745. <a name="l01660"></a>01660 <a class="code" href="classfunction.html">function&lt;dataType,dataType&gt;</a>* yShift;
  1746. <a name="l01661"></a>01661 <a class="code" href="classfunction.html">function&lt;dataType,dataType&gt;</a>* chord;
  1747. <a name="l01662"></a>01662 <a class="code" href="classfunction.html">function&lt;matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* iCurvature;
  1748. <a name="l01663"></a>01663 <a class="code" href="classfunction.html">function&lt;matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* linStrainFunc;
  1749. <a name="l01664"></a>01664 <a class="code" href="classfunction.html">function&lt;matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* angStrainFunc;
  1750. <a name="l01665"></a>01665 <a class="code" href="classfunction.html">function&lt;matrixRdWtStaticVectCol_Data&lt;dataType,6&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* appliedInertialForceFunc;
  1751. <a name="l01666"></a>01666 <a class="code" href="classfunction.html">function&lt;matrixRdWtStaticVectCol_Data&lt;dataType,6&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* appliedInertialForceGradFunc;
  1752. <a name="l01667"></a>01667 <a class="code" href="classfunction.html">function&lt;matrixRdWtStaticVectCol_Data&lt;dataType,6&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* appliedInertialForceConcavityFunc;
  1753. <a name="l01668"></a>01668 <a class="code" href="classfunction.html">function&lt;matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* curvatureFunc;
  1754. <a name="l01669"></a>01669 <a class="code" href="classfunction.html">function&lt;matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* curvatureGradFunc;
  1755. <a name="l01670"></a>01670 <a class="code" href="classfunction.html">function&lt;matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* curvatureConcavityFunc;
  1756. <a name="l01671"></a>01671
  1757. <a name="l01672"></a>01672 <span class="keywordtype">void</span> getNeighbours(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc,std::vector&lt;dataType&gt;&amp; locs,<span class="keywordtype">bool</span>&amp; atSet, <span class="keywordtype">bool</span>&amp; lowSet, <span class="keywordtype">bool</span>&amp; highSet, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>&amp; idxAt, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>&amp; idxLow, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>&amp; idxHigh)
  1758. <a name="l01673"></a>01673 {
  1759. <a name="l01674"></a>01674 atSet=<span class="keyword">false</span>;
  1760. <a name="l01675"></a>01675 lowSet=<span class="keyword">false</span>;
  1761. <a name="l01676"></a>01676 highSet=<span class="keyword">false</span>;
  1762. <a name="l01677"></a>01677 idxAt=0;
  1763. <a name="l01678"></a>01678 idxLow=0;
  1764. <a name="l01679"></a>01679 idxHigh=0;
  1765. <a name="l01680"></a>01680
  1766. <a name="l01681"></a>01681 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;locs.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1767. <a name="l01682"></a>01682 {
  1768. <a name="l01683"></a>01683 <span class="keywordflow">if</span>(loc==locs[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>])
  1769. <a name="l01684"></a>01684 {
  1770. <a name="l01685"></a>01685 idxAt=<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>;
  1771. <a name="l01686"></a>01686 atSet=<span class="keyword">true</span>;
  1772. <a name="l01687"></a>01687 lowSet=<span class="keyword">false</span>;
  1773. <a name="l01688"></a>01688 highSet=<span class="keyword">false</span>;
  1774. <a name="l01689"></a>01689 <span class="keywordflow">break</span>;
  1775. <a name="l01690"></a>01690 }
  1776. <a name="l01691"></a>01691 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(loc&gt;locs[i])
  1777. <a name="l01692"></a>01692 {
  1778. <a name="l01693"></a>01693 <span class="keywordflow">if</span>(!lowSet || locs[i]&gt;locs[idxLow])
  1779. <a name="l01694"></a>01694 {
  1780. <a name="l01695"></a>01695 idxLow=<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>;
  1781. <a name="l01696"></a>01696 lowSet=<span class="keyword">true</span>;
  1782. <a name="l01697"></a>01697 }
  1783. <a name="l01698"></a>01698 }
  1784. <a name="l01699"></a>01699 <span class="keywordflow">else</span>
  1785. <a name="l01700"></a>01700 {
  1786. <a name="l01701"></a>01701 <span class="keywordflow">if</span>(!highSet || locs[i]&lt;locs[idxHigh])
  1787. <a name="l01702"></a>01702 {
  1788. <a name="l01703"></a>01703 idxHigh=<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>;
  1789. <a name="l01704"></a>01704 highSet=<span class="keyword">true</span>;
  1790. <a name="l01705"></a>01705 }
  1791. <a name="l01706"></a>01706 }
  1792. <a name="l01707"></a>01707 }
  1793. <a name="l01708"></a>01708 }
  1794. <a name="l01709"></a>01709
  1795. <a name="l01710"></a>01710 <span class="keywordtype">void</span> solveCrossSection(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at)
  1796. <a name="l01711"></a>01711 {
  1797. <a name="l01712"></a>01712 <span class="keywordflow">if</span>(xShift==NULL)
  1798. <a name="l01713"></a>01713 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::solveCrossSection() The function xShift has not been set&quot;</span>);
  1799. <a name="l01714"></a>01714 <span class="keywordflow">if</span>(yShift==NULL)
  1800. <a name="l01715"></a>01715 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::solveCrossSection() The function yShift has not been set&quot;</span>);
  1801. <a name="l01716"></a>01716 <span class="keywordflow">if</span>(chord==NULL)
  1802. <a name="l01717"></a>01717 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::solveCrossSection() The function chord has not been set&quot;</span>);
  1803. <a name="l01718"></a>01718 <span class="keywordflow">if</span>(iCurvature==NULL)
  1804. <a name="l01719"></a>01719 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::solveCrossSection() The function iCurvature has not been set&quot;</span>);
  1805. <a name="l01720"></a>01720
  1806. <a name="l01721"></a>01721 <span class="keywordtype">bool</span> atSet;
  1807. <a name="l01722"></a>01722 <span class="keywordtype">bool</span> lowSet;
  1808. <a name="l01723"></a>01723 <span class="keywordtype">bool</span> highSet;
  1809. <a name="l01724"></a>01724 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxAt;
  1810. <a name="l01725"></a>01725 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxLow;
  1811. <a name="l01726"></a>01726 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxHigh;
  1812. <a name="l01727"></a>01727
  1813. <a name="l01728"></a>01728 <span class="comment">// find defn location</span>
  1814. <a name="l01729"></a>01729 getNeighbours(cxLocations[at],prflLocations,atSet,lowSet,highSet,idxAt,idxLow,idxHigh);
  1815. <a name="l01730"></a>01730
  1816. <a name="l01731"></a>01731 <span class="comment">// determine the blend profile blend at that location</span>
  1817. <a name="l01732"></a>01732 std::vector&lt;dataType&gt; blndVect;
  1818. <a name="l01733"></a>01733
  1819. <a name="l01734"></a>01734 <span class="keywordflow">if</span>(atSet)
  1820. <a name="l01735"></a>01735 {
  1821. <a name="l01736"></a>01736 blndVect=definedProfileBlend[idxAt];
  1822. <a name="l01737"></a>01737 }
  1823. <a name="l01738"></a>01738 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(lowSet)
  1824. <a name="l01739"></a>01739 {
  1825. <a name="l01740"></a>01740 <span class="keywordflow">if</span>(highSet)
  1826. <a name="l01741"></a>01741 {
  1827. <a name="l01742"></a>01742 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> alpha=(cxLocations[at]-prflLocations[idxLow])/(prflLocations[idxHigh]-prflLocations[idxLow]);
  1828. <a name="l01743"></a>01743 std::vector&lt;dataType&gt; blndLow=definedProfileBlend[idxLow];
  1829. <a name="l01744"></a>01744 std::vector&lt;dataType&gt; blndHigh=definedProfileBlend[idxHigh];
  1830. <a name="l01745"></a>01745 blndVect.resize(blndLow.size());
  1831. <a name="l01746"></a>01746 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;blndLow.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1832. <a name="l01747"></a>01747 blndVect[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]=blndLow[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]*(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0)-alpha)+blndHigh[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]*alpha;
  1833. <a name="l01748"></a>01748 }
  1834. <a name="l01749"></a>01749 <span class="keywordflow">else</span>
  1835. <a name="l01750"></a>01750 {
  1836. <a name="l01751"></a>01751 blndVect=definedProfileBlend[idxLow];
  1837. <a name="l01752"></a>01752 }
  1838. <a name="l01753"></a>01753 }
  1839. <a name="l01754"></a>01754 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(idxHigh)
  1840. <a name="l01755"></a>01755 {
  1841. <a name="l01756"></a>01756 blndVect=definedProfileBlend[idxHigh];
  1842. <a name="l01757"></a>01757 }
  1843. <a name="l01758"></a>01758 <span class="keywordflow">else</span>
  1844. <a name="l01759"></a>01759 {
  1845. <a name="l01760"></a>01760 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::solveCrossSection(): Failed to find appropriate profile blend&quot;</span>);
  1846. <a name="l01761"></a>01761 }
  1847. <a name="l01762"></a>01762
  1848. <a name="l01763"></a>01763 <span class="comment">// retrieve the profile at that location</span>
  1849. <a name="l01764"></a>01764 <a class="code" href="classpolygon.html">polygon&lt;dataType&gt;</a> outerMoldLine=profiles.getProfile(blndVect);
  1850. <a name="l01765"></a>01765
  1851. <a name="l01766"></a>01766 <span class="comment">// create the curve family with that poly-gone</span>
  1852. <a name="l01767"></a>01767 <a class="code" href="classapproxOffset.html">approxOffset&lt;double&gt;</a> polygonSource(outerMoldLine.<a class="code" href="classpolygon.html#aefd94b1ac2266272b090260ead926d5e">size</a>());
  1853. <a name="l01768"></a>01768 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;outerMoldLine.<a class="code" href="classpolygon.html#aefd94b1ac2266272b090260ead926d5e">size</a>();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1854. <a name="l01769"></a>01769 polygonSource.<a class="code" href="classapproxOffset.html#aeb585fb2b546cdd6acb7449702c8102b">addPoint</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>,outerMoldLine.<a class="code" href="classpolygon.html#afacfb555417d495769e88a176755c528">getPoint</a>(<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>));
  1855. <a name="l01770"></a>01770 <a class="code" href="classcurveFamily__curveApproxPolygon.html">curveFamily_curveApproxPolygon&lt;double&gt;</a> crvFamily(&amp;polygonSource,<span class="keyword">false</span>);
  1856. <a name="l01771"></a>01771
  1857. <a name="l01772"></a>01772 <span class="comment">// create the crossSectionGeom object</span>
  1858. <a name="l01773"></a>01773 <a class="code" href="classcrossSectionGeom__boxSpar__cxDesign.html">crossSectionGeom_boxSpar_cxDesign&lt;dataType&gt;</a> cxGeom(
  1859. <a name="l01774"></a>01774 &amp;crvFamily
  1860. <a name="l01775"></a>01775 ,2 <span class="comment">// ,unsigned long teLineCnt_in=2</span>
  1861. <a name="l01776"></a>01776 ,2 <span class="comment">// ,unsigned long topCapLineCnt_in=2</span>
  1862. <a name="l01777"></a>01777 ,2 <span class="comment">// ,unsigned long leLineCnt_in=2</span>
  1863. <a name="l01778"></a>01778 ,2 <span class="comment">// ,unsigned long botCapLineCnt_in=2</span>
  1864. <a name="l01779"></a>01779 ,2 <span class="comment">// ,unsigned long teWebCrossLineCnt_in=2</span>
  1865. <a name="l01780"></a>01780 ,2 <span class="comment">// ,unsigned long leWebCrossLineCnt_in=2</span>
  1866. <a name="l01781"></a>01781 ,<span class="keyword">false</span> <span class="comment">// ,bool deleteCurveSource_in=false</span>
  1867. <a name="l01782"></a>01782 ,-0.125 <span class="comment">// ,dataType A0_s=dataType(-0.125)</span>
  1868. <a name="l01783"></a>01783 ,-0.125 <span class="comment">// ,dataType B0_s=dataType(-0.125)</span>
  1869. <a name="l01784"></a>01784 ,0.125 <span class="comment">// ,dataType A1_s=dataType(0.125)</span>
  1870. <a name="l01785"></a>01785 ,0.125 <span class="comment">// ,dataType B1_s=dataType(0.125)</span>
  1871. <a name="l01786"></a>01786 ,0.125 <span class="comment">// ,dataType C1_s=dataType(0.125)</span>
  1872. <a name="l01787"></a>01787 ,0.225 <span class="comment">// ,dataType A2_s=dataType(0.225)</span>
  1873. <a name="l01788"></a>01788 ,0.225 <span class="comment">// ,dataType B2_s=dataType(0.225)</span>
  1874. <a name="l01789"></a>01789 ,0.225 <span class="comment">// ,dataType C2_s=dataType(0.225) </span>
  1875. <a name="l01790"></a>01790 ,0.275 <span class="comment">// ,dataType A3_s=dataType(0.275)</span>
  1876. <a name="l01791"></a>01791 ,0.275 <span class="comment">// ,dataType B3_s=dataType(0.275)</span>
  1877. <a name="l01792"></a>01792 ,0.275 <span class="comment">// ,dataType C3_s=dataType(0.275)</span>
  1878. <a name="l01793"></a>01793 ,0.375 <span class="comment">// ,dataType A4_s=dataType(0.375)</span>
  1879. <a name="l01794"></a>01794 ,0.375 <span class="comment">// ,dataType B4_s=dataType(0.375)</span>
  1880. <a name="l01795"></a>01795 ,0.375 <span class="comment">// ,dataType C4_s=dataType(0.375)</span>
  1881. <a name="l01796"></a>01796 ,0.625 <span class="comment">// ,dataType A5_s=dataType(0.625)</span>
  1882. <a name="l01797"></a>01797 ,0.625 <span class="comment">// ,dataType B5_s=dataType(0.625)</span>
  1883. <a name="l01798"></a>01798 ,0.625 <span class="comment">// ,dataType C5_s=dataType(0.625)</span>
  1884. <a name="l01799"></a>01799 ,0.725 <span class="comment">// ,dataType A6_s=dataType(0.725)</span>
  1885. <a name="l01800"></a>01800 ,0.725 <span class="comment">// ,dataType B6_s=dataType(0.725)</span>
  1886. <a name="l01801"></a>01801 ,0.725 <span class="comment">// ,dataType C6_s=dataType(0.725)</span>
  1887. <a name="l01802"></a>01802 ,0.775 <span class="comment">// ,dataType A7_s=dataType(0.775)</span>
  1888. <a name="l01803"></a>01803 ,0.775 <span class="comment">// ,dataType B7_s=dataType(0.775)</span>
  1889. <a name="l01804"></a>01804 ,0.775 <span class="comment">// ,dataType C7_s=dataType(0.775)</span>
  1890. <a name="l01805"></a>01805 ,0.875 <span class="comment">// ,dataType C8_s=dataType(0.875)</span>
  1891. <a name="l01806"></a>01806 );
  1892. <a name="l01807"></a>01807 <span class="keywordflow">if</span>(cxDesigns[at]==NULL)
  1893. <a name="l01808"></a>01808 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade::solveCrossSection(unsigned long at): The design data is NULL&quot;</span>);
  1894. <a name="l01809"></a>01809 cxGeom.<a class="code" href="classcrossSectionGeom__boxSpar__cxDesign.html#a1369a88f0b78eb6d7e74e787ab7e1d78">setDesign</a>(*cxDesigns[at]);
  1895. <a name="l01810"></a>01810
  1896. <a name="l01811"></a>01811 <span class="comment">// create the mesh</span>
  1897. <a name="l01812"></a>01812 cxMeshVect[at].resize(0,0);
  1898. <a name="l01813"></a>01813 cxGeom.<a class="code" href="classcrossSectionGeom__boxSpar.html#a5c473a93cf2fb21bf8f8ed89c3cc227c">getMesh</a>(cxMeshVect[at]);
  1899. <a name="l01814"></a>01814
  1900. <a name="l01815"></a>01815 <span class="comment">// shift the mesh to the proper location</span>
  1901. <a name="l01816"></a>01816 cxMeshVect[at].shift(xShift-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[at]),yShift-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[at]));
  1902. <a name="l01817"></a>01817
  1903. <a name="l01818"></a>01818 <span class="comment">// scale the mesh to the current chord size</span>
  1904. <a name="l01819"></a>01819 cxMeshVect[at].scale(chord-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[at]));
  1905. <a name="l01820"></a>01820
  1906. <a name="l01821"></a>01821 <span class="comment">// calculate the mesh statistics</span>
  1907. <a name="l01822"></a>01822 meshStatistics[at]=cxMeshVect[at].getProperties();
  1908. <a name="l01823"></a>01823
  1909. <a name="l01824"></a>01824 <span class="comment">// create the matrix data</span>
  1910. <a name="l01825"></a>01825 matrixDataVect[at].setMesh(&amp;(cxMeshVect[at]),<span class="keyword">false</span>);
  1911. <a name="l01826"></a>01826 matrixDataVect[at].curvSoln=iCurvature-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[at]);
  1912. <a name="l01827"></a>01827
  1913. <a name="l01828"></a>01828 <span class="comment">// create the cxModel</span>
  1914. <a name="l01829"></a>01829 cxModelVect[at].setMatrixData(&amp;(matrixDataVect[at]));
  1915. <a name="l01830"></a>01830 cxModelVect[at].setMesh(&amp;(cxMeshVect[at]),<span class="keyword">false</span>);
  1916. <a name="l01831"></a>01831
  1917. <a name="l01832"></a>01832 <span class="comment">// pass the mesh to the vabsTimoshenko model</span>
  1918. <a name="l01833"></a>01833 calculators[at].setMatrixData(&amp;(matrixDataVect[at]));
  1919. <a name="l01834"></a>01834 calculators[at].setCXModel(&amp;(cxModelVect[at]));
  1920. <a name="l01835"></a>01835
  1921. <a name="l01836"></a>01836 <span class="comment">// solve the vabsTimoshenko model</span>
  1922. <a name="l01837"></a>01837 calculators[at].solveVabs();
  1923. <a name="l01838"></a>01838
  1924. <a name="l01839"></a>01839 isSolved[at]=<span class="keyword">true</span>;
  1925. <a name="l01840"></a>01840 }
  1926. <a name="l01841"></a>01841
  1927. <a name="l01842"></a>01842 <span class="keyword">public</span>:
  1928. <a name="l01843"></a>01843
  1929. <a name="l01844"></a><a class="code" href="classtimoshenkoVabsBlade.html#aec2638bb2a8fea8ef67361162e5aa543">01844</a> <a class="code" href="classtimoshenkoVabsBlade.html#aec2638bb2a8fea8ef67361162e5aa543">timoshenkoVabsBlade</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> defnLocs,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> cxLocs)
  1930. <a name="l01845"></a>01845 : prflLocations(defnLocs,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0))
  1931. <a name="l01846"></a>01846 , definedProfileBlend(defnLocs,std::vector&lt;<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;(0))
  1932. <a name="l01847"></a>01847 , cxLocations(cxLocs,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0))
  1933. <a name="l01848"></a>01848 , isSolved(cxLocs,false)
  1934. <a name="l01849"></a>01849 , calculators(cxLocs)
  1935. <a name="l01850"></a>01850 , cxMeshVect(cxLocs)
  1936. <a name="l01851"></a>01851 , meshStatistics(cxLocs)
  1937. <a name="l01852"></a>01852 , matrixDataVect(cxLocs)
  1938. <a name="l01853"></a>01853 , cxModelVect(cxLocs)
  1939. <a name="l01854"></a>01854 , cxDesigns(cxLocs)
  1940. <a name="l01855"></a>01855 , strainDataSource(cxLocs)
  1941. <a name="l01856"></a>01856 , appliedInertialForceDataSource(cxLocs)
  1942. <a name="l01857"></a>01857 , appliedInertialForceGradDataSource(cxLocs)
  1943. <a name="l01858"></a>01858 , appliedInertialForceConcavityDataSource(cxLocs)
  1944. <a name="l01859"></a>01859 , curvatureDataSource(cxLocs)
  1945. <a name="l01860"></a>01860 , curvatureGradDataSource(cxLocs)
  1946. <a name="l01861"></a>01861 , curvatureConcavityDataSource(cxLocs)
  1947. <a name="l01862"></a>01862 , xShift(NULL)
  1948. <a name="l01863"></a>01863 , yShift(NULL)
  1949. <a name="l01864"></a>01864 , chord(NULL)
  1950. <a name="l01865"></a>01865 , iCurvature(NULL)
  1951. <a name="l01866"></a>01866 , linStrainFunc(NULL)
  1952. <a name="l01867"></a>01867 , angStrainFunc(NULL)
  1953. <a name="l01868"></a>01868 , appliedInertialForceFunc(NULL)
  1954. <a name="l01869"></a>01869 , appliedInertialForceGradFunc(NULL)
  1955. <a name="l01870"></a>01870 , appliedInertialForceConcavityFunc(NULL)
  1956. <a name="l01871"></a>01871 , curvatureFunc(NULL)
  1957. <a name="l01872"></a>01872 , curvatureGradFunc(NULL)
  1958. <a name="l01873"></a>01873 , curvatureConcavityFunc(NULL)
  1959. <a name="l01874"></a>01874 {}
  1960. <a name="l01875"></a>01875
  1961. <a name="l01876"></a><a class="code" href="classtimoshenkoVabsBlade.html#a18b6b29f3b5fd4913abfed4151a71d49">01876</a> <a class="code" href="classtimoshenkoVabsBlade.html">timoshenkoVabsBlade&lt;dataType&gt;</a>&amp; <a class="code" href="classtimoshenkoVabsBlade.html#a18b6b29f3b5fd4913abfed4151a71d49">setDefinitionCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> defnLocs)
  1962. <a name="l01877"></a>01877 {
  1963. <a name="l01878"></a>01878 definedProfileBlend.resize(defnLocs,std::vector&lt;dataType&gt;(0));
  1964. <a name="l01879"></a>01879
  1965. <a name="l01880"></a>01880 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;isSolved.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1966. <a name="l01881"></a>01881 isSolved[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]=<span class="keyword">false</span>;
  1967. <a name="l01882"></a>01882
  1968. <a name="l01883"></a>01883 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  1969. <a name="l01884"></a>01884 }
  1970. <a name="l01885"></a>01885
  1971. <a name="l01886"></a><a class="code" href="classtimoshenkoVabsBlade.html#a49198bf2487d722122f18c13d6399dd0">01886</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a49198bf2487d722122f18c13d6399dd0">setCrossSectionCount</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> cxLocs)
  1972. <a name="l01887"></a>01887 {
  1973. <a name="l01888"></a>01888 cxLocations.resize(cxLocs,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0));
  1974. <a name="l01889"></a>01889 isSolved.resize(cxLocs,<span class="keyword">false</span>);
  1975. <a name="l01890"></a>01890 calculators.resize(cxLocs);
  1976. <a name="l01891"></a>01891 cxMeshVect.resize(cxLocs);
  1977. <a name="l01892"></a>01892 matrixDataVect.resize(cxLocs);
  1978. <a name="l01893"></a>01893 cxModelVect.resize(cxLocs);
  1979. <a name="l01894"></a>01894 cxDesigns.resize(cxLocs);
  1980. <a name="l01895"></a>01895 meshStatistics.resize(cxLocs);
  1981. <a name="l01896"></a>01896 strainDataSource.resize(cxLocs);
  1982. <a name="l01897"></a>01897 appliedInertialForceDataSource.resize(cxLocs);
  1983. <a name="l01898"></a>01898 appliedInertialForceGradDataSource.resize(cxLocs);
  1984. <a name="l01899"></a>01899 appliedInertialForceConcavityDataSource.resize(cxLocs);
  1985. <a name="l01900"></a>01900 curvatureDataSource.resize(cxLocs);
  1986. <a name="l01901"></a>01901 curvatureGradDataSource.resize(cxLocs);
  1987. <a name="l01902"></a>01902 curvatureConcavityDataSource.resize(cxLocs);
  1988. <a name="l01903"></a>01903 }
  1989. <a name="l01904"></a>01904
  1990. <a name="l01905"></a><a class="code" href="classtimoshenkoVabsBlade.html#a31ea1eb71ef92e64f7b5f9d9f77b57ca">01905</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classtimoshenkoVabsBlade.html#a31ea1eb71ef92e64f7b5f9d9f77b57ca">cxCount</a>()
  1991. <a name="l01906"></a>01906 {
  1992. <a name="l01907"></a>01907 <span class="keywordflow">return</span> cxLocations.size();
  1993. <a name="l01908"></a>01908 }
  1994. <a name="l01909"></a>01909
  1995. <a name="l01910"></a><a class="code" href="classtimoshenkoVabsBlade.html#a85f9931925240667e3bf59ef3335647d">01910</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a85f9931925240667e3bf59ef3335647d">solveCrossSections</a>()
  1996. <a name="l01911"></a>01911 {
  1997. <a name="l01912"></a>01912 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;cxLocations.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  1998. <a name="l01913"></a>01913 {
  1999. <a name="l01914"></a>01914 <span class="keywordflow">if</span>(!isSolved[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>])
  2000. <a name="l01915"></a>01915 solveCrossSection(i);
  2001. <a name="l01916"></a>01916 }
  2002. <a name="l01917"></a>01917 }
  2003. <a name="l01918"></a>01918
  2004. <a name="l01919"></a><a class="code" href="classtimoshenkoVabsBlade.html#a14b78fbe9bacfd4a628b724cd7deebcf">01919</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a14b78fbe9bacfd4a628b724cd7deebcf">setCXPosition</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at, <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> position_in)
  2005. <a name="l01920"></a>01920 {
  2006. <a name="l01921"></a>01921 <span class="keywordflow">if</span>(at&gt;=cxLocations.size())
  2007. <a name="l01922"></a>01922 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::setCXPosition(): The position does not exist&quot;</span>);
  2008. <a name="l01923"></a>01923 cxLocations[at]=position_in;
  2009. <a name="l01924"></a>01924 isSolved[at]=<span class="keyword">false</span>;
  2010. <a name="l01925"></a>01925 }
  2011. <a name="l01926"></a>01926
  2012. <a name="l01927"></a><a class="code" href="classtimoshenkoVabsBlade.html#aca25e2dcc4ced5a2ca3268c1b1fa315b">01927</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#aca25e2dcc4ced5a2ca3268c1b1fa315b">setCXDesign</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at, <a class="code" href="classcxDesign.html">cxDesign&lt;dataType&gt;</a>&amp; design_in)
  2013. <a name="l01928"></a>01928 {
  2014. <a name="l01929"></a>01929 <span class="keywordflow">if</span>(at&gt;=cxLocations.size())
  2015. <a name="l01930"></a>01930 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::setCXDesign(): The position does not exist&quot;</span>);
  2016. <a name="l01931"></a>01931 cxDesigns[at]=&amp;design_in;
  2017. <a name="l01932"></a>01932 isSolved[at]=<span class="keyword">false</span>;
  2018. <a name="l01933"></a>01933 }
  2019. <a name="l01934"></a>01934
  2020. <a name="l01935"></a><a class="code" href="classtimoshenkoVabsBlade.html#a4def187ba30c02c23bb77891712bbee3">01935</a> <a class="code" href="classmatrixRdWtStaticSqr__Data.html">matrixRdWtStaticSqr_Data&lt;dataType,6&gt;</a> <a class="code" href="classtimoshenkoVabsBlade.html#a4def187ba30c02c23bb77891712bbee3">getBladeStiffness</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc)
  2021. <a name="l01936"></a>01936 {
  2022. <a name="l01937"></a>01937 <span class="keywordtype">bool</span> atSet;
  2023. <a name="l01938"></a>01938 <span class="keywordtype">bool</span> lowSet;
  2024. <a name="l01939"></a>01939 <span class="keywordtype">bool</span> highSet;
  2025. <a name="l01940"></a>01940 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxAt;
  2026. <a name="l01941"></a>01941 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxLow;
  2027. <a name="l01942"></a>01942 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxHigh;
  2028. <a name="l01943"></a>01943
  2029. <a name="l01944"></a>01944 <span class="comment">// retrieve the neighbours for interpolation</span>
  2030. <a name="l01945"></a>01945 getNeighbours(loc, cxLocations, atSet, lowSet, highSet, idxAt, idxLow, idxHigh);
  2031. <a name="l01946"></a>01946
  2032. <a name="l01947"></a>01947 <span class="comment">// if not solved</span>
  2033. <a name="l01948"></a>01948 <span class="comment">// solve cross sections</span>
  2034. <a name="l01949"></a>01949 <span class="keywordflow">if</span>(atSet &amp;&amp; !isSolved[idxAt])
  2035. <a name="l01950"></a>01950 solveCrossSection(idxAt);
  2036. <a name="l01951"></a>01951 <span class="keywordflow">if</span>(lowSet &amp;&amp; !isSolved[idxLow])
  2037. <a name="l01952"></a>01952 solveCrossSection(idxLow);
  2038. <a name="l01953"></a>01953 <span class="keywordflow">if</span>(highSet &amp;&amp; !isSolved[idxHigh])
  2039. <a name="l01954"></a>01954 solveCrossSection(idxHigh);
  2040. <a name="l01955"></a>01955
  2041. <a name="l01956"></a>01956 <a class="code" href="classmatrixRdWtStaticSqr__Data.html">matrixRdWtStaticSqr_Data&lt;dataType,6&gt;</a> retVal;
  2042. <a name="l01957"></a>01957
  2043. <a name="l01958"></a>01958 <span class="comment">// retrieve the K and interpolate if needed</span>
  2044. <a name="l01959"></a>01959 <span class="keywordflow">if</span>(atSet)
  2045. <a name="l01960"></a>01960 {
  2046. <a name="l01961"></a>01961 <span class="keywordflow">if</span>(!isSolved[idxAt])
  2047. <a name="l01962"></a>01962 solveCrossSection(idxAt);
  2048. <a name="l01963"></a>01963 retVal=calculators[idxAt].getKMatrix();
  2049. <a name="l01964"></a>01964 }
  2050. <a name="l01965"></a>01965 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(lowSet)
  2051. <a name="l01966"></a>01966 {
  2052. <a name="l01967"></a>01967 <span class="keywordflow">if</span>(highSet)
  2053. <a name="l01968"></a>01968 {
  2054. <a name="l01969"></a>01969 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2055. <a name="l01970"></a>01970 solveCrossSection(idxLow);
  2056. <a name="l01971"></a>01971 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2057. <a name="l01972"></a>01972 solveCrossSection(idxHigh);
  2058. <a name="l01973"></a>01973
  2059. <a name="l01974"></a>01974 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> alpha=(loc-cxLocations[idxLow])/(cxLocations[idxHigh]-cxLocations[idxLow]);
  2060. <a name="l01975"></a>01975 retVal=calculators[idxLow].getKMatrix()*(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0)-alpha)+calculators[idxHigh].getKMatrix()*alpha;
  2061. <a name="l01976"></a>01976 }
  2062. <a name="l01977"></a>01977 <span class="keywordflow">else</span>
  2063. <a name="l01978"></a>01978 {
  2064. <a name="l01979"></a>01979 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2065. <a name="l01980"></a>01980 solveCrossSection(idxLow);
  2066. <a name="l01981"></a>01981 retVal=calculators[idxLow].getKMatrix();
  2067. <a name="l01982"></a>01982 }
  2068. <a name="l01983"></a>01983 }
  2069. <a name="l01984"></a>01984 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(idxHigh)
  2070. <a name="l01985"></a>01985 {
  2071. <a name="l01986"></a>01986 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2072. <a name="l01987"></a>01987 solveCrossSection(idxHigh);
  2073. <a name="l01988"></a>01988 retVal=calculators[idxHigh].getKMatrix();
  2074. <a name="l01989"></a>01989 }
  2075. <a name="l01990"></a>01990 <span class="keywordflow">else</span>
  2076. <a name="l01991"></a>01991 {
  2077. <a name="l01992"></a>01992 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::getBladeStiffness(): Failed to find appropriate cross section&quot;</span>);
  2078. <a name="l01993"></a>01993 }
  2079. <a name="l01994"></a>01994
  2080. <a name="l01995"></a>01995 <span class="keywordflow">return</span> retVal;
  2081. <a name="l01996"></a>01996 }
  2082. <a name="l01997"></a>01997
  2083. <a name="l01998"></a><a class="code" href="classtimoshenkoVabsBlade.html#acce617ee78f3e7e9948a6603dbc2d456">01998</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classtimoshenkoVabsBlade.html#acce617ee78f3e7e9948a6603dbc2d456">getArea</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc)
  2084. <a name="l01999"></a>01999 {
  2085. <a name="l02000"></a>02000 <span class="keywordtype">bool</span> atSet;
  2086. <a name="l02001"></a>02001 <span class="keywordtype">bool</span> lowSet;
  2087. <a name="l02002"></a>02002 <span class="keywordtype">bool</span> highSet;
  2088. <a name="l02003"></a>02003 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxAt;
  2089. <a name="l02004"></a>02004 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxLow;
  2090. <a name="l02005"></a>02005 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxHigh;
  2091. <a name="l02006"></a>02006
  2092. <a name="l02007"></a>02007 <span class="comment">// retrieve the neighbours for interpolation</span>
  2093. <a name="l02008"></a>02008 getNeighbours(loc, cxLocations, atSet, lowSet, highSet, idxAt, idxLow, idxHigh);
  2094. <a name="l02009"></a>02009
  2095. <a name="l02010"></a>02010 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> retVal;
  2096. <a name="l02011"></a>02011
  2097. <a name="l02012"></a>02012 <span class="comment">// retrieve the K and interpolate if needed</span>
  2098. <a name="l02013"></a>02013 <span class="keywordflow">if</span>(atSet)
  2099. <a name="l02014"></a>02014 {
  2100. <a name="l02015"></a>02015 <span class="keywordflow">if</span>(!isSolved[idxAt])
  2101. <a name="l02016"></a>02016 solveCrossSection(idxAt);
  2102. <a name="l02017"></a>02017
  2103. <a name="l02018"></a>02018 retVal=meshStatistics[idxAt].getArea();
  2104. <a name="l02019"></a>02019 }
  2105. <a name="l02020"></a>02020 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(lowSet)
  2106. <a name="l02021"></a>02021 {
  2107. <a name="l02022"></a>02022 <span class="keywordflow">if</span>(highSet)
  2108. <a name="l02023"></a>02023 {
  2109. <a name="l02024"></a>02024 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2110. <a name="l02025"></a>02025 solveCrossSection(idxLow);
  2111. <a name="l02026"></a>02026 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2112. <a name="l02027"></a>02027 solveCrossSection(idxHigh);
  2113. <a name="l02028"></a>02028
  2114. <a name="l02029"></a>02029 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> alpha=(loc-cxLocations[idxLow])/(cxLocations[idxHigh]-cxLocations[idxLow]);
  2115. <a name="l02030"></a>02030 retVal=meshStatistics[idxLow].getArea()*(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0)-alpha)+meshStatistics[idxHigh].<a class="code" href="classtimoshenkoVabsBlade.html#acce617ee78f3e7e9948a6603dbc2d456">getArea</a>()*alpha;
  2116. <a name="l02031"></a>02031 }
  2117. <a name="l02032"></a>02032 <span class="keywordflow">else</span>
  2118. <a name="l02033"></a>02033 {
  2119. <a name="l02034"></a>02034 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2120. <a name="l02035"></a>02035 solveCrossSection(idxLow);
  2121. <a name="l02036"></a>02036
  2122. <a name="l02037"></a>02037 retVal=meshStatistics[idxLow].getArea();
  2123. <a name="l02038"></a>02038 }
  2124. <a name="l02039"></a>02039 }
  2125. <a name="l02040"></a>02040 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(idxHigh)
  2126. <a name="l02041"></a>02041 {
  2127. <a name="l02042"></a>02042 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2128. <a name="l02043"></a>02043 solveCrossSection(idxHigh);
  2129. <a name="l02044"></a>02044
  2130. <a name="l02045"></a>02045 retVal=meshStatistics[idxHigh].getArea();
  2131. <a name="l02046"></a>02046 }
  2132. <a name="l02047"></a>02047 <span class="keywordflow">else</span>
  2133. <a name="l02048"></a>02048 {
  2134. <a name="l02049"></a>02049 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::getArea(): Failed to find appropriate cross section&quot;</span>);
  2135. <a name="l02050"></a>02050 }
  2136. <a name="l02051"></a>02051
  2137. <a name="l02052"></a>02052 <span class="keywordflow">return</span> retVal;
  2138. <a name="l02053"></a>02053 }
  2139. <a name="l02054"></a>02054
  2140. <a name="l02055"></a><a class="code" href="classtimoshenkoVabsBlade.html#a7c54838f083cdaf38d8623aa488c0faf">02055</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classtimoshenkoVabsBlade.html#a7c54838f083cdaf38d8623aa488c0faf">getXBar</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc)
  2141. <a name="l02056"></a>02056 {
  2142. <a name="l02057"></a>02057 <span class="keywordtype">bool</span> atSet;
  2143. <a name="l02058"></a>02058 <span class="keywordtype">bool</span> lowSet;
  2144. <a name="l02059"></a>02059 <span class="keywordtype">bool</span> highSet;
  2145. <a name="l02060"></a>02060 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxAt;
  2146. <a name="l02061"></a>02061 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxLow;
  2147. <a name="l02062"></a>02062 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxHigh;
  2148. <a name="l02063"></a>02063
  2149. <a name="l02064"></a>02064 <span class="comment">// retrieve the neighbours for interpolation</span>
  2150. <a name="l02065"></a>02065 getNeighbours(loc, cxLocations, atSet, lowSet, highSet, idxAt, idxLow, idxHigh);
  2151. <a name="l02066"></a>02066
  2152. <a name="l02067"></a>02067 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> retVal;
  2153. <a name="l02068"></a>02068
  2154. <a name="l02069"></a>02069 <span class="comment">// retrieve the K and interpolate if needed</span>
  2155. <a name="l02070"></a>02070 <span class="keywordflow">if</span>(atSet)
  2156. <a name="l02071"></a>02071 {
  2157. <a name="l02072"></a>02072 <span class="keywordflow">if</span>(!isSolved[idxAt])
  2158. <a name="l02073"></a>02073 solveCrossSection(idxAt);
  2159. <a name="l02074"></a>02074
  2160. <a name="l02075"></a>02075 retVal=meshStatistics[idxAt].getXBar();
  2161. <a name="l02076"></a>02076 }
  2162. <a name="l02077"></a>02077 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(lowSet)
  2163. <a name="l02078"></a>02078 {
  2164. <a name="l02079"></a>02079 <span class="keywordflow">if</span>(highSet)
  2165. <a name="l02080"></a>02080 {
  2166. <a name="l02081"></a>02081 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2167. <a name="l02082"></a>02082 solveCrossSection(idxLow);
  2168. <a name="l02083"></a>02083 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2169. <a name="l02084"></a>02084 solveCrossSection(idxHigh);
  2170. <a name="l02085"></a>02085
  2171. <a name="l02086"></a>02086 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> alpha=(loc-cxLocations[idxLow])/(cxLocations[idxHigh]-cxLocations[idxLow]);
  2172. <a name="l02087"></a>02087 retVal=meshStatistics[idxLow].getXBar()*(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0)-alpha)+meshStatistics[idxHigh].<a class="code" href="classtimoshenkoVabsBlade.html#a7c54838f083cdaf38d8623aa488c0faf">getXBar</a>()*alpha;
  2173. <a name="l02088"></a>02088 }
  2174. <a name="l02089"></a>02089 <span class="keywordflow">else</span>
  2175. <a name="l02090"></a>02090 {
  2176. <a name="l02091"></a>02091 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2177. <a name="l02092"></a>02092 solveCrossSection(idxLow);
  2178. <a name="l02093"></a>02093
  2179. <a name="l02094"></a>02094 retVal=meshStatistics[idxLow].getXBar();
  2180. <a name="l02095"></a>02095 }
  2181. <a name="l02096"></a>02096 }
  2182. <a name="l02097"></a>02097 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(idxHigh)
  2183. <a name="l02098"></a>02098 {
  2184. <a name="l02099"></a>02099 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2185. <a name="l02100"></a>02100 solveCrossSection(idxHigh);
  2186. <a name="l02101"></a>02101
  2187. <a name="l02102"></a>02102 retVal=meshStatistics[idxHigh].getXBar();
  2188. <a name="l02103"></a>02103 }
  2189. <a name="l02104"></a>02104 <span class="keywordflow">else</span>
  2190. <a name="l02105"></a>02105 {
  2191. <a name="l02106"></a>02106 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::getXBar(): Failed to find appropriate cross section&quot;</span>);
  2192. <a name="l02107"></a>02107 }
  2193. <a name="l02108"></a>02108
  2194. <a name="l02109"></a>02109 <span class="keywordflow">return</span> retVal;
  2195. <a name="l02110"></a>02110 }
  2196. <a name="l02111"></a>02111
  2197. <a name="l02112"></a><a class="code" href="classtimoshenkoVabsBlade.html#aa233f77e251d244e6cd06a385c55cf65">02112</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classtimoshenkoVabsBlade.html#aa233f77e251d244e6cd06a385c55cf65">getYBar</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc)
  2198. <a name="l02113"></a>02113 {
  2199. <a name="l02114"></a>02114 <span class="keywordtype">bool</span> atSet;
  2200. <a name="l02115"></a>02115 <span class="keywordtype">bool</span> lowSet;
  2201. <a name="l02116"></a>02116 <span class="keywordtype">bool</span> highSet;
  2202. <a name="l02117"></a>02117 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxAt;
  2203. <a name="l02118"></a>02118 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxLow;
  2204. <a name="l02119"></a>02119 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxHigh;
  2205. <a name="l02120"></a>02120
  2206. <a name="l02121"></a>02121 <span class="comment">// retrieve the neighbours for interpolation</span>
  2207. <a name="l02122"></a>02122 getNeighbours(loc, cxLocations, atSet, lowSet, highSet, idxAt, idxLow, idxHigh);
  2208. <a name="l02123"></a>02123
  2209. <a name="l02124"></a>02124 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> retVal;
  2210. <a name="l02125"></a>02125
  2211. <a name="l02126"></a>02126 <span class="comment">// retrieve the K and interpolate if needed</span>
  2212. <a name="l02127"></a>02127 <span class="keywordflow">if</span>(atSet)
  2213. <a name="l02128"></a>02128 {
  2214. <a name="l02129"></a>02129 <span class="keywordflow">if</span>(!isSolved[idxAt])
  2215. <a name="l02130"></a>02130 solveCrossSection(idxAt);
  2216. <a name="l02131"></a>02131
  2217. <a name="l02132"></a>02132 retVal=meshStatistics[idxAt].getYBar();
  2218. <a name="l02133"></a>02133 }
  2219. <a name="l02134"></a>02134 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(lowSet)
  2220. <a name="l02135"></a>02135 {
  2221. <a name="l02136"></a>02136 <span class="keywordflow">if</span>(highSet)
  2222. <a name="l02137"></a>02137 {
  2223. <a name="l02138"></a>02138 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2224. <a name="l02139"></a>02139 solveCrossSection(idxLow);
  2225. <a name="l02140"></a>02140 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2226. <a name="l02141"></a>02141 solveCrossSection(idxHigh);
  2227. <a name="l02142"></a>02142
  2228. <a name="l02143"></a>02143 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> alpha=(loc-cxLocations[idxLow])/(cxLocations[idxHigh]-cxLocations[idxLow]);
  2229. <a name="l02144"></a>02144 retVal=meshStatistics[idxLow].getYBar()*(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0)-alpha)+meshStatistics[idxHigh].<a class="code" href="classtimoshenkoVabsBlade.html#aa233f77e251d244e6cd06a385c55cf65">getYBar</a>()*alpha;
  2230. <a name="l02145"></a>02145 }
  2231. <a name="l02146"></a>02146 <span class="keywordflow">else</span>
  2232. <a name="l02147"></a>02147 {
  2233. <a name="l02148"></a>02148 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2234. <a name="l02149"></a>02149 solveCrossSection(idxLow);
  2235. <a name="l02150"></a>02150
  2236. <a name="l02151"></a>02151 retVal=meshStatistics[idxLow].getYBar();
  2237. <a name="l02152"></a>02152 }
  2238. <a name="l02153"></a>02153 }
  2239. <a name="l02154"></a>02154 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(idxHigh)
  2240. <a name="l02155"></a>02155 {
  2241. <a name="l02156"></a>02156 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2242. <a name="l02157"></a>02157 solveCrossSection(idxHigh);
  2243. <a name="l02158"></a>02158
  2244. <a name="l02159"></a>02159 retVal=meshStatistics[idxHigh].getYBar();
  2245. <a name="l02160"></a>02160 }
  2246. <a name="l02161"></a>02161 <span class="keywordflow">else</span>
  2247. <a name="l02162"></a>02162 {
  2248. <a name="l02163"></a>02163 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::getYBar(): Failed to find appropriate cross section&quot;</span>);
  2249. <a name="l02164"></a>02164 }
  2250. <a name="l02165"></a>02165
  2251. <a name="l02166"></a>02166 <span class="keywordflow">return</span> retVal;
  2252. <a name="l02167"></a>02167 }
  2253. <a name="l02168"></a>02168
  2254. <a name="l02169"></a><a class="code" href="classtimoshenkoVabsBlade.html#a377fffee9d5f2b5da36c45fe5737162d">02169</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classtimoshenkoVabsBlade.html#a377fffee9d5f2b5da36c45fe5737162d">getIxx</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc)
  2255. <a name="l02170"></a>02170 {
  2256. <a name="l02171"></a>02171 <span class="keywordtype">bool</span> atSet;
  2257. <a name="l02172"></a>02172 <span class="keywordtype">bool</span> lowSet;
  2258. <a name="l02173"></a>02173 <span class="keywordtype">bool</span> highSet;
  2259. <a name="l02174"></a>02174 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxAt;
  2260. <a name="l02175"></a>02175 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxLow;
  2261. <a name="l02176"></a>02176 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxHigh;
  2262. <a name="l02177"></a>02177
  2263. <a name="l02178"></a>02178 <span class="comment">// retrieve the neighbours for interpolation</span>
  2264. <a name="l02179"></a>02179 getNeighbours(loc, cxLocations, atSet, lowSet, highSet, idxAt, idxLow, idxHigh);
  2265. <a name="l02180"></a>02180
  2266. <a name="l02181"></a>02181 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> retVal;
  2267. <a name="l02182"></a>02182
  2268. <a name="l02183"></a>02183 <span class="comment">// retrieve the K and interpolate if needed</span>
  2269. <a name="l02184"></a>02184 <span class="keywordflow">if</span>(atSet)
  2270. <a name="l02185"></a>02185 {
  2271. <a name="l02186"></a>02186 <span class="keywordflow">if</span>(!isSolved[idxAt])
  2272. <a name="l02187"></a>02187 solveCrossSection(idxAt);
  2273. <a name="l02188"></a>02188
  2274. <a name="l02189"></a>02189 retVal=meshStatistics[idxAt].getIxx();
  2275. <a name="l02190"></a>02190 }
  2276. <a name="l02191"></a>02191 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(lowSet)
  2277. <a name="l02192"></a>02192 {
  2278. <a name="l02193"></a>02193 <span class="keywordflow">if</span>(highSet)
  2279. <a name="l02194"></a>02194 {
  2280. <a name="l02195"></a>02195 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2281. <a name="l02196"></a>02196 solveCrossSection(idxLow);
  2282. <a name="l02197"></a>02197 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2283. <a name="l02198"></a>02198 solveCrossSection(idxHigh);
  2284. <a name="l02199"></a>02199
  2285. <a name="l02200"></a>02200 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> alpha=(loc-cxLocations[idxLow])/(cxLocations[idxHigh]-cxLocations[idxLow]);
  2286. <a name="l02201"></a>02201 retVal=meshStatistics[idxLow].getIxx()*(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0)-alpha)+meshStatistics[idxHigh].<a class="code" href="classtimoshenkoVabsBlade.html#a377fffee9d5f2b5da36c45fe5737162d">getIxx</a>()*alpha;
  2287. <a name="l02202"></a>02202 }
  2288. <a name="l02203"></a>02203 <span class="keywordflow">else</span>
  2289. <a name="l02204"></a>02204 {
  2290. <a name="l02205"></a>02205 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2291. <a name="l02206"></a>02206 solveCrossSection(idxLow);
  2292. <a name="l02207"></a>02207
  2293. <a name="l02208"></a>02208 retVal=meshStatistics[idxLow].getIxx();
  2294. <a name="l02209"></a>02209 }
  2295. <a name="l02210"></a>02210 }
  2296. <a name="l02211"></a>02211 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(idxHigh)
  2297. <a name="l02212"></a>02212 {
  2298. <a name="l02213"></a>02213 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2299. <a name="l02214"></a>02214 solveCrossSection(idxHigh);
  2300. <a name="l02215"></a>02215
  2301. <a name="l02216"></a>02216 retVal=meshStatistics[idxHigh].getIxx();
  2302. <a name="l02217"></a>02217 }
  2303. <a name="l02218"></a>02218 <span class="keywordflow">else</span>
  2304. <a name="l02219"></a>02219 {
  2305. <a name="l02220"></a>02220 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::getIxx(): Failed to find appropriate cross section&quot;</span>);
  2306. <a name="l02221"></a>02221 }
  2307. <a name="l02222"></a>02222
  2308. <a name="l02223"></a>02223 <span class="keywordflow">return</span> retVal;
  2309. <a name="l02224"></a>02224 }
  2310. <a name="l02225"></a>02225
  2311. <a name="l02226"></a><a class="code" href="classtimoshenkoVabsBlade.html#a94319d8d7a50957d04dfeb11054f3df9">02226</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classtimoshenkoVabsBlade.html#a94319d8d7a50957d04dfeb11054f3df9">getIxy</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc)
  2312. <a name="l02227"></a>02227 {
  2313. <a name="l02228"></a>02228 <span class="keywordtype">bool</span> atSet;
  2314. <a name="l02229"></a>02229 <span class="keywordtype">bool</span> lowSet;
  2315. <a name="l02230"></a>02230 <span class="keywordtype">bool</span> highSet;
  2316. <a name="l02231"></a>02231 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxAt;
  2317. <a name="l02232"></a>02232 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxLow;
  2318. <a name="l02233"></a>02233 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxHigh;
  2319. <a name="l02234"></a>02234
  2320. <a name="l02235"></a>02235 <span class="comment">// retrieve the neighbours for interpolation</span>
  2321. <a name="l02236"></a>02236 getNeighbours(loc, cxLocations, atSet, lowSet, highSet, idxAt, idxLow, idxHigh);
  2322. <a name="l02237"></a>02237
  2323. <a name="l02238"></a>02238 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> retVal;
  2324. <a name="l02239"></a>02239
  2325. <a name="l02240"></a>02240 <span class="comment">// retrieve the K and interpolate if needed</span>
  2326. <a name="l02241"></a>02241 <span class="keywordflow">if</span>(atSet)
  2327. <a name="l02242"></a>02242 {
  2328. <a name="l02243"></a>02243 <span class="keywordflow">if</span>(!isSolved[idxAt])
  2329. <a name="l02244"></a>02244 solveCrossSection(idxAt);
  2330. <a name="l02245"></a>02245
  2331. <a name="l02246"></a>02246 retVal=meshStatistics[idxAt].getIxy();
  2332. <a name="l02247"></a>02247 }
  2333. <a name="l02248"></a>02248 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(lowSet)
  2334. <a name="l02249"></a>02249 {
  2335. <a name="l02250"></a>02250 <span class="keywordflow">if</span>(highSet)
  2336. <a name="l02251"></a>02251 {
  2337. <a name="l02252"></a>02252 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2338. <a name="l02253"></a>02253 solveCrossSection(idxLow);
  2339. <a name="l02254"></a>02254 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2340. <a name="l02255"></a>02255 solveCrossSection(idxHigh);
  2341. <a name="l02256"></a>02256
  2342. <a name="l02257"></a>02257 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> alpha=(loc-cxLocations[idxLow])/(cxLocations[idxHigh]-cxLocations[idxLow]);
  2343. <a name="l02258"></a>02258 retVal=meshStatistics[idxLow].getIxy()*(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0)-alpha)+meshStatistics[idxHigh].<a class="code" href="classtimoshenkoVabsBlade.html#a94319d8d7a50957d04dfeb11054f3df9">getIxy</a>()*alpha;
  2344. <a name="l02259"></a>02259 }
  2345. <a name="l02260"></a>02260 <span class="keywordflow">else</span>
  2346. <a name="l02261"></a>02261 {
  2347. <a name="l02262"></a>02262 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2348. <a name="l02263"></a>02263 solveCrossSection(idxLow);
  2349. <a name="l02264"></a>02264
  2350. <a name="l02265"></a>02265 retVal=meshStatistics[idxLow].getIxy();
  2351. <a name="l02266"></a>02266 }
  2352. <a name="l02267"></a>02267 }
  2353. <a name="l02268"></a>02268 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(idxHigh)
  2354. <a name="l02269"></a>02269 {
  2355. <a name="l02270"></a>02270 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2356. <a name="l02271"></a>02271 solveCrossSection(idxHigh);
  2357. <a name="l02272"></a>02272
  2358. <a name="l02273"></a>02273 retVal=meshStatistics[idxHigh].getIxy();
  2359. <a name="l02274"></a>02274 }
  2360. <a name="l02275"></a>02275 <span class="keywordflow">else</span>
  2361. <a name="l02276"></a>02276 {
  2362. <a name="l02277"></a>02277 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::getIxy(): Failed to find appropriate cross section&quot;</span>);
  2363. <a name="l02278"></a>02278 }
  2364. <a name="l02279"></a>02279
  2365. <a name="l02280"></a>02280 <span class="keywordflow">return</span> retVal;
  2366. <a name="l02281"></a>02281 }
  2367. <a name="l02282"></a>02282
  2368. <a name="l02283"></a><a class="code" href="classtimoshenkoVabsBlade.html#ad7860080aff0d4a4285d1d7708f0f5a2">02283</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classtimoshenkoVabsBlade.html#ad7860080aff0d4a4285d1d7708f0f5a2">getIyy</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> loc)
  2369. <a name="l02284"></a>02284 {
  2370. <a name="l02285"></a>02285 <span class="keywordtype">bool</span> atSet;
  2371. <a name="l02286"></a>02286 <span class="keywordtype">bool</span> lowSet;
  2372. <a name="l02287"></a>02287 <span class="keywordtype">bool</span> highSet;
  2373. <a name="l02288"></a>02288 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxAt;
  2374. <a name="l02289"></a>02289 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxLow;
  2375. <a name="l02290"></a>02290 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idxHigh;
  2376. <a name="l02291"></a>02291
  2377. <a name="l02292"></a>02292 <span class="comment">// retrieve the neighbours for interpolation</span>
  2378. <a name="l02293"></a>02293 getNeighbours(loc, cxLocations, atSet, lowSet, highSet, idxAt, idxLow, idxHigh);
  2379. <a name="l02294"></a>02294
  2380. <a name="l02295"></a>02295 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> retVal;
  2381. <a name="l02296"></a>02296
  2382. <a name="l02297"></a>02297 <span class="comment">// retrieve the K and interpolate if needed</span>
  2383. <a name="l02298"></a>02298 <span class="keywordflow">if</span>(atSet)
  2384. <a name="l02299"></a>02299 {
  2385. <a name="l02300"></a>02300 <span class="keywordflow">if</span>(!isSolved[idxAt])
  2386. <a name="l02301"></a>02301 solveCrossSection(idxAt);
  2387. <a name="l02302"></a>02302
  2388. <a name="l02303"></a>02303 retVal=meshStatistics[idxAt].getIyy();
  2389. <a name="l02304"></a>02304 }
  2390. <a name="l02305"></a>02305 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(lowSet)
  2391. <a name="l02306"></a>02306 {
  2392. <a name="l02307"></a>02307 <span class="keywordflow">if</span>(highSet)
  2393. <a name="l02308"></a>02308 {
  2394. <a name="l02309"></a>02309 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2395. <a name="l02310"></a>02310 solveCrossSection(idxLow);
  2396. <a name="l02311"></a>02311 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2397. <a name="l02312"></a>02312 solveCrossSection(idxHigh);
  2398. <a name="l02313"></a>02313
  2399. <a name="l02314"></a>02314 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> alpha=(loc-cxLocations[idxLow])/(cxLocations[idxHigh]-cxLocations[idxLow]);
  2400. <a name="l02315"></a>02315 retVal=meshStatistics[idxLow].getIyy()*(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0)-alpha)+meshStatistics[idxHigh].<a class="code" href="classtimoshenkoVabsBlade.html#ad7860080aff0d4a4285d1d7708f0f5a2">getIyy</a>()*alpha;
  2401. <a name="l02316"></a>02316 }
  2402. <a name="l02317"></a>02317 <span class="keywordflow">else</span>
  2403. <a name="l02318"></a>02318 {
  2404. <a name="l02319"></a>02319 <span class="keywordflow">if</span>(!isSolved[idxLow])
  2405. <a name="l02320"></a>02320 solveCrossSection(idxLow);
  2406. <a name="l02321"></a>02321
  2407. <a name="l02322"></a>02322 retVal=meshStatistics[idxLow].getIyy();
  2408. <a name="l02323"></a>02323 }
  2409. <a name="l02324"></a>02324 }
  2410. <a name="l02325"></a>02325 <span class="keywordflow">else</span> <span class="keywordflow">if</span>(idxHigh)
  2411. <a name="l02326"></a>02326 {
  2412. <a name="l02327"></a>02327 <span class="keywordflow">if</span>(!isSolved[idxHigh])
  2413. <a name="l02328"></a>02328 solveCrossSection(idxHigh);
  2414. <a name="l02329"></a>02329
  2415. <a name="l02330"></a>02330 retVal=meshStatistics[idxHigh].getIyy();
  2416. <a name="l02331"></a>02331 }
  2417. <a name="l02332"></a>02332 <span class="keywordflow">else</span>
  2418. <a name="l02333"></a>02333 {
  2419. <a name="l02334"></a>02334 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::getIyy(): Failed to find appropriate cross section&quot;</span>);
  2420. <a name="l02335"></a>02335 }
  2421. <a name="l02336"></a>02336
  2422. <a name="l02337"></a>02337 <span class="keywordflow">return</span> retVal;
  2423. <a name="l02338"></a>02338 }
  2424. <a name="l02339"></a>02339
  2425. <a name="l02340"></a><a class="code" href="classtimoshenkoVabsBlade.html#a834b41dad1b3ce649030c59c620b62f5">02340</a> <a class="code" href="classmesh.html">mesh&lt;dataType&gt;</a>&amp; <a class="code" href="classtimoshenkoVabsBlade.html#a834b41dad1b3ce649030c59c620b62f5">getMesh</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at)
  2426. <a name="l02341"></a>02341 {
  2427. <a name="l02342"></a>02342 <span class="keywordflow">if</span>(at&gt;=cxMeshVect.size())
  2428. <a name="l02343"></a>02343 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::getMesh(): The mesh does not exist&quot;</span>);
  2429. <a name="l02344"></a>02344 <span class="keywordflow">return</span> cxMeshVect[at];
  2430. <a name="l02345"></a>02345 }
  2431. <a name="l02346"></a>02346
  2432. <a name="l02347"></a><a class="code" href="classtimoshenkoVabsBlade.html#a8775ebc90cf18683ebc644918947727c">02347</a> <a class="code" href="classcxModel.html">cxModel&lt;dataType&gt;</a>&amp; <a class="code" href="classtimoshenkoVabsBlade.html#a8775ebc90cf18683ebc644918947727c">getCXModel</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at)
  2433. <a name="l02348"></a>02348 {
  2434. <a name="l02349"></a>02349 <span class="keywordflow">if</span>(at&gt;=cxModelVect.size())
  2435. <a name="l02350"></a>02350 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::getBladeStiffness(): The cross section model does not exist&quot;</span>);
  2436. <a name="l02351"></a>02351 <span class="keywordflow">return</span> cxModelVect[at];
  2437. <a name="l02352"></a>02352 }
  2438. <a name="l02353"></a>02353
  2439. <a name="l02354"></a><a class="code" href="classtimoshenkoVabsBlade.html#a9a4a8acabc516d439cfce079f2a107c5">02354</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a9a4a8acabc516d439cfce079f2a107c5">setMeshStrain</a>()
  2440. <a name="l02355"></a>02355 {
  2441. <a name="l02356"></a>02356 <span class="comment">// confirm that all the data sources are there</span>
  2442. <a name="l02357"></a>02357 <span class="keywordflow">if</span>(linStrainFunc==NULL)
  2443. <a name="l02358"></a>02358 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::setMeshStrain(): linStrainFunc is NULL&quot;</span>);
  2444. <a name="l02359"></a>02359 <span class="keywordflow">if</span>(angStrainFunc==NULL)
  2445. <a name="l02360"></a>02360 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::setMeshStrain(): angStrainFunc is NULL&quot;</span>);
  2446. <a name="l02361"></a>02361 <span class="keywordflow">if</span>(appliedInertialForceFunc==NULL)
  2447. <a name="l02362"></a>02362 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::setMeshStrain(): appliedInertialForceFunc is NULL&quot;</span>);
  2448. <a name="l02363"></a>02363 <span class="keywordflow">if</span>(appliedInertialForceGradFunc==NULL)
  2449. <a name="l02364"></a>02364 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::setMeshStrain(): appliedInertialForceGradFunc is NULL&quot;</span>);
  2450. <a name="l02365"></a>02365 <span class="keywordflow">if</span>(appliedInertialForceConcavityFunc==NULL)
  2451. <a name="l02366"></a>02366 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::setMeshStrain(): appliedInertialForceConcavityFunc is NULL&quot;</span>);
  2452. <a name="l02367"></a>02367 <span class="keywordflow">if</span>(curvatureFunc==NULL)
  2453. <a name="l02368"></a>02368 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::setMeshStrain(): curvatureFunc is NULL&quot;</span>);
  2454. <a name="l02369"></a>02369 <span class="keywordflow">if</span>(curvatureGradFunc==NULL)
  2455. <a name="l02370"></a>02370 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::setMeshStrain(): curvatureGradFunc is NULL&quot;</span>);
  2456. <a name="l02371"></a>02371 <span class="keywordflow">if</span>(curvatureConcavityFunc==NULL)
  2457. <a name="l02372"></a>02372 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::setMeshStrain(): curvatureConcavityFunc is NULL&quot;</span>);
  2458. <a name="l02373"></a>02373
  2459. <a name="l02374"></a>02374 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;cxLocations.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  2460. <a name="l02375"></a>02375 {
  2461. <a name="l02376"></a>02376 <span class="comment">// retrieve all the latest values</span>
  2462. <a name="l02377"></a>02377 <a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a> linStrainVal=linStrainFunc-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]);
  2463. <a name="l02378"></a>02378 <a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a> angStrainVal=angStrainFunc-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[i]);
  2464. <a name="l02379"></a>02379
  2465. <a name="l02380"></a>02380 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> j=0;j&lt;3;j++)
  2466. <a name="l02381"></a>02381 {
  2467. <a name="l02382"></a>02382 strainDataSource[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].getData().entry(j)=linStrainVal.<a class="code" href="classmatrixRdWtVect.html#ab6754006e5bfc55c5a3ade09cb9f5a65">entry</a>(j);
  2468. <a name="l02383"></a>02383 strainDataSource[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].getData().entry(j+3)=angStrainVal.<a class="code" href="classmatrixRdWtVect.html#ab6754006e5bfc55c5a3ade09cb9f5a65">entry</a>(j);
  2469. <a name="l02384"></a>02384 }
  2470. <a name="l02385"></a>02385
  2471. <a name="l02386"></a>02386 appliedInertialForceDataSource[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].getData()=appliedInertialForceFunc-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[i]);
  2472. <a name="l02387"></a>02387 appliedInertialForceGradDataSource[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].getData()=appliedInertialForceGradFunc-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[i]);
  2473. <a name="l02388"></a>02388 appliedInertialForceConcavityDataSource[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].getData()=appliedInertialForceConcavityFunc-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[i]);
  2474. <a name="l02389"></a>02389 curvatureDataSource[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].getData()=curvatureFunc-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[i]);
  2475. <a name="l02390"></a>02390 curvatureGradDataSource[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].getData()=curvatureGradFunc-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[i]);
  2476. <a name="l02391"></a>02391 curvatureConcavityDataSource[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].getData()=curvatureConcavityFunc-&gt;<a class="code" href="classfunction.html#aa7e14667693615e494d0e12cb4d0a0c2">getValue</a>(cxLocations[i]);
  2477. <a name="l02392"></a>02392
  2478. <a name="l02393"></a>02393 <span class="comment">// set the datasources to the vabs modules.</span>
  2479. <a name="l02394"></a>02394 calculators[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].setStrainSource(&amp;(strainDataSource[i]));
  2480. <a name="l02395"></a>02395 calculators[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].setAppliedInertialForceSource(&amp;(appliedInertialForceDataSource[i]));
  2481. <a name="l02396"></a>02396 calculators[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].setAppliedInertialForceGradSource(&amp;(appliedInertialForceGradDataSource[i]));
  2482. <a name="l02397"></a>02397 calculators[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].setAppliedInertialForceConcavitySource(&amp;(appliedInertialForceConcavityDataSource[i]));
  2483. <a name="l02398"></a>02398 calculators[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].setCurvatureSource(&amp;(curvatureDataSource[i]));
  2484. <a name="l02399"></a>02399 calculators[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].setCurvatureGradSource(&amp;(curvatureGradDataSource[i]));
  2485. <a name="l02400"></a>02400 calculators[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].setCurvatureConcavitySource(&amp;(curvatureConcavityDataSource[i]));
  2486. <a name="l02401"></a>02401
  2487. <a name="l02402"></a>02402 <span class="comment">// Now we can perform the strain calculation</span>
  2488. <a name="l02403"></a>02403 calculators[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].solveThreeDimensionStrain();
  2489. <a name="l02404"></a>02404 }
  2490. <a name="l02405"></a>02405 }
  2491. <a name="l02406"></a>02406
  2492. <a name="l02407"></a><a class="code" href="classtimoshenkoVabsBlade.html#ac3e5389a0a0f83f5ea87ef50fcd55798">02407</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#ac3e5389a0a0f83f5ea87ef50fcd55798">setXShiftFunction</a>(<a class="code" href="classfunction.html">function&lt;dataType,dataType&gt;</a>* xShift_in)
  2493. <a name="l02408"></a>02408 {
  2494. <a name="l02409"></a>02409 xShift=xShift_in;
  2495. <a name="l02410"></a>02410 }
  2496. <a name="l02411"></a>02411
  2497. <a name="l02412"></a><a class="code" href="classtimoshenkoVabsBlade.html#acb6632d11d4595b7087ed7ee784ec690">02412</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#acb6632d11d4595b7087ed7ee784ec690">setYShiftFunction</a>(<a class="code" href="classfunction.html">function&lt;dataType,dataType&gt;</a>* yShift_in)
  2498. <a name="l02413"></a>02413 {
  2499. <a name="l02414"></a>02414 yShift=yShift_in;
  2500. <a name="l02415"></a>02415 }
  2501. <a name="l02416"></a>02416
  2502. <a name="l02417"></a><a class="code" href="classtimoshenkoVabsBlade.html#a64068fac0a90db93df1a6d2857afd240">02417</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a64068fac0a90db93df1a6d2857afd240">setChordFunction</a>(<a class="code" href="classfunction.html">function&lt;dataType,dataType&gt;</a>* chord_in)
  2503. <a name="l02418"></a>02418 {
  2504. <a name="l02419"></a>02419 chord=chord_in;
  2505. <a name="l02420"></a>02420 }
  2506. <a name="l02421"></a>02421
  2507. <a name="l02422"></a><a class="code" href="classtimoshenkoVabsBlade.html#a0cadfe7e8e2617ea11e411ecc8a40dd3">02422</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a0cadfe7e8e2617ea11e411ecc8a40dd3">setInitialCurvatureFunction</a>(<span class="keyword">function</span>&lt;<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* iCurvature_in)
  2508. <a name="l02423"></a>02423 {
  2509. <a name="l02424"></a>02424 iCurvature=iCurvature_in;
  2510. <a name="l02425"></a>02425 }
  2511. <a name="l02426"></a>02426
  2512. <a name="l02427"></a><a class="code" href="classtimoshenkoVabsBlade.html#a4d5e6482a5abee5eef6bec77dbbb4950">02427</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a4d5e6482a5abee5eef6bec77dbbb4950">setLinearStrainFunction</a>(<span class="keyword">function</span>&lt;<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* linStrainFunc_in)
  2513. <a name="l02428"></a>02428 {
  2514. <a name="l02429"></a>02429 linStrainFunc=linStrainFunc_in;
  2515. <a name="l02430"></a>02430 }
  2516. <a name="l02431"></a>02431
  2517. <a name="l02432"></a><a class="code" href="classtimoshenkoVabsBlade.html#ac9e2fb72db1e8aa58dfc95fff722f4eb">02432</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#ac9e2fb72db1e8aa58dfc95fff722f4eb">setAngularStrainFunction</a>(<span class="keyword">function</span>&lt;<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* angStrainFunc_in)
  2518. <a name="l02433"></a>02433 {
  2519. <a name="l02434"></a>02434 angStrainFunc=angStrainFunc_in;
  2520. <a name="l02435"></a>02435 }
  2521. <a name="l02436"></a>02436
  2522. <a name="l02437"></a><a class="code" href="classtimoshenkoVabsBlade.html#abbcc19687da71297303d1c1e49e76f28">02437</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#abbcc19687da71297303d1c1e49e76f28">setAppliedInertialForcesFunction</a>(<span class="keyword">function</span>&lt;<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,6&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* appliedInertialForceFunc_in)
  2523. <a name="l02438"></a>02438 {
  2524. <a name="l02439"></a>02439 appliedInertialForceFunc=appliedInertialForceFunc_in;
  2525. <a name="l02440"></a>02440 }
  2526. <a name="l02441"></a>02441
  2527. <a name="l02442"></a><a class="code" href="classtimoshenkoVabsBlade.html#aa2f5c89baa876f516a32b1143c4e6c10">02442</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#aa2f5c89baa876f516a32b1143c4e6c10">setAppliedInertialForcesGradFunction</a>(<span class="keyword">function</span>&lt;<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,6&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* appliedInertialForceGradFunc_in)
  2528. <a name="l02443"></a>02443 {
  2529. <a name="l02444"></a>02444 appliedInertialForceGradFunc=appliedInertialForceGradFunc_in;
  2530. <a name="l02445"></a>02445 }
  2531. <a name="l02446"></a>02446
  2532. <a name="l02447"></a><a class="code" href="classtimoshenkoVabsBlade.html#a7844b894215e876723d2aefc040e18aa">02447</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a7844b894215e876723d2aefc040e18aa">setAppliedInertialForcesConcavityFunction</a>(<span class="keyword">function</span>&lt;<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,6&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* appliedInertialForceConcavityFunc_in)
  2533. <a name="l02448"></a>02448 {
  2534. <a name="l02449"></a>02449 appliedInertialForceConcavityFunc=appliedInertialForceConcavityFunc_in;
  2535. <a name="l02450"></a>02450 }
  2536. <a name="l02451"></a>02451
  2537. <a name="l02452"></a><a class="code" href="classtimoshenkoVabsBlade.html#a298d290eb4945f4811f548030a8c71b2">02452</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a298d290eb4945f4811f548030a8c71b2">setCurvatureFunction</a>(<span class="keyword">function</span>&lt;<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* curvatureFunc_in)
  2538. <a name="l02453"></a>02453 {
  2539. <a name="l02454"></a>02454 curvatureFunc=curvatureFunc_in;
  2540. <a name="l02455"></a>02455 }
  2541. <a name="l02456"></a>02456
  2542. <a name="l02457"></a><a class="code" href="classtimoshenkoVabsBlade.html#a58b07ec0f76359b6d4e640dd6e3f7d5a">02457</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a58b07ec0f76359b6d4e640dd6e3f7d5a">setCurvatureGradFunction</a>(<span class="keyword">function</span>&lt;<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* curvatureGradFunc_in)
  2543. <a name="l02458"></a>02458 {
  2544. <a name="l02459"></a>02459 curvatureGradFunc=curvatureGradFunc_in;
  2545. <a name="l02460"></a>02460 }
  2546. <a name="l02461"></a>02461
  2547. <a name="l02462"></a><a class="code" href="classtimoshenkoVabsBlade.html#a42498805d2835655756102613b0e5608">02462</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a42498805d2835655756102613b0e5608">setCurvatureConcavityFunction</a>(<span class="keyword">function</span>&lt;<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,3&gt;</a>,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&gt;* curvatureConcavityFunc_in)
  2548. <a name="l02463"></a>02463 {
  2549. <a name="l02464"></a>02464 curvatureConcavityFunc=curvatureConcavityFunc_in;
  2550. <a name="l02465"></a>02465 }
  2551. <a name="l02466"></a>02466
  2552. <a name="l02467"></a><a class="code" href="classtimoshenkoVabsBlade.html#aeec00a9704a4baf14e271d2e85584eac">02467</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#aeec00a9704a4baf14e271d2e85584eac">addProfiles</a>(<a class="code" href="classprofileFamily.html">profileFamily&lt;dataType&gt;</a>* profiles_in,<span class="keywordtype">bool</span> deleteProfiles_in=<span class="keyword">false</span>)
  2553. <a name="l02468"></a>02468 {
  2554. <a name="l02469"></a>02469 profiles.setProfileSource(profiles_in,deleteProfiles_in);
  2555. <a name="l02470"></a>02470 }
  2556. <a name="l02471"></a>02471
  2557. <a name="l02472"></a><a class="code" href="classtimoshenkoVabsBlade.html#a389ce2beedefb501572058a8316b9cb4">02472</a> <span class="keywordtype">void</span> <a class="code" href="classtimoshenkoVabsBlade.html#a389ce2beedefb501572058a8316b9cb4">addProfileBlend</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> location,std::vector&lt;dataType&gt;&amp; blend)
  2558. <a name="l02473"></a>02473 {
  2559. <a name="l02474"></a>02474 <span class="keywordflow">if</span>(at&gt;=prflLocations.size())
  2560. <a name="l02475"></a>02475 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;timoshenkoVabsBlade&lt;dataType&gt;::addProfileBlend(): The blend does not exist&quot;</span>);
  2561. <a name="l02476"></a>02476 prflLocations[at]=location;
  2562. <a name="l02477"></a>02477 definedProfileBlend[at]=blend;
  2563. <a name="l02478"></a>02478 }
  2564. <a name="l02479"></a>02479
  2565. <a name="l02480"></a><a class="code" href="classtimoshenkoVabsBlade.html#a87964ad4c59acd1cb4ff28c508216c2e">02480</a> <a class="code" href="classtimoshenkoVabsBlade.html">timoshenkoVabsBlade&lt;dataType&gt;</a>&amp; <a class="code" href="classtimoshenkoVabsBlade.html#a87964ad4c59acd1cb4ff28c508216c2e">setPrintLevel</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> printLevel_in)
  2566. <a name="l02481"></a>02481 {
  2567. <a name="l02482"></a>02482 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>=0;<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>&lt;calculators.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  2568. <a name="l02483"></a>02483 calculators[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>].<a class="code" href="classtimoshenkoVabsBlade.html#a87964ad4c59acd1cb4ff28c508216c2e">setPrintLevel</a>(printLevel_in);
  2569. <a name="l02484"></a>02484 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  2570. <a name="l02485"></a>02485 }
  2571. <a name="l02486"></a>02486 };
  2572. <a name="l02487"></a>02487
  2573. <a name="l02488"></a>02488 <span class="comment">//============================================</span>
  2574. <a name="l02489"></a>02489 <span class="comment">// Notes on what needs to be done December 5th</span>
  2575. <a name="l02490"></a>02490 <span class="comment">//============================================</span>
  2576. <a name="l02491"></a>02491 <span class="comment">// </span>
  2577. <a name="l02492"></a>02492 <span class="comment">// DONE 1) Create a method to give all airfoil profiles a common topology</span>
  2578. <a name="l02493"></a>02493 <span class="comment">// DONE 2) Create a class the interpolates these blended airfoils along the blade</span>
  2579. <a name="l02494"></a>02494 <span class="comment">// REDUNDANT crossSectionGeom does this 3) Create a class the generates a mesh at a location</span>
  2580. <a name="l02495"></a>02495
  2581. <a name="l02496"></a>02496 <span class="comment">// 4) Create the box-spar cross section object</span>
  2582. <a name="l02497"></a>02497 <span class="comment">// Copied the iBeam base model and created some of the methods</span>
  2583. <a name="l02498"></a>02498 <span class="comment">// This needs to be checked to see if it works</span>
  2584. <a name="l02499"></a>02499 <span class="comment">// 5) Create the sectionedBox object</span>
  2585. <a name="l02500"></a>02500 <span class="comment">// Only the constituitive model needs to be adjusted to handle different failure models according to the h_over_H parameters</span>
  2586. <a name="l02501"></a>02501 <span class="comment">// 6) create the common slab object</span>
  2587. <a name="l02502"></a>02502 <span class="comment">// this is a translation</span>
  2588. <a name="l02503"></a>02503 <span class="comment">// 7) Create the second vabs model object</span>
  2589. <a name="l02504"></a>02504 <span class="comment">// mostly done</span>
  2590. <a name="l02505"></a>02505 <span class="comment">// 8) Create the timoshenko vabs object</span>
  2591. <a name="l02506"></a>02506 <span class="comment">// mostly done</span>
  2592. <a name="l02507"></a>02507 <span class="comment">// 9) Create the timoshenko stress recovery methods</span>
  2593. <a name="l02508"></a>02508
  2594. <a name="l02509"></a>02509 <span class="comment">// 10) Create the instantiated cxBlade object</span>
  2595. <a name="l02510"></a>02510 <span class="comment">// in progress</span>
  2596. <a name="l02511"></a>02511
  2597. <a name="l02512"></a>02512 <span class="comment">//============================================</span>
  2598. <a name="l02513"></a>02513 <span class="comment">// Notes on what needs to be done December 6th</span>
  2599. <a name="l02514"></a>02514 <span class="comment">//============================================</span>
  2600. <a name="l02515"></a>02515
  2601. <a name="l02516"></a>02516 <span class="comment">// - Need to confirm that the crossSectionGeom_boxSpar works properly...</span>
  2602. <a name="l02517"></a>02517 <span class="comment">// DONE Need to link the mesh data structure to the cxModel data structure...</span>
  2603. <a name="l02518"></a>02518 <span class="comment">// DONE Fill in the methods for timoshenkoVabsBlade</span>
  2604. <a name="l02519"></a>02519 <span class="comment">// DONE write the stress recovery relationships for the timoshenko model</span>
  2605. <a name="l02520"></a>02520 <span class="comment">// - create the parameterization translation scheme ie: go from dataType* to cxDesign variables</span>
  2606. <a name="l02521"></a>02521 <span class="comment">// DONE create the spline version</span>
  2607. <a name="l02522"></a>02522 <span class="comment">// - create the slab version</span>
  2608. <a name="l02523"></a>02523 <span class="comment">// DONE make the failure model vary with h_over_H</span>
  2609. <a name="l02524"></a>02524
  2610. <a name="l02525"></a>02525 <span class="preprocessor">#endif</span>
  2611. </pre></div></div>
  2612. </div>
  2613. <div id="nav-path" class="navpath">
  2614. <ul>
  2615. <li class="navelem"><a class="el" href="crossSection_8cpp.html">crossSection.cpp</a> </li>
  2616. <!-- window showing the filter options -->
  2617. <div id="MSearchSelectWindow"
  2618. onmouseover="return searchBox.OnSearchSelectShow()"
  2619. onmouseout="return searchBox.OnSearchSelectHide()"
  2620. onkeydown="return searchBox.OnSearchSelectKey(event)">
  2621. <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>
  2622. <!-- iframe showing the search results (closed by default) -->
  2623. <div id="MSearchResultsWindow">
  2624. <iframe src="javascript:void(0)" frameborder="0"
  2625. name="MSearchResults" id="MSearchResults">
  2626. </iframe>
  2627. </div>
  2628. <li class="footer">Generated by
  2629. <a href="http://www.doxygen.org/index.html">
  2630. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
  2631. </ul>
  2632. </div>
  2633. </body>
  2634. </html>