phasicFlow/doc/code-documentation/html/rotatingAxis_8cpp_source.html

291 lines
41 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<title>PhasicFlow: src/MotionModel/entities/rotatingAxis/rotatingAxis.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname"><a href="https://cemf.ir">PhasicFlow</a>
&#160;<span id="projectnumber"><a href="https://cemf.ir">v0.1</a></span>
</div>
<div id="projectbrief"><a href="www.github.com/PhasicFlow">www.cemf.ir</a></div>
</td>
<td> <div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('rotatingAxis_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">rotatingAxis.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="rotatingAxis_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*------------------------------- phasicFlow ---------------------------------</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> O C enter of</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> O O E ngineering and</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> O O M ultiscale modeling of</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> OOOOOOO F luid flow </span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> Copyright (C): www.cemf.ir</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> email: hamid.r.norouzi AT gmail.com</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">------------------------------------------------------------------------------ </span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">Licence:</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> This file is part of phasicFlow code. It is a free software for simulating </span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> granular and multiphase flows. You can redistribute it and/or modify it under</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> the terms of GNU General Public License v3 or any other later versions. </span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> </span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> phasicFlow is distributed to help others in their research in the field of </span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">-----------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="rotatingAxis_8hpp.html">rotatingAxis.hpp</a>&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="dictionary_8hpp.html">dictionary.hpp</a>&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<a class="code" href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<a class="code" href="classpFlow_1_1rotatingAxis.html#a5585ec037a9f0f8d0fb2726619cadd68">pFlow::rotatingAxis::rotatingAxis</a></div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classpFlow_1_1rotatingAxis.html#a9e4f55418c7df3007270e91664156c48"> 27</a></span>&#160;(</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keyword">const</span> <a class="code" href="classpFlow_1_1dictionary.html">dictionary</a>&amp; dict</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;)</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;{</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keywordflow">if</span>(!read(dict))</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; {</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <a class="code" href="error_8hpp.html#aca9aa547c8441e4410a65a2ce7c21554">fatalErrorInFunction</a>&lt;&lt;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="stringliteral">&quot; error in reading rotatingAxis from dictionary &quot;</span>&lt;&lt; dict.<a class="code" href="classpFlow_1_1dictionary.html#a85c3c1fce0c14d36030092df2f27b632">globalName</a>()&lt;&lt;<a class="code" href="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">endl</a>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="code" href="error_8hpp.html#aad22a1cd3b45a97ac8cd195f06fe61fe">fatalExit</a>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; }</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;}</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<a class="code" href="pFlowMacros_8hpp.html#a33a666cbe329b9d3d1d607ac93fc12b7">FUNCTION_HD</a></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<a class="code" href="classpFlow_1_1rotatingAxis.html#a5585ec037a9f0f8d0fb2726619cadd68">pFlow::rotatingAxis::rotatingAxis</a></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classpFlow_1_1rotatingAxis.html#a858d417ba00a4a9afa58ded583226f69"> 42</a></span>&#160;(</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keyword">const</span> <a class="code" href="classpFlow_1_1triple.html">realx3</a>&amp; p1,</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keyword">const</span> <a class="code" href="classpFlow_1_1triple.html">realx3</a>&amp; p2,</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> omega</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;)</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; :</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="classpFlow_1_1timeInterval.html">timeInterval</a>(),</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="classpFlow_1_1line.html">line</a>(p1, p2),</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; omega_(omega),</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; rotating_(!<a class="code" href="namespacepFlow.html#aaf1dcea055a0402beff3cec1b0849d74">equal</a>(omega,0.0))</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;{</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;}</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<a class="code" href="pFlowMacros_8hpp.html#a33a666cbe329b9d3d1d607ac93fc12b7">FUNCTION_HD</a></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classpFlow_1_1rotatingAxis.html#a03e4dd135f2368a5704297fe5bdec24a"> 58</a></span>&#160;<a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">pFlow::real</a> <a class="code" href="classpFlow_1_1rotatingAxis.html#a03e4dd135f2368a5704297fe5bdec24a">pFlow::rotatingAxis::setOmega</a>(<a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> omega)</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;{</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keyword">auto</span> tmp = <a class="code" href="classpFlow_1_1rotatingAxis.html#a27e85702bf8a1c61f589ca982c52960c">omega_</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <a class="code" href="classpFlow_1_1rotatingAxis.html#a27e85702bf8a1c61f589ca982c52960c">omega_</a> = <a class="code" href="classpFlow_1_1rotatingAxis.html#ace8e5e2121508deb77808a42dab458cf">omega</a>;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <a class="code" href="classpFlow_1_1rotatingAxis.html#a76bf50213c81659b84311eda4b8da389">rotating_</a> = !<a class="code" href="namespacepFlow.html#aaf1dcea055a0402beff3cec1b0849d74">equal</a>(<a class="code" href="classpFlow_1_1rotatingAxis.html#ace8e5e2121508deb77808a42dab458cf">omega</a>, 0.0);</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">return</span> tmp;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;}</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<a class="code" href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classpFlow_1_1rotatingAxis.html#ab25b05023549e7fec0ee1d0f6ce239dd">pFlow::rotatingAxis::read</a></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classpFlow_1_1rotatingAxis.html#ab25b05023549e7fec0ee1d0f6ce239dd"> 68</a></span>&#160;(</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keyword">const</span> <a class="code" href="classpFlow_1_1dictionary.html">dictionary</a>&amp; dict</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;)</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;{</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordflow">if</span>(!<a class="code" href="classpFlow_1_1timeInterval.html#ab25b05023549e7fec0ee1d0f6ce239dd">timeInterval::read</a>(dict))<span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordflow">if</span>(!<a class="code" href="classpFlow_1_1line.html#ab25b05023549e7fec0ee1d0f6ce239dd">line::read</a>(dict)) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> omega = dict.<a class="code" href="classpFlow_1_1dictionary.html#a5585dc9a8b971fbfe2c99fdb75c5d647">getValOrSet</a>(<span class="stringliteral">&quot;omega&quot;</span>, <span class="keyword">static_cast&lt;</span><a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a><span class="keyword">&gt;</span>(0.0));</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; setOmega(omega);</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;}</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<a class="code" href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classpFlow_1_1rotatingAxis.html#a279dae2ee3345fbb2b31e5af9ec0a5b4">pFlow::rotatingAxis::write</a></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classpFlow_1_1rotatingAxis.html#a279dae2ee3345fbb2b31e5af9ec0a5b4"> 84</a></span>&#160;(</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="code" href="classpFlow_1_1dictionary.html">dictionary</a>&amp; dict</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;) <span class="keyword">const</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;{</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">if</span>( !<a class="code" href="classpFlow_1_1timeInterval.html#a279dae2ee3345fbb2b31e5af9ec0a5b4">timeInterval::write</a>(dict) ) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordflow">if</span>( !<a class="code" href="classpFlow_1_1line.html#a8dfb09bc3cd31a799290f903613192aa">line::write</a>(dict) ) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keywordflow">if</span>( !dict.<a class="code" href="classpFlow_1_1dictionary.html#a6ae2ea14b8b5e5661c2f207aae2d4bdc">add</a>(<span class="stringliteral">&quot;omega&quot;</span>, omega_) )</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; {</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <a class="code" href="error_8hpp.html#aca9aa547c8441e4410a65a2ce7c21554">fatalErrorInFunction</a>&lt;&lt;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="stringliteral">&quot; error in writing omega to dictionary &quot;</span>&lt;&lt; dict.<a class="code" href="classpFlow_1_1dictionary.html#a85c3c1fce0c14d36030092df2f27b632">globalName</a>()&lt;&lt;<a class="code" href="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">endl</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; }</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;}</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<a class="code" href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classpFlow_1_1rotatingAxis.html#ab25b05023549e7fec0ee1d0f6ce239dd">pFlow::rotatingAxis::read</a></div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classpFlow_1_1rotatingAxis.html#ae1d42751915e8566dac19658cc498ffa"> 102</a></span>&#160;(</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <a class="code" href="classpFlow_1_1iIstream.html">iIstream</a>&amp; is</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;)</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;{</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordflow">if</span>( !rotatingAxis::timeInterval::read(is)) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordflow">if</span>( !rotatingAxis::line::read(is)) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="namespacepFlow.html#a0ebe792a293e8c717bddf60070c0fe99">word</a> omegaw;</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> omega;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; is &gt;&gt; omegaw &gt;&gt; omega;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordflow">if</span>( !is.<a class="code" href="classpFlow_1_1IOstream.html#a367eb3425fc4e8270e2aa961df8ac8a5">check</a>(<a class="code" href="pFlowMacros_8hpp.html#a922d2784284e8f6ee4009c3d92ba48b6">FUNCTION_NAME</a>))</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; {</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <a class="code" href="error_8hpp.html#a83efa053dfcfcef04cc0e721c0314ff3">ioErrorInFile</a>(is.<a class="code" href="classpFlow_1_1IOstream.html#ac9b54653d0ec63ee05f64a185437b335">name</a>(), is.<a class="code" href="classpFlow_1_1IOstream.html#a607efe5fb94edbe4cfa890c4907e76c3">lineNumber</a>());</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; }</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordflow">if</span>(omegaw != <span class="stringliteral">&quot;omega&quot;</span>)</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; {</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <a class="code" href="error_8hpp.html#a83efa053dfcfcef04cc0e721c0314ff3">ioErrorInFile</a>(is.<a class="code" href="classpFlow_1_1IOstream.html#ac9b54653d0ec63ee05f64a185437b335">name</a>(), is.<a class="code" href="classpFlow_1_1IOstream.html#a607efe5fb94edbe4cfa890c4907e76c3">lineNumber</a>())&lt;&lt;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="stringliteral">&quot; expected omega but found &quot;</span>&lt;&lt; omegaw &lt;&lt;<a class="code" href="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">endl</a>;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; }</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; is.<a class="code" href="classpFlow_1_1iIstream.html#aca8c209dd4920ea633336742d8a874e0">readEndStatement</a>(<a class="code" href="pFlowMacros_8hpp.html#a922d2784284e8f6ee4009c3d92ba48b6">FUNCTION_NAME</a>);</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; setOmega(omega);</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;}</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;<a class="code" href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classpFlow_1_1rotatingAxis.html#a279dae2ee3345fbb2b31e5af9ec0a5b4">pFlow::rotatingAxis::write</a></div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classpFlow_1_1rotatingAxis.html#aa7d820a4dd0777a9a82aee242b83a167"> 133</a></span>&#160;(</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <a class="code" href="classpFlow_1_1iOstream.html">iOstream</a>&amp; os</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;)<span class="keyword">const</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;{</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keywordflow">if</span>( !rotatingAxis::timeInterval::write(os)) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordflow">if</span>( !rotatingAxis::line::write(os) ) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; os.<a class="code" href="classpFlow_1_1iOstream.html#a21c60a5f3cd7a26eb97fa28923cbaec6">writeWordEntry</a>(<span class="stringliteral">&quot;omega&quot;</span>, omega());</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordflow">return</span> os.<a class="code" href="classpFlow_1_1IOstream.html#a367eb3425fc4e8270e2aa961df8ac8a5">check</a>(<a class="code" href="pFlowMacros_8hpp.html#a922d2784284e8f6ee4009c3d92ba48b6">FUNCTION_NAME</a>);</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclasspFlow_1_1rotatingAxis_html_a03e4dd135f2368a5704297fe5bdec24a"><div class="ttname"><a href="classpFlow_1_1rotatingAxis.html#a03e4dd135f2368a5704297fe5bdec24a">pFlow::rotatingAxis::setOmega</a></div><div class="ttdeci">FUNCTION_HD real setOmega(real omega)</div><div class="ttdef"><b>Definition:</b> <a href="rotatingAxis_8cpp_source.html#l00058">rotatingAxis.cpp:58</a></div></div>
<div class="ttc" id="aclasspFlow_1_1dictionary_html_a5585dc9a8b971fbfe2c99fdb75c5d647"><div class="ttname"><a href="classpFlow_1_1dictionary.html#a5585dc9a8b971fbfe2c99fdb75c5d647">pFlow::dictionary::getValOrSet</a></div><div class="ttdeci">T getValOrSet(const word &amp;keyword, const T &amp;setVal) const</div><div class="ttdef"><b>Definition:</b> <a href="dictionary_8hpp_source.html#l00325">dictionary.hpp:325</a></div></div>
<div class="ttc" id="anamespacepFlow_html_a6192191c0e9c178a44ee1ac350fde476"><div class="ttname"><a href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">pFlow::real</a></div><div class="ttdeci">float real</div><div class="ttdef"><b>Definition:</b> <a href="builtinTypes_8hpp_source.html#l00046">builtinTypes.hpp:46</a></div></div>
<div class="ttc" id="aerror_8hpp_html_aad22a1cd3b45a97ac8cd195f06fe61fe"><div class="ttname"><a href="error_8hpp.html#aad22a1cd3b45a97ac8cd195f06fe61fe">fatalExit</a></div><div class="ttdeci">#define fatalExit</div><div class="ttdef"><b>Definition:</b> <a href="error_8hpp_source.html#l00057">error.hpp:57</a></div></div>
<div class="ttc" id="aclasspFlow_1_1line_html"><div class="ttname"><a href="classpFlow_1_1line.html">pFlow::line</a></div><div class="ttdef"><b>Definition:</b> <a href="line_8hpp_source.html#l00036">line.hpp:36</a></div></div>
<div class="ttc" id="aclasspFlow_1_1timeInterval_html_a279dae2ee3345fbb2b31e5af9ec0a5b4"><div class="ttname"><a href="classpFlow_1_1timeInterval.html#a279dae2ee3345fbb2b31e5af9ec0a5b4">pFlow::timeInterval::write</a></div><div class="ttdeci">FUNCTION_H bool write(dictionary &amp;dict) const</div><div class="ttdef"><b>Definition:</b> <a href="timeInterval_8cpp_source.html#l00026">timeInterval.cpp:26</a></div></div>
<div class="ttc" id="anamespacepFlow_html_a0ebe792a293e8c717bddf60070c0fe99"><div class="ttname"><a href="namespacepFlow.html#a0ebe792a293e8c717bddf60070c0fe99">pFlow::word</a></div><div class="ttdeci">std::string word</div><div class="ttdef"><b>Definition:</b> <a href="builtinTypes_8hpp_source.html#l00063">builtinTypes.hpp:63</a></div></div>
<div class="ttc" id="aclasspFlow_1_1line_html_a8dfb09bc3cd31a799290f903613192aa"><div class="ttname"><a href="classpFlow_1_1line.html#a8dfb09bc3cd31a799290f903613192aa">pFlow::line::write</a></div><div class="ttdeci">FUNCTION_H bool write(dictionary &amp;ditc) const</div><div class="ttdef"><b>Definition:</b> <a href="line_8cpp_source.html#l00061">line.cpp:61</a></div></div>
<div class="ttc" id="aclasspFlow_1_1iIstream_html_aca8c209dd4920ea633336742d8a874e0"><div class="ttname"><a href="classpFlow_1_1iIstream.html#aca8c209dd4920ea633336742d8a874e0">pFlow::iIstream::readEndStatement</a></div><div class="ttdeci">char readEndStatement(const char *funcName)</div><div class="ttdef"><b>Definition:</b> <a href="iIstream_8cpp_source.html#l00324">iIstream.cpp:324</a></div></div>
<div class="ttc" id="apFlowMacros_8hpp_html_a922d2784284e8f6ee4009c3d92ba48b6"><div class="ttname"><a href="pFlowMacros_8hpp.html#a922d2784284e8f6ee4009c3d92ba48b6">FUNCTION_NAME</a></div><div class="ttdeci">#define FUNCTION_NAME</div><div class="ttdef"><b>Definition:</b> <a href="pFlowMacros_8hpp_source.html#l00029">pFlowMacros.hpp:29</a></div></div>
<div class="ttc" id="aclasspFlow_1_1dictionary_html_a85c3c1fce0c14d36030092df2f27b632"><div class="ttname"><a href="classpFlow_1_1dictionary.html#a85c3c1fce0c14d36030092df2f27b632">pFlow::dictionary::globalName</a></div><div class="ttdeci">virtual word globalName() const</div><div class="ttdef"><b>Definition:</b> <a href="dictionary_8cpp_source.html#l00349">dictionary.cpp:349</a></div></div>
<div class="ttc" id="aclasspFlow_1_1dictionary_html_a6ae2ea14b8b5e5661c2f207aae2d4bdc"><div class="ttname"><a href="classpFlow_1_1dictionary.html#a6ae2ea14b8b5e5661c2f207aae2d4bdc">pFlow::dictionary::add</a></div><div class="ttdeci">bool add(const word &amp;keyword, const float &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="dictionary_8cpp_source.html#l00422">dictionary.cpp:422</a></div></div>
<div class="ttc" id="arotatingAxis_8hpp_html"><div class="ttname"><a href="rotatingAxis_8hpp.html">rotatingAxis.hpp</a></div></div>
<div class="ttc" id="aclasspFlow_1_1timeInterval_html_ab25b05023549e7fec0ee1d0f6ce239dd"><div class="ttname"><a href="classpFlow_1_1timeInterval.html#ab25b05023549e7fec0ee1d0f6ce239dd">pFlow::timeInterval::read</a></div><div class="ttdeci">FUNCTION_H bool read(const dictionary &amp;dict)</div><div class="ttdef"><b>Definition:</b> <a href="timeInterval_8cpp_source.html#l00017">timeInterval.cpp:17</a></div></div>
<div class="ttc" id="anamespacepFlow_html_aba8f0c455a3fdb4b05ad33a25b13b189"><div class="ttname"><a href="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">pFlow::endl</a></div><div class="ttdeci">iOstream &amp; endl(iOstream &amp;os)</div><div class="ttdef"><b>Definition:</b> <a href="iOstream_8hpp_source.html#l00312">iOstream.hpp:312</a></div></div>
<div class="ttc" id="aclasspFlow_1_1rotatingAxis_html_a279dae2ee3345fbb2b31e5af9ec0a5b4"><div class="ttname"><a href="classpFlow_1_1rotatingAxis.html#a279dae2ee3345fbb2b31e5af9ec0a5b4">pFlow::rotatingAxis::write</a></div><div class="ttdeci">FUNCTION_H bool write(dictionary &amp;dict) const</div><div class="ttdef"><b>Definition:</b> <a href="rotatingAxis_8cpp_source.html#l00084">rotatingAxis.cpp:84</a></div></div>
<div class="ttc" id="aclasspFlow_1_1rotatingAxis_html_a76bf50213c81659b84311eda4b8da389"><div class="ttname"><a href="classpFlow_1_1rotatingAxis.html#a76bf50213c81659b84311eda4b8da389">pFlow::rotatingAxis::rotating_</a></div><div class="ttdeci">bool rotating_</div><div class="ttdef"><b>Definition:</b> <a href="rotatingAxis_8hpp_source.html#l00045">rotatingAxis.hpp:45</a></div></div>
<div class="ttc" id="aclasspFlow_1_1IOstream_html_a367eb3425fc4e8270e2aa961df8ac8a5"><div class="ttname"><a href="classpFlow_1_1IOstream.html#a367eb3425fc4e8270e2aa961df8ac8a5">pFlow::IOstream::check</a></div><div class="ttdeci">virtual bool check(const char *operation) const</div><div class="ttdef"><b>Definition:</b> <a href="IOstream_8cpp_source.html#l00042">IOstream.cpp:42</a></div></div>
<div class="ttc" id="apFlowMacros_8hpp_html_a4a0e2a760ea30cb5fe3d40c0cb3fe4a9"><div class="ttname"><a href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a></div><div class="ttdeci">#define FUNCTION_H</div><div class="ttdef"><b>Definition:</b> <a href="pFlowMacros_8hpp_source.html#l00058">pFlowMacros.hpp:58</a></div></div>
<div class="ttc" id="aclasspFlow_1_1line_html_ab25b05023549e7fec0ee1d0f6ce239dd"><div class="ttname"><a href="classpFlow_1_1line.html#ab25b05023549e7fec0ee1d0f6ce239dd">pFlow::line::read</a></div><div class="ttdeci">FUNCTION_H bool read(const dictionary &amp;dict)</div><div class="ttdef"><b>Definition:</b> <a href="line_8cpp_source.html#l00050">line.cpp:50</a></div></div>
<div class="ttc" id="aclasspFlow_1_1iIstream_html"><div class="ttname"><a href="classpFlow_1_1iIstream.html">pFlow::iIstream</a></div><div class="ttdef"><b>Definition:</b> <a href="iIstream_8hpp_source.html#l00033">iIstream.hpp:33</a></div></div>
<div class="ttc" id="aclasspFlow_1_1rotatingAxis_html_a27e85702bf8a1c61f589ca982c52960c"><div class="ttname"><a href="classpFlow_1_1rotatingAxis.html#a27e85702bf8a1c61f589ca982c52960c">pFlow::rotatingAxis::omega_</a></div><div class="ttdeci">real omega_</div><div class="ttdef"><b>Definition:</b> <a href="rotatingAxis_8hpp_source.html#l00043">rotatingAxis.hpp:43</a></div></div>
<div class="ttc" id="aerror_8hpp_html_aca9aa547c8441e4410a65a2ce7c21554"><div class="ttname"><a href="error_8hpp.html#aca9aa547c8441e4410a65a2ce7c21554">fatalErrorInFunction</a></div><div class="ttdeci">#define fatalErrorInFunction</div><div class="ttdef"><b>Definition:</b> <a href="error_8hpp_source.html#l00042">error.hpp:42</a></div></div>
<div class="ttc" id="adictionary_8hpp_html"><div class="ttname"><a href="dictionary_8hpp.html">dictionary.hpp</a></div></div>
<div class="ttc" id="aclasspFlow_1_1rotatingAxis_html_ace8e5e2121508deb77808a42dab458cf"><div class="ttname"><a href="classpFlow_1_1rotatingAxis.html#ace8e5e2121508deb77808a42dab458cf">pFlow::rotatingAxis::omega</a></div><div class="ttdeci">INLINE_FUNCTION_HD real omega() const</div><div class="ttdef"><b>Definition:</b> <a href="rotatingAxis_8hpp_source.html#l00068">rotatingAxis.hpp:68</a></div></div>
<div class="ttc" id="aclasspFlow_1_1timeInterval_html"><div class="ttname"><a href="classpFlow_1_1timeInterval.html">pFlow::timeInterval</a></div><div class="ttdef"><b>Definition:</b> <a href="timeInterval_8hpp_source.html#l00016">timeInterval.hpp:16</a></div></div>
<div class="ttc" id="apFlowMacros_8hpp_html_a33a666cbe329b9d3d1d607ac93fc12b7"><div class="ttname"><a href="pFlowMacros_8hpp.html#a33a666cbe329b9d3d1d607ac93fc12b7">FUNCTION_HD</a></div><div class="ttdeci">#define FUNCTION_HD</div><div class="ttdef"><b>Definition:</b> <a href="pFlowMacros_8hpp_source.html#l00057">pFlowMacros.hpp:57</a></div></div>
<div class="ttc" id="aclasspFlow_1_1IOstream_html_ac9b54653d0ec63ee05f64a185437b335"><div class="ttname"><a href="classpFlow_1_1IOstream.html#ac9b54653d0ec63ee05f64a185437b335">pFlow::IOstream::name</a></div><div class="ttdeci">virtual const word &amp; name() const</div><div class="ttdef"><b>Definition:</b> <a href="IOstream_8cpp_source.html#l00031">IOstream.cpp:31</a></div></div>
<div class="ttc" id="aclasspFlow_1_1rotatingAxis_html_ab25b05023549e7fec0ee1d0f6ce239dd"><div class="ttname"><a href="classpFlow_1_1rotatingAxis.html#ab25b05023549e7fec0ee1d0f6ce239dd">pFlow::rotatingAxis::read</a></div><div class="ttdeci">FUNCTION_H bool read(const dictionary &amp;dict)</div><div class="ttdef"><b>Definition:</b> <a href="rotatingAxis_8cpp_source.html#l00068">rotatingAxis.cpp:68</a></div></div>
<div class="ttc" id="aerror_8hpp_html_a83efa053dfcfcef04cc0e721c0314ff3"><div class="ttname"><a href="error_8hpp.html#a83efa053dfcfcef04cc0e721c0314ff3">ioErrorInFile</a></div><div class="ttdeci">#define ioErrorInFile(fileName, lineNumber)</div><div class="ttdef"><b>Definition:</b> <a href="error_8hpp_source.html#l00049">error.hpp:49</a></div></div>
<div class="ttc" id="aclasspFlow_1_1IOstream_html_a607efe5fb94edbe4cfa890c4907e76c3"><div class="ttname"><a href="classpFlow_1_1IOstream.html#a607efe5fb94edbe4cfa890c4907e76c3">pFlow::IOstream::lineNumber</a></div><div class="ttdeci">int32 lineNumber() const</div><div class="ttdef"><b>Definition:</b> <a href="IOstream_8hpp_source.html#l00187">IOstream.hpp:187</a></div></div>
<div class="ttc" id="aclasspFlow_1_1triple_html"><div class="ttname"><a href="classpFlow_1_1triple.html">pFlow::triple&lt; real &gt;</a></div></div>
<div class="ttc" id="aclasspFlow_1_1iOstream_html"><div class="ttname"><a href="classpFlow_1_1iOstream.html">pFlow::iOstream</a></div><div class="ttdef"><b>Definition:</b> <a href="iOstream_8hpp_source.html#l00053">iOstream.hpp:53</a></div></div>
<div class="ttc" id="anamespacepFlow_html_aaf1dcea055a0402beff3cec1b0849d74"><div class="ttname"><a href="namespacepFlow.html#aaf1dcea055a0402beff3cec1b0849d74">pFlow::equal</a></div><div class="ttdeci">INLINE_FUNCTION_HD bool equal(const real &amp;s1, const real &amp;s2)</div><div class="ttdef"><b>Definition:</b> <a href="bTypesFunctions_8hpp_source.html#l00188">bTypesFunctions.hpp:188</a></div></div>
<div class="ttc" id="aclasspFlow_1_1iOstream_html_a21c60a5f3cd7a26eb97fa28923cbaec6"><div class="ttname"><a href="classpFlow_1_1iOstream.html#a21c60a5f3cd7a26eb97fa28923cbaec6">pFlow::iOstream::writeWordEntry</a></div><div class="ttdeci">iOstream &amp; writeWordEntry(const word &amp;key, const T &amp;value)</div><div class="ttdef"><b>Definition:</b> <a href="iOstream_8hpp_source.html#l00217">iOstream.hpp:217</a></div></div>
<div class="ttc" id="aclasspFlow_1_1rotatingAxis_html_a5585ec037a9f0f8d0fb2726619cadd68"><div class="ttname"><a href="classpFlow_1_1rotatingAxis.html#a5585ec037a9f0f8d0fb2726619cadd68">pFlow::rotatingAxis::rotatingAxis</a></div><div class="ttdeci">FUNCTION_HD rotatingAxis()</div><div class="ttdef"><b>Definition:</b> <a href="rotatingAxis_8hpp_source.html#l00050">rotatingAxis.hpp:50</a></div></div>
<div class="ttc" id="aclasspFlow_1_1dictionary_html"><div class="ttname"><a href="classpFlow_1_1dictionary.html">pFlow::dictionary</a></div><div class="ttdef"><b>Definition:</b> <a href="dictionary_8hpp_source.html#l00038">dictionary.hpp:38</a></div></div>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_47ec108d6cccce3c0382fd3240a6cec7.html">MotionModel</a></li><li class="navelem"><a class="el" href="dir_dfffb364e858dce2ad53d04d398ac8d4.html">entities</a></li><li class="navelem"><a class="el" href="dir_fda176289ce41868031c9232b51f0444.html">rotatingAxis</a></li><li class="navelem"><a class="el" href="rotatingAxis_8cpp.html">rotatingAxis.cpp</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
</ul>
</div>
</body>
</html>