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

183 lines
20 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"/>
<meta name="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.">
<title>PhasicFlow: solvers/sphereGranFlow/createDEMComponents.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&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function() { init_search(); });
/* @license-end */
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></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" >
<tbody>
<tr>
<td id="projectlogo"><a href="https://github.com/PhasicFlow"><img alt="Logo" src="phasicFlow_logo.png"></a></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>
<tr>
<td id="projectbrief">
<a href="https://https://cemf.ir">www.cemf.ir</a>
</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('sphereGranFlow_2createDEMComponents_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">createDEMComponents.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="sphereGranFlow_2createDEMComponents_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>&#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="comment">//</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<a class="code" href="grainGranFlow_2createDEMComponents_8hpp.html#a91970fa54ad14e3975c1e01d61c27882">REPORT</a>(0)&lt;&lt;<span class="stringliteral">&quot;\nReading sphere particles . . .&quot;</span>&lt;&lt;<a class="code" href="streams_8hpp.html#a1861619f2a6e102d0043a98577c8c9e8">END_REPORT</a>;</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<a class="code" href="classpFlow_1_1sphereParticles.html">pFlow::sphereParticles</a> <a class="code" href="iterateSphereParticles_2createDEMComponents_8hpp.html#ae7f117d3f7cdd8cae2bf2913f91e4d74">sphParticles</a>(<a class="code" href="initialize__Control_8hpp.html#a4f5e4e852648762473ecd75a907417ca">Control</a>, <a class="code" href="setProperty_8hpp.html#ab0e7d0f9466a55a6fdb2417bc44ca707">proprties</a>);</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;<span class="comment">//</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<a class="code" href="grainGranFlow_2createDEMComponents_8hpp.html#a91970fa54ad14e3975c1e01d61c27882">REPORT</a>(0)&lt;&lt;<span class="stringliteral">&quot;\nCreating particle insertion object . . .&quot;</span>&lt;&lt;<a class="code" href="streams_8hpp.html#a1861619f2a6e102d0043a98577c8c9e8">END_REPORT</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment">/*auto&amp; sphInsertion = </span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment"> Control.caseSetup().emplaceObject&lt;sphereInsertion&gt;(</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment"> objectFile(</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment"> insertionFile__,</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment"> &quot;&quot;,</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment"> objectFile::READ_ALWAYS,</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment"> objectFile::WRITE_ALWAYS</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment"> ),</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment"> sphParticles,</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="comment"> sphParticles.shapes()</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="comment"> );*/</span></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"><a class="line" href="sphereGranFlow_2createDEMComponents_8hpp.html#a84c40199c91da9a7888debd293f2d7b9"> 39</a></span>&#160;<span class="keyword">auto</span> <a class="code" href="sphereGranFlow_2createDEMComponents_8hpp.html#a84c40199c91da9a7888debd293f2d7b9">sphInsertion</a> = <a class="code" href="namespacepFlow.html#ae2e0749fbe2e30cbf9061410cfccf232">pFlow::sphereInsertion</a>(</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="iterateSphereParticles_2createDEMComponents_8hpp.html#ae7f117d3f7cdd8cae2bf2913f91e4d74">sphParticles</a>, </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="iterateSphereParticles_2createDEMComponents_8hpp.html#ae7f117d3f7cdd8cae2bf2913f91e4d74">sphParticles</a>.<a class="code" href="classpFlow_1_1sphereParticles.html#a42e28b27090d72b9a10ca8142216be37">spheres</a>());</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<a class="code" href="grainGranFlow_2createDEMComponents_8hpp.html#a91970fa54ad14e3975c1e01d61c27882">REPORT</a>(0)&lt;&lt;<span class="stringliteral">&quot;\nCreating interaction model for sphere-sphere contact and sphere-wall contact . . .&quot;</span>&lt;&lt;<a class="code" href="streams_8hpp.html#a1861619f2a6e102d0043a98577c8c9e8">END_REPORT</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="sphereGranFlow_2createDEMComponents_8hpp.html#ae407a77fb97d4e6375d136c1add58d21"> 44</a></span>&#160;<span class="keyword">auto</span> <a class="code" href="grainGranFlow_2createDEMComponents_8hpp.html#ae407a77fb97d4e6375d136c1add58d21">interactionPtr</a> = <a class="code" href="classpFlow_1_1interaction.html#a4719440c5da75bf4bc6776501d106bf9">pFlow::interaction::create</a>(</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <a class="code" href="initialize__Control_8hpp.html#a4f5e4e852648762473ecd75a907417ca">Control</a>,</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="iterateSphereParticles_2createDEMComponents_8hpp.html#ae7f117d3f7cdd8cae2bf2913f91e4d74">sphParticles</a>,</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="code" href="setSurfaceGeometry_8hpp.html#a195e279064ba2595c36f5f8d504822cb">surfGeometry</a></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; );</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="sphereGranFlow_2createDEMComponents_8hpp.html#affb29a66c2605b3f871b00987e41053c"> 50</a></span>&#160;<span class="keyword">auto</span>&amp; <a class="code" href="sphereGranFlow_2createDEMComponents_8hpp.html#affb29a66c2605b3f871b00987e41053c">sphInteraction</a> = <a class="code" href="grainGranFlow_2createDEMComponents_8hpp.html#ae407a77fb97d4e6375d136c1add58d21">interactionPtr</a>();</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="agrainGranFlow_2createDEMComponents_8hpp_html_ae407a77fb97d4e6375d136c1add58d21"><div class="ttname"><a href="grainGranFlow_2createDEMComponents_8hpp.html#ae407a77fb97d4e6375d136c1add58d21">interactionPtr</a></div><div class="ttdeci">auto interactionPtr</div><div class="ttdef"><b>Definition:</b> <a href="grainGranFlow_2createDEMComponents_8hpp_source.html#l00044">createDEMComponents.hpp:44</a></div></div>
<div class="ttc" id="aclasspFlow_1_1interaction_html_a4719440c5da75bf4bc6776501d106bf9"><div class="ttname"><a href="classpFlow_1_1interaction.html#a4719440c5da75bf4bc6776501d106bf9">pFlow::interaction::create</a></div><div class="ttdeci">static uniquePtr&lt; interaction &gt; create(systemControl &amp;control, const particles &amp;prtcl, const geometry &amp;geom)</div><div class="ttdef"><b>Definition:</b> <a href="interaction_8cpp_source.html#l00048">interaction.cpp:48</a></div></div>
<div class="ttc" id="aclasspFlow_1_1sphereParticles_html_a42e28b27090d72b9a10ca8142216be37"><div class="ttname"><a href="classpFlow_1_1sphereParticles.html#a42e28b27090d72b9a10ca8142216be37">pFlow::sphereParticles::spheres</a></div><div class="ttdeci">const auto &amp; spheres() const</div><div class="ttdoc">const reference to shapes object</div><div class="ttdef"><b>Definition:</b> <a href="sphereParticles_8hpp_source.html#l00150">sphereParticles.hpp:150</a></div></div>
<div class="ttc" id="asetSurfaceGeometry_8hpp_html_a195e279064ba2595c36f5f8d504822cb"><div class="ttname"><a href="setSurfaceGeometry_8hpp.html#a195e279064ba2595c36f5f8d504822cb">surfGeometry</a></div><div class="ttdeci">auto &amp; surfGeometry</div><div class="ttdef"><b>Definition:</b> <a href="setSurfaceGeometry_8hpp_source.html#l00026">setSurfaceGeometry.hpp:26</a></div></div>
<div class="ttc" id="asphereGranFlow_2createDEMComponents_8hpp_html_a84c40199c91da9a7888debd293f2d7b9"><div class="ttname"><a href="sphereGranFlow_2createDEMComponents_8hpp.html#a84c40199c91da9a7888debd293f2d7b9">sphInsertion</a></div><div class="ttdeci">auto sphInsertion</div><div class="ttdef"><b>Definition:</b> <a href="sphereGranFlow_2createDEMComponents_8hpp_source.html#l00039">createDEMComponents.hpp:39</a></div></div>
<div class="ttc" id="aclasspFlow_1_1sphereParticles_html"><div class="ttname"><a href="classpFlow_1_1sphereParticles.html">pFlow::sphereParticles</a></div><div class="ttdoc">Class for managing spherical particles.</div><div class="ttdef"><b>Definition:</b> <a href="sphereParticles_8hpp_source.html#l00042">sphereParticles.hpp:42</a></div></div>
<div class="ttc" id="asetProperty_8hpp_html_ab0e7d0f9466a55a6fdb2417bc44ca707"><div class="ttname"><a href="setProperty_8hpp.html#ab0e7d0f9466a55a6fdb2417bc44ca707">proprties</a></div><div class="ttdeci">auto proprties</div><div class="ttdef"><b>Definition:</b> <a href="setProperty_8hpp_source.html#l00026">setProperty.hpp:26</a></div></div>
<div class="ttc" id="astreams_8hpp_html_a1861619f2a6e102d0043a98577c8c9e8"><div class="ttname"><a href="streams_8hpp.html#a1861619f2a6e102d0043a98577c8c9e8">END_REPORT</a></div><div class="ttdeci">#define END_REPORT</div><div class="ttdef"><b>Definition:</b> <a href="streams_8hpp_source.html#l00040">streams.hpp:40</a></div></div>
<div class="ttc" id="asphereGranFlow_2createDEMComponents_8hpp_html_affb29a66c2605b3f871b00987e41053c"><div class="ttname"><a href="sphereGranFlow_2createDEMComponents_8hpp.html#affb29a66c2605b3f871b00987e41053c">sphInteraction</a></div><div class="ttdeci">auto &amp; sphInteraction</div><div class="ttdef"><b>Definition:</b> <a href="sphereGranFlow_2createDEMComponents_8hpp_source.html#l00050">createDEMComponents.hpp:50</a></div></div>
<div class="ttc" id="agrainGranFlow_2createDEMComponents_8hpp_html_a91970fa54ad14e3975c1e01d61c27882"><div class="ttname"><a href="grainGranFlow_2createDEMComponents_8hpp.html#a91970fa54ad14e3975c1e01d61c27882">REPORT</a></div><div class="ttdeci">REPORT(0)&lt;&lt;&quot;\nReading sphere particles . . .&quot;&lt;&lt; END_REPORT</div></div>
<div class="ttc" id="anamespacepFlow_html_ae2e0749fbe2e30cbf9061410cfccf232"><div class="ttname"><a href="namespacepFlow.html#ae2e0749fbe2e30cbf9061410cfccf232">pFlow::sphereInsertion</a></div><div class="ttdeci">Insertion&lt; sphereShape &gt; sphereInsertion</div><div class="ttdef"><b>Definition:</b> <a href="Insertions_8hpp_source.html#l00033">Insertions.hpp:33</a></div></div>
<div class="ttc" id="aiterateSphereParticles_2createDEMComponents_8hpp_html_ae7f117d3f7cdd8cae2bf2913f91e4d74"><div class="ttname"><a href="iterateSphereParticles_2createDEMComponents_8hpp.html#ae7f117d3f7cdd8cae2bf2913f91e4d74">sphParticles</a></div><div class="ttdeci">pFlow::sphereParticles sphParticles(Control, proprties)</div></div>
<div class="ttc" id="ainitialize__Control_8hpp_html_a4f5e4e852648762473ecd75a907417ca"><div class="ttname"><a href="initialize__Control_8hpp.html#a4f5e4e852648762473ecd75a907417ca">Control</a></div><div class="ttdeci">auto &amp; Control</div><div class="ttdef"><b>Definition:</b> <a href="initialize__Control_8hpp_source.html#l00047">initialize_Control.hpp:47</a></div></div>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_65b24c28d0f232e494405d4f9f0c5236.html">solvers</a></li><li class="navelem"><a class="el" href="dir_ac9f1d02bd348986b458efcb0494a045.html">sphereGranFlow</a></li><li class="navelem"><a class="el" href="sphereGranFlow_2createDEMComponents_8hpp.html">createDEMComponents.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>