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

297 lines
42 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/Interaction/contactSearch/wallMappings/cellsWallLevels.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>
<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('cellsWallLevels_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">cellsWallLevels.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="cellsWallLevels_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="preprocessor">#ifndef __cellsWallLevels_hpp__</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#define __cellsWallLevels_hpp__</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;<span class="preprocessor">#include &quot;<a class="code" href="cellsWallLevel0_8hpp.html">cellsWallLevel0.hpp</a>&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacepFlow.html">pFlow</a></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;{</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="keyword">template</span>&lt;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keyword">typename</span> executionSpace</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; &gt;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classpFlow_1_1cellsWallLevels.html"> 32</a></span>&#160;<span class="keyword">class </span><a class="code" href="classpFlow_1_1cellsWallLevels.html">cellsWallLevels</a></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;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classpFlow_1_1cellsWallLevels.html#aea93ffa7f2f71a92e641169784a5486d"> 36</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classpFlow_1_1cellsWallLevel0.html">cellsWallLevel0Type</a> = <a class="code" href="classpFlow_1_1cellsWallLevel0.html">cellsWallLevel0&lt;executionSpace&gt;</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"><a class="line" href="classpFlow_1_1cellsWallLevels.html#ab7da9ad90b0959810d8f7b53f4a21ac8"> 38</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classpFlow_1_1cellsWallLevels.html#ab7da9ad90b0959810d8f7b53f4a21ac8">IdType</a> = <span class="keyword">typename</span> <a class="code" href="classpFlow_1_1cellsWallLevel0.html#a200e2b36a2cd413a512279c0089c6b50">cellsWallLevel0Type::IdType</a>;</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"><a class="line" href="classpFlow_1_1cellsWallLevels.html#af3f56b54b904aad6e266657cd440f800"> 40</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classpFlow_1_1cellsWallLevels.html#af3f56b54b904aad6e266657cd440f800">IndexType</a> = <span class="keyword">typename</span> <a class="code" href="classpFlow_1_1cellsWallLevel0.html#ae73570f5a8fa6f2a0123b6a44eadca22">cellsWallLevel0Type::IndexType</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classpFlow_1_1cellsWallLevels.html#a45e8eff03f89ed6ff2313ec3c9b34832"> 42</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classpFlow_1_1cellsWallLevels.html#a45e8eff03f89ed6ff2313ec3c9b34832">Cells</a> = <span class="keyword">typename</span> <a class="code" href="classpFlow_1_1cellsWallLevel0.html#aeddf2432738cfab3cda287d6fb96e048">cellsWallLevel0Type::Cells</a>;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classpFlow_1_1cellsWallLevels.html#a3810d08b3beabddce512c36e16a23cd7"> 44</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classpFlow_1_1cellsWallLevels.html#a3810d08b3beabddce512c36e16a23cd7">CellType</a> = <span class="keyword">typename</span> Cells::CellType;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classpFlow_1_1cellsWallLevels.html#a1e76bf654e24a1c7f07817404d2b5ff5"> 46</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classpFlow_1_1cellsWallLevels.html#a1e76bf654e24a1c7f07817404d2b5ff5">execution_space</a> = <span class="keyword">typename</span> <a class="code" href="classpFlow_1_1cellsWallLevel0.html#a268a0b77c6f89665e5ef14307a3f1731">cellsWallLevel0Type::execution_space</a>;</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"><a class="line" href="classpFlow_1_1cellsWallLevels.html#aaec8edb2e19eca233a24e6ec33d4cc92"> 48</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classpFlow_1_1cellsWallLevels.html#aaec8edb2e19eca233a24e6ec33d4cc92">memory_space</a> = <span class="keyword">typename</span> <a class="code" href="classpFlow_1_1cellsWallLevel0.html#ac5b08fe17cf30c7c64a5ee12370133e9">cellsWallLevel0Type::memory_space</a>;</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="classpFlow_1_1cellsWallLevels.html#a5e63edb05d6b5a08f98f8c077c391b4c"> 50</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classpFlow_1_1iBox.html">iBoxType</a> = <a class="code" href="classpFlow_1_1iBox.html">iBox&lt;IndexType&gt;</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="keyword">protected</span>:</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"><a class="line" href="classpFlow_1_1cellsWallLevels.html#a1497726a0bf80fdb9d9e481c0b96de97"> 54</a></span>&#160; <a class="code" href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">int32</a> <a class="code" href="classpFlow_1_1cellsWallLevels.html#a1497726a0bf80fdb9d9e481c0b96de97">numLevles_</a>=1;</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"><a class="line" href="classpFlow_1_1cellsWallLevels.html#aeac9630252fe748c6280779fa32ea9d2"> 57</a></span>&#160; <a class="code" href="classpFlow_1_1Vector.html">Vector&lt;cellsWallLevel0Type&gt;</a> <a class="code" href="classpFlow_1_1cellsWallLevels.html#aeac9630252fe748c6280779fa32ea9d2">cellsWallLevels_</a>; </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <a class="code" href="classpFlow_1_1cellsWallLevels.html#a269f2599880c33c12e56b3f5040339c4">TypeInfoNV</a>(<span class="stringliteral">&quot;cellsWallLevels&quot;</span>);</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <a class="code" href="pFlowMacros_8hpp.html#a4a0e2a760ea30cb5fe3d40c0cb3fe4a9">FUNCTION_H</a></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classpFlow_1_1cellsWallLevels.html#a9db45b11b8ef1116c90041f728ea28af"> 64</a></span>&#160; <a class="code" href="classpFlow_1_1cellsWallLevels.html#a9db45b11b8ef1116c90041f728ea28af">cellsWallLevels</a>(</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <a class="code" href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">int32</a> numLevels,</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keyword">const</span> <a class="code" href="classpFlow_1_1Vector.html">Vector&lt;Cells&gt;</a>&amp; cellsLevels,</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <a class="code" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> cellExtent,</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">int32</a> numPoints,</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="code" href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">int32</a> numElements,</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keyword">const</span> <a class="code" href="namespacepFlow.html#aca2b381231776d26ea7431837f78aa24">ViewType1D&lt;realx3,memory_space&gt;</a>&amp; points, </div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keyword">const</span> <a class="code" href="namespacepFlow.html#aca2b381231776d26ea7431837f78aa24">ViewType1D&lt;int32x3,memory_space&gt;</a>&amp; vertices</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; :</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <a class="code" href="classpFlow_1_1cellsWallLevels.html#a1497726a0bf80fdb9d9e481c0b96de97">numLevles_</a>(numLevels),</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <a class="code" href="classpFlow_1_1cellsWallLevels.html#aeac9630252fe748c6280779fa32ea9d2">cellsWallLevels_</a>(<span class="stringliteral">&quot;cellsWallLevels&quot;</span>,numLevels, numLevels, <a class="code" href="structRESERVE.html">RESERVE</a>())</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; {</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; </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordflow">for</span>(<a class="code" href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">int32</a> lvl=0; lvl&lt;<a class="code" href="classpFlow_1_1cellsWallLevels.html#a1497726a0bf80fdb9d9e481c0b96de97">numLevles_</a>; lvl++)</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="classpFlow_1_1cellsWallLevels.html#aeac9630252fe748c6280779fa32ea9d2">cellsWallLevels_</a>[lvl] = </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <a class="code" href="classpFlow_1_1cellsWallLevels.html#aea93ffa7f2f71a92e641169784a5486d">cellsWallLevel0Type</a>(</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; cellsLevels[lvl],</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; cellExtent,</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; numPoints,</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; numElements,</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; points,</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; vertices);</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; </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; </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> PairsContainer, <span class="keyword">typename</span> particleMapType&gt;</div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classpFlow_1_1cellsWallLevels.html#a5cbdc8f9467a44e7ca4cd7f7a443c7c6"> 96</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classpFlow_1_1cellsWallLevels.html#a5cbdc8f9467a44e7ca4cd7f7a443c7c6">broadSearch</a>(PairsContainer&amp; pairs, particleMapType&amp; particleMap)</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; {</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; <span class="comment">// map walls onto the cells</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordflow">for</span>(<a class="code" href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">int32</a> lvl=0; lvl&lt;<a class="code" href="classpFlow_1_1cellsWallLevels.html#a1497726a0bf80fdb9d9e481c0b96de97">numLevles_</a>; lvl++)</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; {</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <a class="code" href="classpFlow_1_1cellsWallLevels.html#aeac9630252fe748c6280779fa32ea9d2">cellsWallLevels_</a>[lvl].build();</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; }</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; this-&gt;<a class="code" href="classpFlow_1_1cellsWallLevels.html#a0bd39ea5c4205c7c8471c5a3dd772c2d">particleWallFindPairs</a>(pairs, particleMap);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</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; </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> PairsContainer, <span class="keyword">typename</span> particleMapType&gt;</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classpFlow_1_1cellsWallLevels.html#a0bd39ea5c4205c7c8471c5a3dd772c2d"> 111</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classpFlow_1_1cellsWallLevels.html#a0bd39ea5c4205c7c8471c5a3dd772c2d">particleWallFindPairs</a>(PairsContainer&amp; pairs, particleMapType&amp; particleMap)</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; {</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <a class="code" href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">int32</a> getFull = 1;</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">while</span> (getFull)</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; getFull = 0;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keywordflow">for</span>(<a class="code" href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">int32</a> lvl=0; lvl&lt;<a class="code" href="classpFlow_1_1cellsWallLevels.html#a1497726a0bf80fdb9d9e481c0b96de97">numLevles_</a>; lvl++)</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; {</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; getFull += </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <a class="code" href="classpFlow_1_1cellsWallLevels.html#aeac9630252fe748c6280779fa32ea9d2">cellsWallLevels_</a>[lvl].findPairsElementRangeCount(</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; pairs, </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; particleMap.getCellIterator(lvl));</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; </div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordflow">if</span>(getFull)</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; {</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="comment">// - resize the container</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="comment">// note that getFull now shows the number of failed insertions.</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <a class="code" href="namespacepFlow.html#abd01e8e67e3d94cab04ecaaf4f85ac1b">uint32</a> len = <a class="code" href="namespacepFlow.html#ae14bf16748b3144baa1112f08c2a83b1">max</a>(getFull, 5000);</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keyword">auto</span> oldCap = pairs.capacity();</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; pairs.increaseCapacityBy(len);</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <a class="code" href="streams_8hpp.html#a41fa3612202db2d335c330fb061e0054">INFORMATION</a>&lt;&lt;<span class="stringliteral">&quot;Contact pair container capacity increased from &quot;</span>&lt;&lt;</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; oldCap &lt;&lt; <span class="stringliteral">&quot; to &quot;</span> </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; &lt;&lt; pairs.capacity() &lt;&lt;<span class="stringliteral">&quot; in cellsWallLevels.&quot;</span>&lt;&lt;<a class="code" href="streams_8hpp.html#a18f2ecec3edb6662b3a89a41d3787584">endINFO</a>;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; Kokkos::fence();</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; }</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; }</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; }</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;}; <span class="comment">// cellsWallLevels</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; </div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;} <span class="comment">// pFlow</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="preprocessor">#endif // __cellsWallLevels_hpp__</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclasspFlow_1_1cellsWallLevel0_html_ae73570f5a8fa6f2a0123b6a44eadca22"><div class="ttname"><a href="classpFlow_1_1cellsWallLevel0.html#ae73570f5a8fa6f2a0123b6a44eadca22">pFlow::cellsWallLevel0::IndexType</a></div><div class="ttdeci">int32 IndexType</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevel0_8hpp_source.html#l00045">cellsWallLevel0.hpp:45</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_a45e8eff03f89ed6ff2313ec3c9b34832"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#a45e8eff03f89ed6ff2313ec3c9b34832">pFlow::cellsWallLevels::Cells</a></div><div class="ttdeci">typename cellsWallLevel0Type::Cells Cells</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00042">cellsWallLevels.hpp:42</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_a269f2599880c33c12e56b3f5040339c4"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#a269f2599880c33c12e56b3f5040339c4">pFlow::cellsWallLevels::TypeInfoNV</a></div><div class="ttdeci">TypeInfoNV(&quot;cellsWallLevels&quot;)</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="aclasspFlow_1_1cellsWallLevels_html_a9db45b11b8ef1116c90041f728ea28af"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#a9db45b11b8ef1116c90041f728ea28af">pFlow::cellsWallLevels::cellsWallLevels</a></div><div class="ttdeci">FUNCTION_H cellsWallLevels(int32 numLevels, const Vector&lt; Cells &gt; &amp;cellsLevels, real cellExtent, int32 numPoints, int32 numElements, const ViewType1D&lt; realx3, memory_space &gt; &amp;points, const ViewType1D&lt; int32x3, memory_space &gt; &amp;vertices)</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00064">cellsWallLevels.hpp:64</a></div></div>
<div class="ttc" id="anamespacepFlow_html_abd01e8e67e3d94cab04ecaaf4f85ac1b"><div class="ttname"><a href="namespacepFlow.html#abd01e8e67e3d94cab04ecaaf4f85ac1b">pFlow::uint32</a></div><div class="ttdeci">unsigned int uint32</div><div class="ttdef"><b>Definition:</b> <a href="builtinTypes_8hpp_source.html#l00059">builtinTypes.hpp:59</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_a1497726a0bf80fdb9d9e481c0b96de97"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#a1497726a0bf80fdb9d9e481c0b96de97">pFlow::cellsWallLevels::numLevles_</a></div><div class="ttdeci">int32 numLevles_</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00054">cellsWallLevels.hpp:54</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevel0_html_a200e2b36a2cd413a512279c0089c6b50"><div class="ttname"><a href="classpFlow_1_1cellsWallLevel0.html#a200e2b36a2cd413a512279c0089c6b50">pFlow::cellsWallLevel0::IdType</a></div><div class="ttdeci">int32 IdType</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevel0_8hpp_source.html#l00043">cellsWallLevel0.hpp:43</a></div></div>
<div class="ttc" id="acellsWallLevel0_8hpp_html"><div class="ttname"><a href="cellsWallLevel0_8hpp.html">cellsWallLevel0.hpp</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_aeac9630252fe748c6280779fa32ea9d2"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#aeac9630252fe748c6280779fa32ea9d2">pFlow::cellsWallLevels::cellsWallLevels_</a></div><div class="ttdeci">Vector&lt; cellsWallLevel0Type &gt; cellsWallLevels_</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00057">cellsWallLevels.hpp:57</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html">pFlow::cellsWallLevels</a></div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00032">cellsWallLevels.hpp:32</a></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="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="astructRESERVE_html"><div class="ttname"><a href="structRESERVE.html">RESERVE</a></div><div class="ttdef"><b>Definition:</b> <a href="Vector_8hpp_source.html#l00038">Vector.hpp:38</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_aea93ffa7f2f71a92e641169784a5486d"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#aea93ffa7f2f71a92e641169784a5486d">pFlow::cellsWallLevels::cellsWallLevel0Type</a></div><div class="ttdeci">cellsWallLevel0&lt; executionSpace &gt; cellsWallLevel0Type</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00036">cellsWallLevels.hpp:36</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevel0_html_a268a0b77c6f89665e5ef14307a3f1731"><div class="ttname"><a href="classpFlow_1_1cellsWallLevel0.html#a268a0b77c6f89665e5ef14307a3f1731">pFlow::cellsWallLevel0::execution_space</a></div><div class="ttdeci">executionSpace execution_space</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevel0_8hpp_source.html#l00051">cellsWallLevel0.hpp:51</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_af3f56b54b904aad6e266657cd440f800"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#af3f56b54b904aad6e266657cd440f800">pFlow::cellsWallLevels::IndexType</a></div><div class="ttdeci">typename cellsWallLevel0Type::IndexType IndexType</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00040">cellsWallLevels.hpp:40</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_ab7da9ad90b0959810d8f7b53f4a21ac8"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#ab7da9ad90b0959810d8f7b53f4a21ac8">pFlow::cellsWallLevels::IdType</a></div><div class="ttdeci">typename cellsWallLevel0Type::IdType IdType</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00038">cellsWallLevels.hpp:38</a></div></div>
<div class="ttc" id="anamespacepFlow_html_aae6ad039f09c0676db11bd114136a3fa"><div class="ttname"><a href="namespacepFlow.html#aae6ad039f09c0676db11bd114136a3fa">pFlow::int32</a></div><div class="ttdeci">int int32</div><div class="ttdef"><b>Definition:</b> <a href="builtinTypes_8hpp_source.html#l00053">builtinTypes.hpp:53</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevel0_html_ac5b08fe17cf30c7c64a5ee12370133e9"><div class="ttname"><a href="classpFlow_1_1cellsWallLevel0.html#ac5b08fe17cf30c7c64a5ee12370133e9">pFlow::cellsWallLevel0::memory_space</a></div><div class="ttdeci">typename execution_space::memory_space memory_space</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevel0_8hpp_source.html#l00053">cellsWallLevel0.hpp:53</a></div></div>
<div class="ttc" id="anamespacepFlow_html_ae14bf16748b3144baa1112f08c2a83b1"><div class="ttname"><a href="namespacepFlow.html#ae14bf16748b3144baa1112f08c2a83b1">pFlow::max</a></div><div class="ttdeci">T max(const Vector&lt; T, Allocator &gt; &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="VectorMath_8hpp_source.html#l00164">VectorMath.hpp:164</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_a5cbdc8f9467a44e7ca4cd7f7a443c7c6"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#a5cbdc8f9467a44e7ca4cd7f7a443c7c6">pFlow::cellsWallLevels::broadSearch</a></div><div class="ttdeci">bool broadSearch(PairsContainer &amp;pairs, particleMapType &amp;particleMap)</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00096">cellsWallLevels.hpp:96</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevel0_html_aeddf2432738cfab3cda287d6fb96e048"><div class="ttname"><a href="classpFlow_1_1cellsWallLevel0.html#aeddf2432738cfab3cda287d6fb96e048">pFlow::cellsWallLevel0::Cells</a></div><div class="ttdeci">cells&lt; IndexType &gt; Cells</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevel0_8hpp_source.html#l00047">cellsWallLevel0.hpp:47</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_aaec8edb2e19eca233a24e6ec33d4cc92"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#aaec8edb2e19eca233a24e6ec33d4cc92">pFlow::cellsWallLevels::memory_space</a></div><div class="ttdeci">typename cellsWallLevel0Type::memory_space memory_space</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00048">cellsWallLevels.hpp:48</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_a3810d08b3beabddce512c36e16a23cd7"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#a3810d08b3beabddce512c36e16a23cd7">pFlow::cellsWallLevels::CellType</a></div><div class="ttdeci">typename Cells::CellType CellType</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00044">cellsWallLevels.hpp:44</a></div></div>
<div class="ttc" id="anamespacepFlow_html_aca2b381231776d26ea7431837f78aa24"><div class="ttname"><a href="namespacepFlow.html#aca2b381231776d26ea7431837f78aa24">pFlow::ViewType1D</a></div><div class="ttdeci">Kokkos::View&lt; T *, properties... &gt; ViewType1D</div><div class="ttdef"><b>Definition:</b> <a href="KokkosTypes_8hpp_source.html#l00062">KokkosTypes.hpp:62</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_a1e76bf654e24a1c7f07817404d2b5ff5"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#a1e76bf654e24a1c7f07817404d2b5ff5">pFlow::cellsWallLevels::execution_space</a></div><div class="ttdeci">typename cellsWallLevel0Type::execution_space execution_space</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00046">cellsWallLevels.hpp:46</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevel0_html"><div class="ttname"><a href="classpFlow_1_1cellsWallLevel0.html">pFlow::cellsWallLevel0</a></div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevel0_8hpp_source.html#l00037">cellsWallLevel0.hpp:37</a></div></div>
<div class="ttc" id="aclasspFlow_1_1iBox_html"><div class="ttname"><a href="classpFlow_1_1iBox.html">pFlow::iBox</a></div><div class="ttdef"><b>Definition:</b> <a href="iBox_8hpp_source.html#l00033">iBox.hpp:33</a></div></div>
<div class="ttc" id="aclasspFlow_1_1Vector_html"><div class="ttname"><a href="classpFlow_1_1Vector.html">pFlow::Vector</a></div><div class="ttdef"><b>Definition:</b> <a href="Vector_8hpp_source.html#l00046">Vector.hpp:46</a></div></div>
<div class="ttc" id="astreams_8hpp_html_a18f2ecec3edb6662b3a89a41d3787584"><div class="ttname"><a href="streams_8hpp.html#a18f2ecec3edb6662b3a89a41d3787584">endINFO</a></div><div class="ttdeci">#define endINFO</div><div class="ttdef"><b>Definition:</b> <a href="streams_8hpp_source.html#l00038">streams.hpp:38</a></div></div>
<div class="ttc" id="aclasspFlow_1_1cellsWallLevels_html_a0bd39ea5c4205c7c8471c5a3dd772c2d"><div class="ttname"><a href="classpFlow_1_1cellsWallLevels.html#a0bd39ea5c4205c7c8471c5a3dd772c2d">pFlow::cellsWallLevels::particleWallFindPairs</a></div><div class="ttdeci">bool particleWallFindPairs(PairsContainer &amp;pairs, particleMapType &amp;particleMap)</div><div class="ttdef"><b>Definition:</b> <a href="cellsWallLevels_8hpp_source.html#l00111">cellsWallLevels.hpp:111</a></div></div>
<div class="ttc" id="astreams_8hpp_html_a41fa3612202db2d335c330fb061e0054"><div class="ttname"><a href="streams_8hpp.html#a41fa3612202db2d335c330fb061e0054">INFORMATION</a></div><div class="ttdeci">#define INFORMATION</div><div class="ttdef"><b>Definition:</b> <a href="streams_8hpp_source.html#l00037">streams.hpp:37</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_521648a0ab4242664e9ecc37593f7519.html">Interaction</a></li><li class="navelem"><a class="el" href="dir_f27c6bb1e70979f7ed7175f297e69b7e.html">contactSearch</a></li><li class="navelem"><a class="el" href="dir_55e78d7e749749c6d788c124ff70191a.html">wallMappings</a></li><li class="navelem"><a class="el" href="cellsWallLevels_8hpp.html">cellsWallLevels.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>