<!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: src/Particles/SphereParticles/boundarySphereParticlesList.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&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&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('boundarySphereParticlesList_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">boundarySphereParticlesList.cpp</div> </div> </div><!--header--> <div class="contents"> <a href="boundarySphereParticlesList_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> <span class="preprocessor">#include "<a class="code" href="boundarySphereParticlesList_8hpp.html">boundarySphereParticlesList.hpp</a>"</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span>  </div> <div class="line"><a name="l00003"></a><span class="lineno"><a class="line" href="classpFlow_1_1boundarySphereParticlesList.html#a407b6d084dba1c020b939f25ec6f28dd"> 3</a></span> <a class="code" href="classpFlow_1_1boundarySphereParticlesList.html#a407b6d084dba1c020b939f25ec6f28dd">pFlow::boundarySphereParticlesList::boundarySphereParticlesList</a>(</div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  <span class="keyword">const</span> <a class="code" href="classpFlow_1_1boundaryList.html">boundaryList</a> &bndrs, </div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  <a class="code" href="classpFlow_1_1sphereParticles.html">sphereParticles</a> &prtcls</div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> )</div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> :</div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  <a class="code" href="classpFlow_1_1ListPtr.html">ListPtr</a>(bndrs.size()), </div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  boundaries_(bndrs)</div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> {</div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  <span class="keywordflow">for</span>(<span class="keyword">auto</span> i=0; i<<a class="code" href="classpFlow_1_1boundarySphereParticlesList.html#a34107dbe2de45d8ede13e6c9e62a8fdc">boundaries_</a>.<a class="code" href="classpFlow_1_1ListPtr.html#a259cb5a711406a8c3e5d937eb9350cca">size</a>(); i++)</div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  {</div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  this-><a class="code" href="classpFlow_1_1ListPtr.html#ac537dae37bad56910ff7498c84c8b727">set</a></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  (</div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  i, </div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <a class="code" href="classpFlow_1_1boundarySphereParticles.html#a1fb3212dfcf7708a179b401c84e3fb11">boundarySphereParticles::create</a>(<a class="code" href="classpFlow_1_1boundarySphereParticlesList.html#a34107dbe2de45d8ede13e6c9e62a8fdc">boundaries_</a>[i], prtcls)</div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  );</div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  }</div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> }</div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <div class="ttc" id="aclasspFlow_1_1ListPtr_html_a259cb5a711406a8c3e5d937eb9350cca"><div class="ttname"><a href="classpFlow_1_1ListPtr.html#a259cb5a711406a8c3e5d937eb9350cca">pFlow::ListPtr::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdef"><b>Definition:</b> <a href="ListPtrI_8hpp_source.html#l00266">ListPtrI.hpp:266</a></div></div> <div class="ttc" id="aclasspFlow_1_1ListPtr_html"><div class="ttname"><a href="classpFlow_1_1ListPtr.html">pFlow::ListPtr</a></div><div class="ttdef"><b>Definition:</b> <a href="ListPtr_8hpp_source.html#l00037">ListPtr.hpp:37</a></div></div> <div class="ttc" id="aclasspFlow_1_1boundarySphereParticles_html_a1fb3212dfcf7708a179b401c84e3fb11"><div class="ttname"><a href="classpFlow_1_1boundarySphereParticles.html#a1fb3212dfcf7708a179b401c84e3fb11">pFlow::boundarySphereParticles::create</a></div><div class="ttdeci">static uniquePtr< boundarySphereParticles > create(const boundaryBase &boundary, sphereParticles &prtcls)</div><div class="ttdef"><b>Definition:</b> <a href="boundarySphereParticles_8cpp_source.html#l00027">boundarySphereParticles.cpp:27</a></div></div> <div class="ttc" id="aclasspFlow_1_1boundarySphereParticlesList_html_a407b6d084dba1c020b939f25ec6f28dd"><div class="ttname"><a href="classpFlow_1_1boundarySphereParticlesList.html#a407b6d084dba1c020b939f25ec6f28dd">pFlow::boundarySphereParticlesList::boundarySphereParticlesList</a></div><div class="ttdeci">boundarySphereParticlesList(const boundaryList &bndrs, sphereParticles &prtcls)</div><div class="ttdef"><b>Definition:</b> <a href="boundarySphereParticlesList_8cpp_source.html#l00003">boundarySphereParticlesList.cpp:3</a></div></div> <div class="ttc" id="aclasspFlow_1_1boundaryList_html"><div class="ttname"><a href="classpFlow_1_1boundaryList.html">pFlow::boundaryList</a></div><div class="ttdef"><b>Definition:</b> <a href="boundaryList_8hpp_source.html#l00035">boundaryList.hpp:35</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="aboundarySphereParticlesList_8hpp_html"><div class="ttname"><a href="boundarySphereParticlesList_8hpp.html">boundarySphereParticlesList.hpp</a></div></div> <div class="ttc" id="aclasspFlow_1_1boundarySphereParticlesList_html_a34107dbe2de45d8ede13e6c9e62a8fdc"><div class="ttname"><a href="classpFlow_1_1boundarySphereParticlesList.html#a34107dbe2de45d8ede13e6c9e62a8fdc">pFlow::boundarySphereParticlesList::boundaries_</a></div><div class="ttdeci">const boundaryList & boundaries_</div><div class="ttdef"><b>Definition:</b> <a href="boundarySphereParticlesList_8hpp_source.html#l00019">boundarySphereParticlesList.hpp:19</a></div></div> <div class="ttc" id="aclasspFlow_1_1ListPtr_html_ac537dae37bad56910ff7498c84c8b727"><div class="ttname"><a href="classpFlow_1_1ListPtr.html#ac537dae37bad56910ff7498c84c8b727">pFlow::ListPtr< boundarySphereParticles >::set</a></div><div class="ttdeci">uniquePtr< boundarySphereParticles > set(size_t i, boundarySphereParticles *ptr)</div><div class="ttdef"><b>Definition:</b> <a href="ListPtrI_8hpp_source.html#l00155">ListPtrI.hpp:155</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_9e72493e858003bd3d74a55a2aedd075.html">Particles</a></li><li class="navelem"><a class="el" href="dir_ae10a04c09150cad5fefedcb2d995fdc.html">SphereParticles</a></li><li class="navelem"><a class="el" href="boundarySphereParticlesList_8cpp.html">boundarySphereParticlesList.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>