284 lines
40 KiB
HTML
284 lines
40 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/vibrating/vibrating.hpp 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&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>
|
|
 <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&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&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('vibrating_8hpp_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">vibrating.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="vibrating_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*------------------------------- phasicFlow ---------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> O C enter of</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> O O E ngineering and</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> O O M ultiscale modeling of</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> OOOOOOO F luid flow </span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> Copyright (C): www.cemf.ir</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> email: hamid.r.norouzi AT gmail.com</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">------------------------------------------------------------------------------ </span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">Licence:</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <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> <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> <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> <span class="comment"> </span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <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> <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> <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> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">-----------------------------------------------------------------------------*/</span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef __vibrating_hpp__</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define __vibrating_hpp__</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="timeInterval_8hpp.html">timeInterval.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="streams_8hpp.html">streams.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespacepFlow.html">pFlow</a></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">class </span>dictionary;</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">class </span>vibrating;</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classpFlow_1_1vibrating.html"> 36</a></span> <span class="keyword">class </span><a class="code" href="classpFlow_1_1vibrating.html">vibrating</a></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> :</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">public</span> <a class="code" href="classpFlow_1_1timeInterval.html">timeInterval</a></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">protected</span>:</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="comment">// rotation speed </span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classpFlow_1_1vibrating.html#a00b0c9642be1f1e40745c74d462bd774"> 44</a></span>  <a class="code" href="classpFlow_1_1triple.html">realx3</a> <a class="code" href="classpFlow_1_1vibrating.html#a00b0c9642be1f1e40745c74d462bd774">angularFreq_</a>{0,0,0};</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classpFlow_1_1vibrating.html#a5de4c19d1d86f8750037b13153fa9506"> 46</a></span>  <a class="code" href="classpFlow_1_1triple.html">realx3</a> <a class="code" href="classpFlow_1_1vibrating.html#a5de4c19d1d86f8750037b13153fa9506">phaseAngle_</a>{0,0,0};</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classpFlow_1_1vibrating.html#ab99817cefd7dcc788c7d129b270bbfb9"> 48</a></span>  <a class="code" href="classpFlow_1_1triple.html">realx3</a> <a class="code" href="classpFlow_1_1vibrating.html#ab99817cefd7dcc788c7d129b270bbfb9">amplitude_</a>{0,0,0};</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classpFlow_1_1vibrating.html#a719c65328bce1858f7f090f430b8fe7a"> 50</a></span>  <a class="code" href="classpFlow_1_1triple.html">realx3</a> <a class="code" href="classpFlow_1_1vibrating.html#a719c65328bce1858f7f090f430b8fe7a">velocity_</a>{0,0,0};</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classpFlow_1_1vibrating.html#a51174e4a5d806dc50a1198168c89227b"> 52</a></span>  <a class="code" href="classpFlow_1_1triple.html">realx3</a> <a class="code" href="classpFlow_1_1vibrating.html#a51174e4a5d806dc50a1198168c89227b">velocity0_</a>{0,0,0};</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classpFlow_1_1vibrating.html#a6a741ca4b36f2376aeb2650d274bc2b0"> 55</a></span>  <span class="keywordtype">void</span> <a class="code" href="classpFlow_1_1vibrating.html#a6a741ca4b36f2376aeb2650d274bc2b0">calculateVelocity</a>()</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  {</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">if</span>(<a class="code" href="classpFlow_1_1timeInterval.html#a690a47d7890165ea3dd242b11fafc07a">inTimeRange</a>())</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classpFlow_1_1vibrating.html#a719c65328bce1858f7f090f430b8fe7a">velocity_</a> = <a class="code" href="classpFlow_1_1vibrating.html#ab99817cefd7dcc788c7d129b270bbfb9">amplitude_</a> * <a class="code" href="namespacepFlow.html#aee6110d73360fe9b98a9a0b5d6517f5b">sin</a>( <a class="code" href="classpFlow_1_1vibrating.html#a00b0c9642be1f1e40745c74d462bd774">angularFreq_</a>*(<a class="code" href="classpFlow_1_1timeInterval.html#ad14a6af4583f1c85a17a40ff5ccb8794">time</a>()-<a class="code" href="classpFlow_1_1timeInterval.html#a1f76f3cab93a628ecd4cf0db9b9a6dcb">startTime</a>() ) + <a class="code" href="classpFlow_1_1vibrating.html#a5de4c19d1d86f8750037b13153fa9506">phaseAngle_</a> );</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }<span class="keywordflow">else</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  {</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="classpFlow_1_1vibrating.html#a719c65328bce1858f7f090f430b8fe7a">velocity_</a> = {0,0,0};</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  }</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="pFlowMacros_8hpp.html#a33a666cbe329b9d3d1d607ac93fc12b7">FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classpFlow_1_1vibrating.html#a3a6da07d4af1a874177be0d6535c3511"> 69</a></span>  <a class="code" href="classpFlow_1_1vibrating.html#a3a6da07d4af1a874177be0d6535c3511">vibrating</a>(){}</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a></div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="classpFlow_1_1vibrating.html#a3a6da07d4af1a874177be0d6535c3511">vibrating</a>(<span class="keyword">const</span> <a class="code" href="classpFlow_1_1dictionary.html">dictionary</a>& dict);</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  </div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="pFlowMacros_8hpp.html#a33a666cbe329b9d3d1d607ac93fc12b7">FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="classpFlow_1_1vibrating.html#a3a6da07d4af1a874177be0d6535c3511">vibrating</a>(<span class="keyword">const</span> <a class="code" href="classpFlow_1_1vibrating.html">vibrating</a>&) = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  </div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classpFlow_1_1vibrating.html">vibrating</a>& <a class="code" href="classpFlow_1_1vibrating.html#a2300ceff97957bb812e2ee03ecc97264">operator=</a>(<span class="keyword">const</span> <a class="code" href="classpFlow_1_1vibrating.html">vibrating</a>&) = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classpFlow_1_1vibrating.html#a0c0f53f98461312b9cf461aa83d3de51"> 81</a></span>  <span class="keywordtype">void</span> <a class="code" href="classpFlow_1_1vibrating.html#a0c0f53f98461312b9cf461aa83d3de51">setTime</a>(<a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> t)</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  {</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">if</span>( !<a class="code" href="namespacepFlow.html#aaf1dcea055a0402beff3cec1b0849d74">equal</a>(t, <a class="code" href="classpFlow_1_1timeInterval.html#ad14a6af4583f1c85a17a40ff5ccb8794">time</a>()) ) <a class="code" href="classpFlow_1_1vibrating.html#a51174e4a5d806dc50a1198168c89227b">velocity0_</a> = <a class="code" href="classpFlow_1_1vibrating.html#a719c65328bce1858f7f090f430b8fe7a">velocity_</a>;</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="classpFlow_1_1timeInterval.html#a0c0f53f98461312b9cf461aa83d3de51">timeInterval::setTime</a>(t);</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="classpFlow_1_1vibrating.html#a6a741ca4b36f2376aeb2650d274bc2b0">calculateVelocity</a>();</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  }</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classpFlow_1_1vibrating.html#a820318fa567848e61c6d25424bff8845"> 89</a></span>  <a class="code" href="classpFlow_1_1triple.html">realx3</a> <a class="code" href="classpFlow_1_1vibrating.html#a820318fa567848e61c6d25424bff8845">linTangentialVelocityPoint</a>(<span class="keyword">const</span> <a class="code" href="classpFlow_1_1triple.html">realx3</a> &p)<span class="keyword">const</span></div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="keyword"> </span>{</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> <a class="code" href="classpFlow_1_1vibrating.html#a719c65328bce1858f7f090f430b8fe7a">velocity_</a>;</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classpFlow_1_1vibrating.html#a3b89f616e7744d1ea88bb39300fce4c4"> 95</a></span>  <a class="code" href="classpFlow_1_1triple.html">realx3</a> <a class="code" href="classpFlow_1_1vibrating.html#a3b89f616e7744d1ea88bb39300fce4c4">transferPoint</a>(<span class="keyword">const</span> <a class="code" href="classpFlow_1_1triple.html">realx3</a>& p, <a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> dt)</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  {</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">if</span>(!<a class="code" href="classpFlow_1_1timeInterval.html#a690a47d7890165ea3dd242b11fafc07a">inTimeRange</a>()) <span class="keywordflow">return</span> p;</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">return</span> p + <span class="keyword">static_cast<</span><a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a><span class="keyword">></span>(0.5)*dt*(<a class="code" href="classpFlow_1_1vibrating.html#a51174e4a5d806dc50a1198168c89227b">velocity0_</a>+<a class="code" href="classpFlow_1_1vibrating.html#a719c65328bce1858f7f090f430b8fe7a">velocity_</a>);</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  }</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="comment">// - IO operation</span></div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a> </div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">bool</span> <a class="code" href="classpFlow_1_1vibrating.html#ab25b05023549e7fec0ee1d0f6ce239dd">read</a>(<span class="keyword">const</span> <a class="code" href="classpFlow_1_1dictionary.html">dictionary</a>& dict);</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a></div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">bool</span> <a class="code" href="classpFlow_1_1vibrating.html#a279dae2ee3345fbb2b31e5af9ec0a5b4">write</a>(<a class="code" href="classpFlow_1_1dictionary.html">dictionary</a>& dict) <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a></div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">bool</span> <a class="code" href="classpFlow_1_1vibrating.html#ab25b05023549e7fec0ee1d0f6ce239dd">read</a>(<a class="code" href="classpFlow_1_1iIstream.html">iIstream</a>& is);</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a></div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordtype">bool</span> <a class="code" href="classpFlow_1_1vibrating.html#a279dae2ee3345fbb2b31e5af9ec0a5b4">write</a>(<a class="code" href="classpFlow_1_1iOstream.html">iOstream</a>& os)<span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> };</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a0c2df05cf0d4c01b7e330ecd3bcc0693"> 116</a></span> <span class="keyword">inline</span> <a class="code" href="classpFlow_1_1iOstream.html">iOstream</a>& <a class="code" href="namespacepFlow.html#a148d74ad0977268be8ea8b26a147f619">operator <<</a>(<a class="code" href="classpFlow_1_1iOstream.html">iOstream</a>& os, <span class="keyword">const</span> <a class="code" href="classpFlow_1_1vibrating.html">vibrating</a>& obj)</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> {</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">if</span>(!obj.<a class="code" href="classpFlow_1_1vibrating.html#a279dae2ee3345fbb2b31e5af9ec0a5b4">write</a>(os))</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  {</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="error_8hpp.html#aad22a1cd3b45a97ac8cd195f06fe61fe">fatalExit</a>;</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">return</span> os;</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> }</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="namespacepFlow.html#ab559b47bba943e73e6ff20cbaa53892a"> 125</a></span> <span class="keyword">inline</span> <a class="code" href="classpFlow_1_1iIstream.html">iIstream</a>& <a class="code" href="namespacepFlow.html#a85ed561d066dae339196cd058783674f">operator >></a>(<a class="code" href="classpFlow_1_1iIstream.html">iIstream</a>& is, <a class="code" href="classpFlow_1_1vibrating.html">vibrating</a>& obj)</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> {</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">if</span>( !obj.<a class="code" href="classpFlow_1_1vibrating.html#ab25b05023549e7fec0ee1d0f6ce239dd">read</a>(is) )</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  {</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="error_8hpp.html#aad22a1cd3b45a97ac8cd195f06fe61fe">fatalExit</a>;</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  }</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> is;</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> }</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  </div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> }</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="preprocessor">#endif</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<div class="ttc" id="atimeInterval_8hpp_html"><div class="ttname"><a href="timeInterval_8hpp.html">timeInterval.hpp</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_1vibrating_html_a00b0c9642be1f1e40745c74d462bd774"><div class="ttname"><a href="classpFlow_1_1vibrating.html#a00b0c9642be1f1e40745c74d462bd774">pFlow::vibrating::angularFreq_</a></div><div class="ttdeci">realx3 angularFreq_</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8hpp_source.html#l00044">vibrating.hpp:44</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html"><div class="ttname"><a href="classpFlow_1_1vibrating.html">pFlow::vibrating</a></div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8hpp_source.html#l00036">vibrating.hpp:36</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html_a51174e4a5d806dc50a1198168c89227b"><div class="ttname"><a href="classpFlow_1_1vibrating.html#a51174e4a5d806dc50a1198168c89227b">pFlow::vibrating::velocity0_</a></div><div class="ttdeci">realx3 velocity0_</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8hpp_source.html#l00052">vibrating.hpp:52</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1timeInterval_html_a1f76f3cab93a628ecd4cf0db9b9a6dcb"><div class="ttname"><a href="classpFlow_1_1timeInterval.html#a1f76f3cab93a628ecd4cf0db9b9a6dcb">pFlow::timeInterval::startTime</a></div><div class="ttdeci">INLINE_FUNCTION_HD auto startTime() const</div><div class="ttdef"><b>Definition:</b> <a href="timeInterval_8hpp_source.html#l00045">timeInterval.hpp:45</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_aee6110d73360fe9b98a9a0b5d6517f5b"><div class="ttname"><a href="namespacepFlow.html#aee6110d73360fe9b98a9a0b5d6517f5b">pFlow::sin</a></div><div class="ttdeci">INLINE_FUNCTION_HD real sin(real x)</div><div class="ttdef"><b>Definition:</b> <a href="math_8hpp_source.html#l00168">math.hpp:168</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html_a3b89f616e7744d1ea88bb39300fce4c4"><div class="ttname"><a href="classpFlow_1_1vibrating.html#a3b89f616e7744d1ea88bb39300fce4c4">pFlow::vibrating::transferPoint</a></div><div class="ttdeci">INLINE_FUNCTION_HD realx3 transferPoint(const realx3 &p, real dt)</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8hpp_source.html#l00095">vibrating.hpp:95</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html_a6a741ca4b36f2376aeb2650d274bc2b0"><div class="ttname"><a href="classpFlow_1_1vibrating.html#a6a741ca4b36f2376aeb2650d274bc2b0">pFlow::vibrating::calculateVelocity</a></div><div class="ttdeci">INLINE_FUNCTION_HD void calculateVelocity()</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8hpp_source.html#l00055">vibrating.hpp:55</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html_a2300ceff97957bb812e2ee03ecc97264"><div class="ttname"><a href="classpFlow_1_1vibrating.html#a2300ceff97957bb812e2ee03ecc97264">pFlow::vibrating::operator=</a></div><div class="ttdeci">vibrating & operator=(const vibrating &)=default</div></div>
|
|
<div class="ttc" id="anamespacepFlow_html"><div class="ttname"><a href="namespacepFlow.html">pFlow</a></div><div class="ttdef"><b>Definition:</b> <a href="demComponent_8hpp_source.html#l00028">demComponent.hpp:28</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html_a719c65328bce1858f7f090f430b8fe7a"><div class="ttname"><a href="classpFlow_1_1vibrating.html#a719c65328bce1858f7f090f430b8fe7a">pFlow::vibrating::velocity_</a></div><div class="ttdeci">realx3 velocity_</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8hpp_source.html#l00050">vibrating.hpp:50</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_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_1timeInterval_html_ad14a6af4583f1c85a17a40ff5ccb8794"><div class="ttname"><a href="classpFlow_1_1timeInterval.html#ad14a6af4583f1c85a17a40ff5ccb8794">pFlow::timeInterval::time</a></div><div class="ttdeci">INLINE_FUNCTION_HD auto time() const</div><div class="ttdef"><b>Definition:</b> <a href="timeInterval_8hpp_source.html#l00057">timeInterval.hpp:57</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html_a5de4c19d1d86f8750037b13153fa9506"><div class="ttname"><a href="classpFlow_1_1vibrating.html#a5de4c19d1d86f8750037b13153fa9506">pFlow::vibrating::phaseAngle_</a></div><div class="ttdeci">realx3 phaseAngle_</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8hpp_source.html#l00046">vibrating.hpp:46</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html_a820318fa567848e61c6d25424bff8845"><div class="ttname"><a href="classpFlow_1_1vibrating.html#a820318fa567848e61c6d25424bff8845">pFlow::vibrating::linTangentialVelocityPoint</a></div><div class="ttdeci">INLINE_FUNCTION_HD realx3 linTangentialVelocityPoint(const realx3 &p) const</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8hpp_source.html#l00089">vibrating.hpp:89</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html_ab25b05023549e7fec0ee1d0f6ce239dd"><div class="ttname"><a href="classpFlow_1_1vibrating.html#ab25b05023549e7fec0ee1d0f6ce239dd">pFlow::vibrating::read</a></div><div class="ttdeci">FUNCTION_H bool read(const dictionary &dict)</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8cpp_source.html#l00040">vibrating.cpp:40</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a85ed561d066dae339196cd058783674f"><div class="ttname"><a href="namespacepFlow.html#a85ed561d066dae339196cd058783674f">pFlow::operator>></a></div><div class="ttdeci">INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)</div><div class="ttdef"><b>Definition:</b> <a href="AdamsBashforth3_8hpp_source.html#l00041">AdamsBashforth3.hpp:41</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1timeInterval_html_a690a47d7890165ea3dd242b11fafc07a"><div class="ttname"><a href="classpFlow_1_1timeInterval.html#a690a47d7890165ea3dd242b11fafc07a">pFlow::timeInterval::inTimeRange</a></div><div class="ttdeci">INLINE_FUNCTION_HD bool inTimeRange() const</div><div class="ttdef"><b>Definition:</b> <a href="timeInterval_8hpp_source.html#l00076">timeInterval.hpp:76</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="anamespacepFlow_html_a148d74ad0977268be8ea8b26a147f619"><div class="ttname"><a href="namespacepFlow.html#a148d74ad0977268be8ea8b26a147f619">pFlow::operator<<</a></div><div class="ttdeci">INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)</div><div class="ttdef"><b>Definition:</b> <a href="AdamsBashforth3_8hpp_source.html#l00057">AdamsBashforth3.hpp:57</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="astreams_8hpp_html"><div class="ttname"><a href="streams_8hpp.html">streams.hpp</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html_a279dae2ee3345fbb2b31e5af9ec0a5b4"><div class="ttname"><a href="classpFlow_1_1vibrating.html#a279dae2ee3345fbb2b31e5af9ec0a5b4">pFlow::vibrating::write</a></div><div class="ttdeci">FUNCTION_H bool write(dictionary &dict) const</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8cpp_source.html#l00055">vibrating.cpp:55</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html_a0c0f53f98461312b9cf461aa83d3de51"><div class="ttname"><a href="classpFlow_1_1vibrating.html#a0c0f53f98461312b9cf461aa83d3de51">pFlow::vibrating::setTime</a></div><div class="ttdeci">INLINE_FUNCTION_HD void setTime(real t)</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8hpp_source.html#l00081">vibrating.hpp:81</a></div></div>
|
|
<div class="ttc" id="apFlowMacros_8hpp_html_a8e2f73fa5c113f21c9c9edb67a974f5e"><div class="ttname"><a href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div><div class="ttdeci">#define INLINE_FUNCTION_HD</div><div class="ttdef"><b>Definition:</b> <a href="pFlowMacros_8hpp_source.html#l00051">pFlowMacros.hpp:51</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1triple_html"><div class="ttname"><a href="classpFlow_1_1triple.html">pFlow::triple< real ></a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1timeInterval_html_a0c0f53f98461312b9cf461aa83d3de51"><div class="ttname"><a href="classpFlow_1_1timeInterval.html#a0c0f53f98461312b9cf461aa83d3de51">pFlow::timeInterval::setTime</a></div><div class="ttdeci">INLINE_FUNCTION_HD void setTime(real t)</div><div class="ttdef"><b>Definition:</b> <a href="timeInterval_8hpp_source.html#l00063">timeInterval.hpp:63</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 &s1, const real &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_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 class="ttc" id="aclasspFlow_1_1vibrating_html_a3a6da07d4af1a874177be0d6535c3511"><div class="ttname"><a href="classpFlow_1_1vibrating.html#a3a6da07d4af1a874177be0d6535c3511">pFlow::vibrating::vibrating</a></div><div class="ttdeci">FUNCTION_HD vibrating()</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8hpp_source.html#l00069">vibrating.hpp:69</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1vibrating_html_ab99817cefd7dcc788c7d129b270bbfb9"><div class="ttname"><a href="classpFlow_1_1vibrating.html#ab99817cefd7dcc788c7d129b270bbfb9">pFlow::vibrating::amplitude_</a></div><div class="ttdeci">realx3 amplitude_</div><div class="ttdef"><b>Definition:</b> <a href="vibrating_8hpp_source.html#l00048">vibrating.hpp:48</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_ce79a630321861b087ba326c0e4a9313.html">vibrating</a></li><li class="navelem"><a class="el" href="vibrating_8hpp.html">vibrating.hpp</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>
|