<metaname="description"content="PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU.">
<!-- iframe showing the search results (closed by default) -->
<divid="MSearchResultsWindow">
<iframesrc="javascript:void(0)"frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<divclass="header">
<divclass="headertitle">
<divclass="title">vibrating.cpp</div></div>
</div><!--header-->
<divclass="contents">
<ahref="vibrating_8cpp.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/*------------------------------- phasicFlow ---------------------------------</span></div>
<divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment"> O C enter of</span></div>
<divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment"> O O E ngineering and</span></div>
<divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment"> O O M ultiscale modeling of</span></div>
<divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment"> OOOOOOO F luid flow </span></div>
<divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment"> This file is part of phasicFlow code. It is a free software for simulating </span></div>
<divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment"> granular and multiphase flows. You can redistribute it and/or modify it under</span></div>
<divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment"> the terms of GNU General Public License v3 or any other later versions. </span></div>
<divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment"> phasicFlow is distributed to help others in their research in the field of </span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the</span></div>
<divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="comment"> implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span></div>
<divclass="line"><aname="l00032"></a><spanclass="lineno"> 32</span> <spanclass="stringliteral">" error in reading vibrating from dictionary "</span><< dict.<aclass="code"href="classpFlow_1_1dictionary.html#a85c3c1fce0c14d36030092df2f27b632">globalName</a>()<<<aclass="code"href="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">endl</a>;</div>
<divclass="line"><aname="l00063"></a><spanclass="lineno"> 63</span> <spanclass="stringliteral">" error in writing angularFreq to dictionary "</span><< dict.<aclass="code"href="classpFlow_1_1dictionary.html#a85c3c1fce0c14d36030092df2f27b632">globalName</a>()<<<aclass="code"href="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">endl</a>;</div>
<divclass="line"><aname="l00070"></a><spanclass="lineno"> 70</span> <spanclass="stringliteral">" error in writing phaseAngle to dictionary "</span><< dict.<aclass="code"href="classpFlow_1_1dictionary.html#a85c3c1fce0c14d36030092df2f27b632">globalName</a>()<<<aclass="code"href="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">endl</a>;</div>
<divclass="line"><aname="l00077"></a><spanclass="lineno"> 77</span> <spanclass="stringliteral">" error in writing amplitude to dictionary "</span><< dict.<aclass="code"href="classpFlow_1_1dictionary.html#a85c3c1fce0c14d36030092df2f27b632">globalName</a>()<<<aclass="code"href="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">endl</a>;</div>
<divclass="ttc"id="aerror_8hpp_html_a6d29ef74f19f6d5a225841705985eb8b"><divclass="ttname"><ahref="error_8hpp.html#a6d29ef74f19f6d5a225841705985eb8b">notImplementedFunction</a></div><divclass="ttdeci">#define notImplementedFunction</div><divclass="ttdoc">Report that a function is yet not implemented.</div><divclass="ttdef"><b>Definition:</b><ahref="error_8hpp_source.html#l00084">error.hpp:84</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1dictionary_html_a5585dc9a8b971fbfe2c99fdb75c5d647"><divclass="ttname"><ahref="classpFlow_1_1dictionary.html#a5585dc9a8b971fbfe2c99fdb75c5d647">pFlow::dictionary::getValOrSet</a></div><divclass="ttdeci">T getValOrSet(const word &keyword, const T &setVal) const</div><divclass="ttdoc">get the value of data entry or if not found, set the value to setVal</div><divclass="ttdef"><b>Definition:</b><ahref="dictionary_8hpp_source.html#l00415">dictionary.hpp:415</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1dictionary_html_a85c3c1fce0c14d36030092df2f27b632"><divclass="ttname"><ahref="classpFlow_1_1dictionary.html#a85c3c1fce0c14d36030092df2f27b632">pFlow::dictionary::globalName</a></div><divclass="ttdeci">virtual word globalName() const</div><divclass="ttdoc">global name of entry, separated with dots</div><divclass="ttdef"><b>Definition:</b><ahref="dictionary_8cpp_source.html#l00356">dictionary.cpp:356</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1dictionary_html_a6ae2ea14b8b5e5661c2f207aae2d4bdc"><divclass="ttname"><ahref="classpFlow_1_1dictionary.html#a6ae2ea14b8b5e5661c2f207aae2d4bdc">pFlow::dictionary::add</a></div><divclass="ttdeci">bool add(const word &keyword, const float &v)</div><divclass="ttdoc">add a float dataEntry</div><divclass="ttdef"><b>Definition:</b><ahref="dictionary_8cpp_source.html#l00435">dictionary.cpp:435</a></div></div>
<divclass="ttc"id="anamespacepFlow_html_aba8f0c455a3fdb4b05ad33a25b13b189"><divclass="ttname"><ahref="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">pFlow::endl</a></div><divclass="ttdeci">iOstream & endl(iOstream &os)</div><divclass="ttdoc">Add newline and flush stream.</div><divclass="ttdef"><b>Definition:</b><ahref="iOstream_8hpp_source.html#l00341">iOstream.hpp:341</a></div></div>
<divclass="ttc"id="anamespacepFlow_html_a5164661f6974ad24fa90bf19433e6116"><divclass="ttname"><ahref="namespacepFlow.html#a5164661f6974ad24fa90bf19433e6116">pFlow::realx3</a></div><divclass="ttdeci">triple< real > realx3</div><divclass="ttdef"><b>Definition:</b><ahref="types_8hpp_source.html#l00043">types.hpp:43</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1IOstream_html_a367eb3425fc4e8270e2aa961df8ac8a5"><divclass="ttname"><ahref="classpFlow_1_1IOstream.html#a367eb3425fc4e8270e2aa961df8ac8a5">pFlow::IOstream::check</a></div><divclass="ttdeci">virtual bool check(const char *operation) const</div><divclass="ttdoc">Check IOstream status for given operation.</div><divclass="ttdef"><b>Definition:</b><ahref="IOstream_8cpp_source.html#l00042">IOstream.cpp:42</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1iIstream_html"><divclass="ttname"><ahref="classpFlow_1_1iIstream.html">pFlow::iIstream</a></div><divclass="ttdoc">Interface class for any input stream</div><divclass="ttdef"><b>Definition:</b><ahref="iIstream_8hpp_source.html#l00037">iIstream.hpp:37</a></div></div>
<divclass="ttc"id="aerror_8hpp_html_aca9aa547c8441e4410a65a2ce7c21554"><divclass="ttname"><ahref="error_8hpp.html#aca9aa547c8441e4410a65a2ce7c21554">fatalErrorInFunction</a></div><divclass="ttdeci">#define fatalErrorInFunction</div><divclass="ttdoc">Report a fatal error and function name and exit the application.</div><divclass="ttdef"><b>Definition:</b><ahref="error_8hpp_source.html#l00077">error.hpp:77</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1dictionary_html_a523bcff98ab38f3c5961e56eeb0b1d47"><divclass="ttname"><ahref="classpFlow_1_1dictionary.html#a523bcff98ab38f3c5961e56eeb0b1d47">pFlow::dictionary::getVal</a></div><divclass="ttdeci">T getVal(const word &keyword) const</div><divclass="ttdoc">get the value of data entry</div><divclass="ttdef"><b>Definition:</b><ahref="dictionary_8hpp_source.html#l00379">dictionary.hpp:379</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1iOstream_html"><divclass="ttname"><ahref="classpFlow_1_1iOstream.html">pFlow::iOstream</a></div><divclass="ttdoc">Interface class for any output stream.</div><divclass="ttdef"><b>Definition:</b><ahref="iOstream_8hpp_source.html#l00059">iOstream.hpp:59</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1iOstream_html_a21c60a5f3cd7a26eb97fa28923cbaec6"><divclass="ttname"><ahref="classpFlow_1_1iOstream.html#a21c60a5f3cd7a26eb97fa28923cbaec6">pFlow::iOstream::writeWordEntry</a></div><divclass="ttdeci">iOstream & writeWordEntry(const word &key, const T &value)</div><divclass="ttdoc">Write a keyword/value entry.</div><divclass="ttdef"><b>Definition:</b><ahref="iOstream_8hpp_source.html#l00239">iOstream.hpp:239</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1dictionary_html"><divclass="ttname"><ahref="classpFlow_1_1dictionary.html">pFlow::dictionary</a></div><divclass="ttdoc">Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...</div><divclass="ttdef"><b>Definition:</b><ahref="dictionary_8hpp_source.html#l00067">dictionary.hpp:67</a></div></div>