PageRenderTime 63ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 2ms

/doc/html/reusedCode_8cpp_source.html

https://bitbucket.org/slawton/windturbinemdo-stevebitb
HTML | 3481 lines | 3468 code | 12 blank | 1 comment | 0 complexity | 2b6cc323322afdd2e62c85826e5d5972 MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause

Large files files are truncated, but you can click here to view the full file

  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/reusedCode.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('reusedCode_8cpp.html','');
  81. </script>
  82. <div id="doc-content">
  83. <div class="header">
  84. <div class="headertitle">
  85. <div class="title">structural/crossSection/reusedCode.cpp</div> </div>
  86. </div>
  87. <div class="contents">
  88. <a href="reusedCode_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 REUSED_CODE_CPP</span>
  90. <a name="l00003"></a><a class="code" href="reusedCode_8cpp.html#aa662de6a2e16012dcd04db5c3318aaf6">00003</a> <span class="preprocessor"></span><span class="preprocessor">#define REUSED_CODE_CPP</span>
  91. <a name="l00004"></a>00004 <span class="preprocessor"></span>
  92. <a name="l00005"></a>00005 <span class="comment">//################################################</span>
  93. <a name="l00006"></a>00006 <span class="comment">//################################################</span>
  94. <a name="l00007"></a>00007 <span class="comment">//################################################</span>
  95. <a name="l00008"></a>00008 <span class="comment">//################################################</span>
  96. <a name="l00009"></a>00009 <span class="comment">//################################################</span>
  97. <a name="l00010"></a>00010 <span class="comment">//################################################</span>
  98. <a name="l00011"></a>00011 <span class="comment">//################################################</span>
  99. <a name="l00012"></a>00012 <span class="comment">//################################################</span>
  100. <a name="l00013"></a>00013 <span class="comment">//################################################</span>
  101. <a name="l00014"></a>00014 <span class="comment">//################################################</span>
  102. <a name="l00015"></a>00015 <span class="comment">//################################################</span>
  103. <a name="l00016"></a>00016 <span class="comment">//################################################</span>
  104. <a name="l00017"></a>00017 <span class="comment">//################################################</span>
  105. <a name="l00018"></a>00018 <span class="comment">//################################################</span>
  106. <a name="l00019"></a>00019 <span class="comment">//################################################</span>
  107. <a name="l00020"></a>00020 <span class="comment">//################################################</span>
  108. <a name="l00021"></a>00021 <span class="comment">//################################################</span>
  109. <a name="l00022"></a>00022 <span class="comment">//################################################</span>
  110. <a name="l00023"></a>00023 <span class="comment">//################################################</span>
  111. <a name="l00024"></a>00024 <span class="comment">//################################################</span>
  112. <a name="l00025"></a>00025 <span class="comment">//################################################</span>
  113. <a name="l00026"></a>00026 <span class="comment">//################################################</span>
  114. <a name="l00027"></a>00027 <span class="comment">//################################################</span>
  115. <a name="l00028"></a>00028 <span class="comment">//################################################</span>
  116. <a name="l00029"></a>00029 <span class="comment">//################################################</span>
  117. <a name="l00030"></a>00030 <span class="comment">//################################################</span>
  118. <a name="l00031"></a>00031 <span class="comment">//################################################</span>
  119. <a name="l00032"></a>00032 <span class="comment">//################################################</span>
  120. <a name="l00033"></a>00033 <span class="comment">//################################################</span>
  121. <a name="l00034"></a>00034 <span class="comment">//################################################</span>
  122. <a name="l00035"></a>00035 <span class="comment">//################################################</span>
  123. <a name="l00036"></a>00036 <span class="comment">//################################################</span>
  124. <a name="l00037"></a>00037 <span class="comment">//################################################</span>
  125. <a name="l00038"></a>00038 <span class="comment">//</span>
  126. <a name="l00039"></a>00039 <span class="comment">// This is the material specific code</span>
  127. <a name="l00040"></a>00040 <span class="comment">//</span>
  128. <a name="l00041"></a>00041 <span class="comment">//################################################</span>
  129. <a name="l00042"></a>00042 <span class="comment">//################################################</span>
  130. <a name="l00043"></a>00043 <span class="comment">//################################################</span>
  131. <a name="l00044"></a>00044 <span class="comment">//################################################</span>
  132. <a name="l00045"></a>00045 <span class="comment">//################################################</span>
  133. <a name="l00046"></a>00046 <span class="comment">//################################################</span>
  134. <a name="l00047"></a>00047 <span class="comment">//################################################</span>
  135. <a name="l00048"></a>00048 <span class="comment">//################################################</span>
  136. <a name="l00049"></a>00049 <span class="comment">//################################################</span>
  137. <a name="l00050"></a>00050 <span class="comment">//################################################</span>
  138. <a name="l00051"></a>00051 <span class="comment">//################################################</span>
  139. <a name="l00052"></a>00052 <span class="comment">//################################################</span>
  140. <a name="l00053"></a>00053 <span class="comment">//################################################</span>
  141. <a name="l00054"></a>00054 <span class="comment">//################################################</span>
  142. <a name="l00055"></a>00055 <span class="comment">//################################################</span>
  143. <a name="l00056"></a>00056 <span class="comment">//################################################</span>
  144. <a name="l00057"></a>00057 <span class="comment">//################################################</span>
  145. <a name="l00058"></a>00058 <span class="comment">//################################################</span>
  146. <a name="l00059"></a>00059 <span class="comment">//################################################</span>
  147. <a name="l00060"></a>00060 <span class="comment">//################################################</span>
  148. <a name="l00061"></a>00061 <span class="comment">//################################################</span>
  149. <a name="l00062"></a>00062 <span class="comment">//################################################</span>
  150. <a name="l00063"></a>00063 <span class="comment">//################################################</span>
  151. <a name="l00064"></a>00064 <span class="comment">//################################################</span>
  152. <a name="l00065"></a>00065 <span class="comment">//################################################</span>
  153. <a name="l00066"></a>00066 <span class="comment">//################################################</span>
  154. <a name="l00067"></a>00067 <span class="comment">//################################################</span>
  155. <a name="l00068"></a>00068 <span class="comment">//################################################</span>
  156. <a name="l00069"></a>00069 <span class="comment">//################################################</span>
  157. <a name="l00070"></a>00070 <span class="comment">//################################################</span>
  158. <a name="l00071"></a>00071 <span class="comment">//################################################</span>
  159. <a name="l00072"></a>00072 <span class="comment">//################################################</span>
  160. <a name="l00073"></a>00073
  161. <a name="l00074"></a>00074 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  162. <a name="l00075"></a><a class="code" href="classfailureModel.html">00075</a> <span class="keyword">class </span><a class="code" href="classfailureModel.html">failureModel</a>
  163. <a name="l00076"></a>00076 {
  164. <a name="l00077"></a>00077 <span class="keyword">public</span>:
  165. <a name="l00078"></a>00078
  166. <a name="l00079"></a><a class="code" href="classfailureModel.html#a41dcb147a6e43ebfe99548ec574f752a">00079</a> <span class="keyword">virtual</span> <a class="code" href="classfailureModel.html#a41dcb147a6e43ebfe99548ec574f752a">~failureModel</a>()
  167. <a name="l00080"></a>00080 {}
  168. <a name="l00081"></a>00081
  169. <a name="l00082"></a>00082 <span class="keyword">virtual</span> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classfailureModel.html#ae456a98280d2bc71d637a30f3cc9f418">failure</a>(<span class="keyword">const</span> <a class="code" href="classmatrixStaticVectCol.html">matrixStaticVectCol&lt;dataType,6&gt;</a>&amp; stress,<span class="keyword">const</span> <a class="code" href="classmatrixStaticVectCol.html">matrixStaticVectCol&lt;dataType,6&gt;</a>&amp; strain) <span class="keyword">const</span> =0;
  170. <a name="l00083"></a>00083 };
  171. <a name="l00084"></a>00084
  172. <a name="l00085"></a>00085 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  173. <a name="l00086"></a><a class="code" href="classfailureModel__TsaiWu.html">00086</a> <span class="keyword">class </span><a class="code" href="classfailureModel__TsaiWu.html">failureModel_TsaiWu</a> : <span class="keyword">public</span> <a class="code" href="classfailureModel.html">failureModel</a>&lt;dataType&gt;
  174. <a name="l00087"></a>00087 {
  175. <a name="l00088"></a>00088 <span class="keyword">private</span>:
  176. <a name="l00089"></a>00089
  177. <a name="l00090"></a>00090 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> F1;
  178. <a name="l00091"></a>00091 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> F11;
  179. <a name="l00092"></a>00092 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> F2;
  180. <a name="l00093"></a>00093 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> F22;
  181. <a name="l00094"></a>00094 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> F66;
  182. <a name="l00095"></a>00095
  183. <a name="l00096"></a>00096 <span class="keyword">public</span>:
  184. <a name="l00097"></a>00097
  185. <a name="l00098"></a><a class="code" href="classfailureModel__TsaiWu.html#a98a0191c57dbee31de04045b99695538">00098</a> <a class="code" href="classfailureModel__TsaiWu.html#a98a0191c57dbee31de04045b99695538">failureModel_TsaiWu</a>() : F1(0.0) , F11(0.0) , F2(0.0) , F22(0.0) , F66(0.0)
  186. <a name="l00099"></a>00099 {}
  187. <a name="l00100"></a>00100
  188. <a name="l00101"></a><a class="code" href="classfailureModel__TsaiWu.html#af6612e72f3a89778775129da2205882b">00101</a> <span class="keyword">virtual</span> <a class="code" href="classfailureModel__TsaiWu.html#af6612e72f3a89778775129da2205882b">~failureModel_TsaiWu</a>()
  189. <a name="l00102"></a>00102 {}
  190. <a name="l00103"></a>00103
  191. <a name="l00104"></a><a class="code" href="classfailureModel__TsaiWu.html#aa9fa5c3381216aafaf299e11befa66c5">00104</a> <a class="code" href="classfailureModel__TsaiWu.html#a98a0191c57dbee31de04045b99695538">failureModel_TsaiWu</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> fiberTension,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> fiberCompression,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transTension,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transCompression,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> shear) : F1(0.0) , F11(0.0) , F2(0.0) , F22(0.0) , F66(0.0)
  192. <a name="l00105"></a>00105 {
  193. <a name="l00106"></a>00106 <span class="keywordflow">if</span>(fiberTension&lt;=0.0 || fiberCompression&lt;=0.0 || transTension&lt;=0.0 || transCompression&lt;=0.0 || shear&lt;=0.0)
  194. <a name="l00107"></a>00107 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;failureModel_TsaiWu::setConstants(): Cannot accept zero or negative strength&quot;</span>);
  195. <a name="l00108"></a>00108 F1=(1.0/fiberTension)+(1.0/fiberCompression);
  196. <a name="l00109"></a>00109 F11=-1.0/(fiberTension*fiberCompression);
  197. <a name="l00110"></a>00110 F2=(1.0/transTension)+(1.0/transCompression);
  198. <a name="l00111"></a>00111 F22=-1.0/(transTension*transCompression);
  199. <a name="l00112"></a>00112 F66=1.0/pow(shear,2.0);
  200. <a name="l00113"></a>00113 }
  201. <a name="l00114"></a>00114
  202. <a name="l00115"></a><a class="code" href="classfailureModel__TsaiWu.html#a0e41cc8412b40bcf49d6977659a3a8ba">00115</a> <a class="code" href="classfailureModel__TsaiWu.html">failureModel_TsaiWu</a>&amp; <a class="code" href="classfailureModel__TsaiWu.html#a0e41cc8412b40bcf49d6977659a3a8ba">setConstants</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> fiberTension,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> fiberCompression,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transTension,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transCompression,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> shear)
  203. <a name="l00116"></a>00116 {
  204. <a name="l00117"></a>00117 <span class="keywordflow">if</span>(fiberTension&lt;=0.0 || fiberCompression&lt;=0.0 || transTension&lt;=0.0 || transCompression&lt;=0.0 || shear&lt;=0.0)
  205. <a name="l00118"></a>00118 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;failureModel_TsaiWu::setConstants(): Cannot accept zero or negative strength&quot;</span>);
  206. <a name="l00119"></a>00119 F1=(1.0/fiberTension)+(1.0/fiberCompression);
  207. <a name="l00120"></a>00120 F11=-1.0/(fiberTension*fiberCompression);
  208. <a name="l00121"></a>00121 F2=(1.0/transTension)+(1.0/transCompression);
  209. <a name="l00122"></a>00122 F22=-1.0/(transTension*transCompression);
  210. <a name="l00123"></a>00123 F66=1.0/pow(shear,2.0);
  211. <a name="l00124"></a>00124
  212. <a name="l00125"></a>00125 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  213. <a name="l00126"></a>00126 }
  214. <a name="l00127"></a>00127
  215. <a name="l00128"></a><a class="code" href="classfailureModel__TsaiWu.html#a87125134e10450413b0d146c9b97266b">00128</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classfailureModel__TsaiWu.html#a87125134e10450413b0d146c9b97266b">failure</a>(<span class="keyword">const</span> <a class="code" href="classmatrixStaticVectCol.html">matrixStaticVectCol&lt;dataType,6&gt;</a>&amp; stress,<span class="keyword">const</span> <a class="code" href="classmatrixStaticVectCol.html">matrixStaticVectCol&lt;dataType,6&gt;</a>&amp; strain)<span class="keyword"> const</span>
  216. <a name="l00129"></a>00129 <span class="keyword"> </span>{
  217. <a name="l00130"></a>00130 <span class="comment">// retrieve all the stress components</span>
  218. <a name="l00131"></a>00131 <span class="keyword">const</span> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&amp; sigma1=stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(0);
  219. <a name="l00132"></a>00132 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> sigma2=((stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(1)+stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(2))/2.0)+sqrt(pow((stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(1)-stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(2))/2.0,2.0)+pow(stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(5),2.0));
  220. <a name="l00133"></a>00133 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> sigma3=((stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(1)+stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(2))/2.0)-sqrt(pow((stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(1)-stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(2))/2.0,2.0)+pow(stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(5),2.0));
  221. <a name="l00134"></a>00134 <span class="keyword">const</span> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&amp; tau12=stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(3);
  222. <a name="l00135"></a>00135 <span class="keyword">const</span> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&amp; tau13=stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(4);
  223. <a name="l00136"></a>00136
  224. <a name="l00137"></a>00137 <span class="comment">// calculate the failure parameter</span>
  225. <a name="l00138"></a>00138 <span class="keywordflow">return</span> F1*sigma1+F2*sigma2+F2*sigma3+F11*pow(sigma1,2.0)+F22*pow(sigma2,2.0)+F22*pow(sigma3,2.0)+F66*tau12+F66*tau13-sqrt(F11*F22)*sigma1*sigma2-sqrt(F11*F22)*sigma1*sigma3;
  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="classfailureModel__TsaiHill.html">00143</a> <span class="keyword">class </span><a class="code" href="classfailureModel__TsaiHill.html">failureModel_TsaiHill</a> : <span class="keyword">public</span> <a class="code" href="classfailureModel.html">failureModel</a>&lt;dataType&gt;
  231. <a name="l00144"></a>00144 {
  232. <a name="l00145"></a>00145 <span class="keyword">private</span>:
  233. <a name="l00146"></a>00146
  234. <a name="l00147"></a>00147 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> fiberTensionFail;
  235. <a name="l00148"></a>00148 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> fiberCompressionFail;
  236. <a name="l00149"></a>00149 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transTensionFail;
  237. <a name="l00150"></a>00150 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transCompressionFail;
  238. <a name="l00151"></a>00151 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> shearFail;
  239. <a name="l00152"></a>00152 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transShearFail;
  240. <a name="l00153"></a>00153
  241. <a name="l00154"></a>00154 <span class="keyword">public</span>:
  242. <a name="l00155"></a>00155
  243. <a name="l00156"></a><a class="code" href="classfailureModel__TsaiHill.html#a9944ef9db63eae666b52a4198bed8928">00156</a> <a class="code" href="classfailureModel__TsaiHill.html#a9944ef9db63eae666b52a4198bed8928">failureModel_TsaiHill</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> fiberTensionFail_in=392.0e6,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> fiberCompressionFail_in=235.0e6,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transTensionFail_in=11.0e6,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transCompressionFail_in=48.0e6,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> shearFail_in=19.0e6,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transShearFail_in=7.0e6) : fiberTensionFail(fiberTensionFail_in) , fiberCompressionFail(fiberCompressionFail_in) , transTensionFail(transTensionFail_in) , transCompressionFail(transCompressionFail_in) , shearFail(shearFail_in) , transShearFail(transShearFail_in)
  244. <a name="l00157"></a>00157 {}
  245. <a name="l00158"></a>00158
  246. <a name="l00159"></a><a class="code" href="classfailureModel__TsaiHill.html#ab27e2adc32ae2fcf15d4c5a31e0e1b81">00159</a> <span class="keyword">virtual</span> <a class="code" href="classfailureModel__TsaiHill.html#ab27e2adc32ae2fcf15d4c5a31e0e1b81">~failureModel_TsaiHill</a>()
  247. <a name="l00160"></a>00160 {}
  248. <a name="l00161"></a>00161
  249. <a name="l00162"></a><a class="code" href="classfailureModel__TsaiHill.html#ae2530e122aa3b3547d3b86fdff8db1db">00162</a> <a class="code" href="classfailureModel__TsaiHill.html">failureModel_TsaiHill</a>&amp; <a class="code" href="classfailureModel__TsaiHill.html#ae2530e122aa3b3547d3b86fdff8db1db">setConstants</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> fiberTensionFail_in=392.0e6,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> fiberCompressionFail_in=235.0e6,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transTensionFail_in=11.0e6,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transCompressionFail_in=48.0e6,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> shearFail_in=19.0e6,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> transShearFail_in=7.0e6)
  250. <a name="l00163"></a>00163 {
  251. <a name="l00164"></a>00164
  252. <a name="l00165"></a>00165 fiberTensionFail=fiberTensionFail_in;
  253. <a name="l00166"></a>00166 fiberCompressionFail=fiberCompressionFail_in;
  254. <a name="l00167"></a>00167 transTensionFail=transTensionFail_in;
  255. <a name="l00168"></a>00168 transCompressionFail=transCompressionFail_in;
  256. <a name="l00169"></a>00169 shearFail=shearFail_in;
  257. <a name="l00170"></a>00170 transShearFail=transShearFail_in;
  258. <a name="l00171"></a>00171
  259. <a name="l00172"></a>00172 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  260. <a name="l00173"></a>00173 }
  261. <a name="l00174"></a>00174
  262. <a name="l00175"></a><a class="code" href="classfailureModel__TsaiHill.html#abc15f12959f9f7c6c98d5b492192d02f">00175</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classfailureModel__TsaiHill.html#abc15f12959f9f7c6c98d5b492192d02f">failure</a>(<span class="keyword">const</span> <a class="code" href="classmatrixStaticVectCol.html">matrixStaticVectCol&lt;dataType,6&gt;</a>&amp; stress,<span class="keyword">const</span> <a class="code" href="classmatrixStaticVectCol.html">matrixStaticVectCol&lt;dataType,6&gt;</a>&amp; strain)<span class="keyword"> const</span>
  263. <a name="l00176"></a>00176 <span class="keyword"> </span>{
  264. <a name="l00177"></a>00177 <span class="comment">// retrieve all the stress components</span>
  265. <a name="l00178"></a>00178 <span class="keyword">const</span> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&amp; sigma_1=stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(0);
  266. <a name="l00179"></a>00179 <span class="keyword">const</span> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&amp; sigma_2=stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(1);
  267. <a name="l00180"></a>00180 <span class="keyword">const</span> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&amp; sigma_3=stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(2);
  268. <a name="l00181"></a>00181 <span class="keyword">const</span> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&amp; tau_12=stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(3);
  269. <a name="l00182"></a>00182 <span class="keyword">const</span> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&amp; tau_13=stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(4);
  270. <a name="l00183"></a>00183 <span class="keyword">const</span> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>&amp; tau_23=stress.<a class="code" href="classmatrixVect.html#adb2ffeb4b912280fe62e0d0b46189eca">entry</a>(5);
  271. <a name="l00184"></a>00184
  272. <a name="l00185"></a>00185 <span class="comment">// calculate the failure parameter</span>
  273. <a name="l00186"></a>00186 <span class="keywordflow">return</span> pow(sigma_1/fiberTensionFail,2.0)+pow(sigma_2/transTensionFail,2.0)+pow(sigma_3/transTensionFail,2.0)+pow(tau_12/shearFail,2.0)+pow(tau_13/shearFail,2.0)+pow(tau_23/transShearFail,2.0)-sigma_1*sigma_2*(1.0/pow(fiberTensionFail,2.0)+1.0/pow(transTensionFail,2.0)-1.0/pow(transTensionFail,2.0))-sigma_1*sigma_3*(1.0/pow(fiberTensionFail,2.0)-1.0/pow(transTensionFail,2.0)+1.0/pow(transTensionFail,2.0))-sigma_2*sigma_3*(-1.0/pow(fiberTensionFail,2.0)+1.0/pow(transTensionFail,2.0)+1.0/pow(transTensionFail,2.0));
  274. <a name="l00187"></a>00187 }
  275. <a name="l00188"></a>00188 };
  276. <a name="l00189"></a>00189
  277. <a name="l00190"></a>00190 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  278. <a name="l00191"></a><a class="code" href="classconstituitiveDependent.html">00191</a> <span class="keyword">class </span><a class="code" href="classconstituitiveDependent.html">constituitiveDependent</a>
  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="classconstituitiveDependent.html#a457a890b5a5b3edf0db05ae0032bf334">00195</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classconstituitiveDependent.html#a457a890b5a5b3edf0db05ae0032bf334">plyAngle</a>;
  283. <a name="l00196"></a><a class="code" href="classconstituitiveDependent.html#a11b4deb9fc9358d1d1381c7b0308631e">00196</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classconstituitiveDependent.html#a11b4deb9fc9358d1d1381c7b0308631e">h_over_H</a>;
  284. <a name="l00197"></a>00197
  285. <a name="l00198"></a><a class="code" href="classconstituitiveDependent.html#a8452b21b32237ae9dd16bdc2e48d4e09">00198</a> <a class="code" href="classconstituitiveDependent.html#a8452b21b32237ae9dd16bdc2e48d4e09">constituitiveDependent</a>(<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> plyAngle_in=0.0,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> h_over_H_in=0.5) : <a class="code" href="classconstituitiveDependent.html#a457a890b5a5b3edf0db05ae0032bf334">plyAngle</a>(plyAngle_in) , <a class="code" href="classconstituitiveDependent.html#a11b4deb9fc9358d1d1381c7b0308631e">h_over_H</a>(h_over_H_in)
  286. <a name="l00199"></a>00199 {}
  287. <a name="l00200"></a>00200 };
  288. <a name="l00201"></a>00201
  289. <a name="l00202"></a>00202 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  290. <a name="l00203"></a><a class="code" href="classconstituitive.html">00203</a> <span class="keyword">class </span><a class="code" href="classconstituitive.html">constituitive</a>
  291. <a name="l00204"></a>00204 {
  292. <a name="l00205"></a>00205 <span class="keyword">protected</span>:
  293. <a name="l00206"></a>00206
  294. <a name="l00207"></a>00207 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classconstituitive.html#a8ee9fe515bc65407217961fc936f26d8">getLocalStressStrain</a>(<span class="keyword">const</span> <a class="code" href="classmatrixStaticVectCol.html">matrixStaticVectCol&lt;dataType,6&gt;</a>&amp; strain,<a class="code" href="classconstituitiveDependent.html">constituitiveDependent&lt;dataType&gt;</a> constDep,<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,6&gt;</a>&amp; stress_out,<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,6&gt;</a>&amp; strain_out) <span class="keyword">const</span>;
  295. <a name="l00208"></a>00208
  296. <a name="l00209"></a>00209 <span class="keyword">public</span>:
  297. <a name="l00210"></a>00210
  298. <a name="l00211"></a>00211 <span class="keyword">virtual</span> <a class="code" href="classmatrixRdWtStaticSqr__Data.html">matrixRdWtStaticSqr_Data&lt;dataType,6&gt;</a> <a class="code" href="classconstituitive.html#a6f5f22f292bfb035afa32adc7ab89a86">matlMatrix</a>(<a class="code" href="classconstituitiveDependent.html">constituitiveDependent&lt;dataType&gt;</a> constDep=<a class="code" href="classconstituitiveDependent.html">constituitiveDependent&lt;dataType&gt;</a>()) <span class="keyword">const</span>=0;
  299. <a name="l00212"></a>00212 <span class="keyword">virtual</span> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classconstituitive.html#a8c7be079f598c80923e2f27dc8083b36">failure</a>(<span class="keyword">const</span> <a class="code" href="classmatrixStaticVectCol.html">matrixStaticVectCol&lt;dataType,6&gt;</a>&amp; strain,<a class="code" href="classconstituitiveDependent.html">constituitiveDependent&lt;dataType&gt;</a> constDep=<a class="code" href="classconstituitiveDependent.html">constituitiveDependent&lt;dataType&gt;</a>()) <span class="keyword">const</span>=0;
  300. <a name="l00213"></a>00213 };
  301. <a name="l00214"></a>00214
  302. <a name="l00215"></a>00215 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  303. <a name="l00216"></a><a class="code" href="classconstituitive.html#a8ee9fe515bc65407217961fc936f26d8">00216</a> <span class="keywordtype">void</span> <a class="code" href="classconstituitive.html#a8ee9fe515bc65407217961fc936f26d8">constituitive&lt;dataType&gt;::getLocalStressStrain</a>(<span class="keyword">const</span> <a class="code" href="classmatrixStaticVectCol.html">matrixStaticVectCol&lt;dataType,6&gt;</a>&amp; strain,<a class="code" href="classconstituitiveDependent.html">constituitiveDependent&lt;dataType&gt;</a> constDep,<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,6&gt;</a>&amp; stress_out,<a class="code" href="classmatrixRdWtStaticVectCol__Data.html">matrixRdWtStaticVectCol_Data&lt;dataType,6&gt;</a>&amp; strain_out)<span class="keyword"> const</span>
  304. <a name="l00217"></a>00217 <span class="keyword"></span>{
  305. <a name="l00218"></a>00218 strain_out=strain;
  306. <a name="l00219"></a>00219 stress_out=this-&gt;matlMatrix(constDep);
  307. <a name="l00220"></a>00220 }
  308. <a name="l00221"></a>00221
  309. <a name="l00222"></a>00222 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  310. <a name="l00223"></a><a class="code" href="classconstituitive__laminate.html">00223</a> <span class="keyword">class </span><a class="code" href="classconstituitive__laminate.html">constituitive_laminate</a>
  311. <a name="l00224"></a>00224 : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="classconstituitive.html">constituitive</a>&lt;dataType&gt;
  312. <a name="l00225"></a>00225 {
  313. <a name="l00226"></a>00226 <span class="keyword">private</span>:
  314. <a name="l00227"></a>00227
  315. <a name="l00228"></a>00228 std::vector&lt;constituitive&lt;dataType&gt;*&gt; matls;
  316. <a name="l00229"></a>00229 std::vector&lt;dataType&gt; h_over_H;
  317. <a name="l00230"></a>00230 std::vector&lt;bool&gt; deleteMatl;
  318. <a name="l00231"></a>00231
  319. <a name="l00232"></a>00232 <span class="keywordtype">void</span> getLaminate(<a class="code" href="classconstituitiveDependent.html">constituitiveDependent&lt;dataType&gt;</a>&amp; constDep,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>&amp; atMatl)
  320. <a name="l00233"></a>00233 {
  321. <a name="l00234"></a>00234 atMatl=0;
  322. <a name="l00235"></a>00235 <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> atH=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0);
  323. <a name="l00236"></a>00236
  324. <a name="l00237"></a>00237 <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;h_over_H.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  325. <a name="l00238"></a>00238 atH+=h_over_H[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  326. <a name="l00239"></a>00239 <span class="keywordflow">if</span>(atH!=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0))
  327. <a name="l00240"></a>00240 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;constituitive_laminate::getLaminate(): Laminate is not fully poluated&quot;</span>);
  328. <a name="l00241"></a>00241 <span class="keywordflow">if</span>(constDep.<a class="code" href="classconstituitiveDependent.html#a11b4deb9fc9358d1d1381c7b0308631e">h_over_H</a>&lt;<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0) || constDep.<a class="code" href="classconstituitiveDependent.html#a11b4deb9fc9358d1d1381c7b0308631e">h_over_H</a>&gt;<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(1.0))
  329. <a name="l00242"></a>00242 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;constituitive_laminate::getLaminate(): Invalid Location&quot;</span>);
  330. <a name="l00243"></a>00243
  331. <a name="l00244"></a>00244 atH=<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a>(0.0);
  332. <a name="l00245"></a>00245 <span class="keywordflow">while</span>(constDep.<a class="code" href="classconstituitiveDependent.html#a11b4deb9fc9358d1d1381c7b0308631e">h_over_H</a>&gt;atH+h_over_H[atMatl])
  333. <a name="l00246"></a>00246 {
  334. <a name="l00247"></a>00247 atH+=h_over_H[atMatl];
  335. <a name="l00248"></a>00248 atMatl++;
  336. <a name="l00249"></a>00249 }
  337. <a name="l00250"></a>00250 constDep.<a class="code" href="classconstituitiveDependent.html#a11b4deb9fc9358d1d1381c7b0308631e">h_over_H</a>=(constDep.<a class="code" href="classconstituitiveDependent.html#a11b4deb9fc9358d1d1381c7b0308631e">h_over_H</a>-atH)/h_over_H[atMatl];
  338. <a name="l00251"></a>00251
  339. <a name="l00252"></a>00252 }
  340. <a name="l00253"></a>00253
  341. <a name="l00254"></a>00254 <span class="keyword">public</span>:
  342. <a name="l00255"></a>00255
  343. <a name="l00256"></a><a class="code" href="classconstituitive__laminate.html#a3f4a8339fee96caacea1fc130927c8ac">00256</a> <a class="code" href="classconstituitive__laminate.html#a3f4a8339fee96caacea1fc130927c8ac">constituitive_laminate</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> layers_in=0)
  344. <a name="l00257"></a>00257 : matls(layers_in,NULL)
  345. <a name="l00258"></a>00258 , h_over_H(layers_in,NULL)
  346. <a name="l00259"></a>00259 , deleteMatl(layers_in,false)
  347. <a name="l00260"></a>00260 {}
  348. <a name="l00261"></a>00261
  349. <a name="l00262"></a><a class="code" href="classconstituitive__laminate.html#a7af5efd03542b0e1422b43671403fba1">00262</a> <a class="code" href="classconstituitive__laminate.html#a7af5efd03542b0e1422b43671403fba1">~constituitive_laminate</a>()
  350. <a name="l00263"></a>00263 {
  351. <a name="l00264"></a>00264 <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;deleteMatl.size();<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>++)
  352. <a name="l00265"></a>00265 {
  353. <a name="l00266"></a>00266 <span class="keywordflow">if</span>(deleteMatl[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>] &amp;&amp; matls[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>]!=NULL)
  354. <a name="l00267"></a>00267 <span class="keyword">delete</span> matls[<a class="code" href="namespaceCPPL.html#aca67a31b860a54cc09b2519953aa2b39">i</a>];
  355. <a name="l00268"></a>00268 }
  356. <a name="l00269"></a>00269 }
  357. <a name="l00270"></a>00270
  358. <a name="l00271"></a><a class="code" href="classconstituitive__laminate.html#a739515da83bc94d165c01b1d2422087d">00271</a> <a class="code" href="classconstituitive__laminate.html">constituitive_laminate&lt;dataType&gt;</a>&amp; <a class="code" href="classconstituitive__laminate.html#a739515da83bc94d165c01b1d2422087d">setLayers</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> layers_in)
  359. <a name="l00272"></a>00272 {
  360. <a name="l00273"></a>00273 matls.resize(layers_in,NULL);
  361. <a name="l00274"></a>00274 h_over_H.resize(layers_in,NULL);
  362. <a name="l00275"></a>00275 deleteMatl.resize(layers_in,<span class="keyword">false</span>);
  363. <a name="l00276"></a>00276
  364. <a name="l00277"></a>00277 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  365. <a name="l00278"></a>00278 }
  366. <a name="l00279"></a>00279
  367. <a name="l00280"></a><a class="code" href="classconstituitive__laminate.html#a2d8f3649441bb6f61da018cfb4b56c1b">00280</a> <a class="code" href="classconstituitive__laminate.html">constituitive_laminate&lt;dataType&gt;</a>&amp; <a class="code" href="classconstituitive__laminate.html#a2d8f3649441bb6f61da018cfb4b56c1b">setLaminate</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> at,<a class="code" href="classconstituitive.html">constituitive&lt;dataType&gt;</a>* matl_in,<a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> h_over_H_in)
  368. <a name="l00281"></a>00281 {
  369. <a name="l00282"></a>00282 <span class="keywordflow">if</span>(at&gt;=matls.size())
  370. <a name="l00283"></a>00283 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;constituitive_laminate::setLaminate(): The laminate does not exist&quot;</span>);
  371. <a name="l00284"></a>00284
  372. <a name="l00285"></a>00285 matls[at]=matl_in;
  373. <a name="l00286"></a>00286 h_over_H[at]=h_over_H_in;
  374. <a name="l00287"></a>00287
  375. <a name="l00288"></a>00288 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  376. <a name="l00289"></a>00289 }
  377. <a name="l00290"></a>00290
  378. <a name="l00291"></a><a class="code" href="classconstituitive__laminate.html#a1e12380dafa50e61451d76d6a00d3f36">00291</a> <a class="code" href="classmatrixRdWtStaticSqr__Data.html">matrixRdWtStaticSqr_Data&lt;dataType,6&gt;</a> <a class="code" href="classconstituitive__laminate.html#a1e12380dafa50e61451d76d6a00d3f36">matlMatrix</a>(<a class="code" href="classconstituitiveDependent.html">constituitiveDependent&lt;dataType&gt;</a> constDep=<a class="code" href="classconstituitiveDependent.html">constituitiveDependent&lt;dataType&gt;</a>())
  379. <a name="l00292"></a>00292 {
  380. <a name="l00293"></a>00293 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> atMatl;
  381. <a name="l00294"></a>00294 getLaminate(constDep,atMatl);
  382. <a name="l00295"></a>00295
  383. <a name="l00296"></a>00296 <span class="keywordflow">if</span>(matls[atMatl]==NULL)
  384. <a name="l00297"></a>00297 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;constituitive_laminate::getLaminate(): The material does not exist&quot;</span>);
  385. <a name="l00298"></a>00298
  386. <a name="l00299"></a>00299 <span class="keywordflow">return</span> matls[atMatl]-&gt;matlMatrix(constDep);
  387. <a name="l00300"></a>00300 }
  388. <a name="l00301"></a>00301
  389. <a name="l00302"></a><a class="code" href="classconstituitive__laminate.html#aba2ac221e01a0fd3d5a66a4ea0ca7e44">00302</a> <a class="code" href="timoshenko_8cpp.html#a926743e1c2bd9fc382c84014036246c2">dataType</a> <a class="code" href="classconstituitive__laminate.html#aba2ac221e01a0fd3d5a66a4ea0ca7e44">failure</a>(<span class="keyword">const</span> <a class="code" href="classmatrixStaticVectCol.html">matrixStaticVectCol&lt;dataType,6&gt;</a>&amp; strain,<a class="code" href="classconstituitiveDependent.html">constituitiveDependent&lt;dataType&gt;</a> constDep=<a class="code" href="classconstituitiveDependent.html">constituitiveDependent&lt;dataType&gt;</a>())<span class="keyword"> const</span>
  390. <a name="l00303"></a>00303 <span class="keyword"> </span>{
  391. <a name="l00304"></a>00304 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> atMatl;
  392. <a name="l00305"></a>00305 getLaminate(constDep,atMatl);
  393. <a name="l00306"></a>00306
  394. <a name="l00307"></a>00307 <span class="keywordflow">if</span>(matls[atMatl]==NULL)
  395. <a name="l00308"></a>00308 <span class="keywordflow">throw</span> <a class="code" href="classeMsg.html">eMsg</a>(<span class="stringliteral">&quot;constituitive_laminate::failure(): The material does not exist&quot;</span>);
  396. <a name="l00309"></a>00309
  397. <a name="l00310"></a>00310 <span class="keywordflow">return</span> matls[atMatl]-&gt;failure(strain,constDep);
  398. <a name="l00311"></a>00311 }
  399. <a name="l00312"></a>00312 };
  400. <a name="l00313"></a>00313
  401. <a name="l00314"></a>00314 <span class="keyword">template</span>&lt;<span class="keyword">class</span> dataType&gt;
  402. <a name="l00315"></a><a class="code" href="classconstituitive__sameFailure.html">00315</a> <span class="keyword">class </span><a class="code" href="classconstituitive__sameFailure.html">constituitive_sameFailure</a>
  403. <a name="l00316"></a>00316 : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="classconstituitive.html">constituitive</a>&lt;dataType&gt;
  404. <a name="l00317"></a>00317 {
  405. <a name="l00318"></a>00318 <span class="keyword">protected</span>:
  406. <a name="l00319"></a>00319
  407. <a name="l00320"></a><a class="code" href="classconstituitive__sameFailure.html#a250ddce0d9f37fb5624b5430b6152eab">00320</a> <a class="code" href="classfailureModel.html">failureModel&lt;dataType&gt;</a>* <a class="code" href="classconstituitive__sameFailure.html#a250ddce0d9f37fb5624b5430b6152eab">failMdl</a>;
  408. <a name="l00321"></a><a class="code" href="classconstituitive__sameFailure.html#a7f73f9d5bf0167a62b016b3872079a6d">00321</a> <span class="keywordtype">bool</span> <a class="code" href="classconstituitive__sameFailure.html#a7f73f9d5bf0167a62b016b3872079a6d">canDelete</a>;
  409. <a name="l00322"></a>00322
  410. <a name="l00323"></a>00323 <span class="keyword">public</span>:
  411. <a name="l00324"></a>00324
  412. <a name="l00325"></a><a class="code" href="classconstituitive__sameFailur…

Large files files are truncated, but you can click here to view the full file