239 lines
30 KiB
HTML
239 lines
30 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: src/Interaction/contactSearch/contactSearchFunctions.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>
|
|
<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('contactSearchFunctions_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">contactSearchFunctions.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="contactSearchFunctions_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 __broadSearchFunctions_hpp__</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define __broadSearchFunctions_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> <span class="preprocessor">#include "<a class="code" href="types_8hpp.html">types.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="iBox_8hpp.html">iBox.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="keyword">namespace </span><a class="code" href="namespacepFlow.html">pFlow</a></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>  </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a09e092ab61b90f5515d60a7eb0d7e524"> 31</a></span> uint64_t <a class="code" href="namespacepFlow.html#a09e092ab61b90f5515d60a7eb0d7e524">splitBy3</a>(<span class="keyword">const</span> uint64_t val){</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  uint64_t x = val;</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  x = (x | x << 32) & 0x1f00000000ffff;</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  x = (x | x << 16) & 0x1f0000ff0000ff;</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  x = (x | x << 8) & 0x100f00f00f00f00f;</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  x = (x | x << 4) & 0x10c30c30c30c30c3;</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  x = (x | x << 2) & 0x1249249249249249;</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordflow">return</span> x;</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> <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="namespacepFlow.html#af9e399d88da408c52c6c167b651766e5"> 42</a></span> uint64_t <a class="code" href="namespacepFlow.html#af9e399d88da408c52c6c167b651766e5">xyzToMortonCode64</a>(uint64_t x, uint64_t y, uint64_t z)</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> {</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">return</span> <a class="code" href="namespacepFlow.html#a09e092ab61b90f5515d60a7eb0d7e524">splitBy3</a>(x) | (<a class="code" href="namespacepFlow.html#a09e092ab61b90f5515d60a7eb0d7e524">splitBy3</a>(y) << 1) | (<a class="code" href="namespacepFlow.html#a09e092ab61b90f5515d60a7eb0d7e524">splitBy3</a>(z) << 2);</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a51e811dd5563b1e1b759b091ef96c339"> 49</a></span> uint64_t <a class="code" href="namespacepFlow.html#a51e811dd5563b1e1b759b091ef96c339">getThirdBits</a>(uint64_t x)</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> {</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  x = x & 0x9249249249249249;</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  x = (x | (x >> 2)) & 0x30c30c30c30c30c3;</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  x = (x | (x >> 4)) & 0xf00f00f00f00f00f;</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  x = (x | (x >> 8)) & 0x00ff0000ff0000ff;</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  x = (x | (x >> 16)) & 0xffff00000000ffff;</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  x = (x | (x >> 32)) & 0x00000000ffffffff;</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">return</span> x;</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> }</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a48c34bfcf0b43fb8bd3a0ffc596b751d"> 62</a></span> <span class="keywordtype">void</span> <a class="code" href="namespacepFlow.html#a48c34bfcf0b43fb8bd3a0ffc596b751d">mortonCode64Toxyz</a>(uint64_t morton, uint64_t& x, uint64_t& y, uint64_t& z)</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>  x = <a class="code" href="namespacepFlow.html#a51e811dd5563b1e1b759b091ef96c339">getThirdBits</a>(morton);</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  y = <a class="code" href="namespacepFlow.html#a51e811dd5563b1e1b759b091ef96c339">getThirdBits</a>(morton >> 1);</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  z = <a class="code" href="namespacepFlow.html#a51e811dd5563b1e1b759b091ef96c339">getThirdBits</a>(morton >> 2);</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>  </div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="keyword">template</span><<span class="keyword">typename</span> indexType, <span class="keyword">typename</span> cellIndexType></div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="namespacepFlow.html#aede61a7f9c2792269f212fe8d5582173"> 71</a></span> <span class="keywordtype">void</span> <a class="code" href="namespacepFlow.html#aede61a7f9c2792269f212fe8d5582173">indexToCell</a>(<span class="keyword">const</span> indexType idx, <span class="keyword">const</span> <a class="code" href="classpFlow_1_1triple.html">triple<cellIndexType></a>& extent, <a class="code" href="classpFlow_1_1triple.html">triple<cellIndexType></a>& cell)</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> {</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  indexType nxny = extent.<a class="code" href="classpFlow_1_1triple.html#a2f365146ce767d3de7ae125abd193b33">x</a>()*extent.<a class="code" href="classpFlow_1_1triple.html#a28d901cc27d3756a830e4de5a484b967">y</a>();</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  cell.<a class="code" href="classpFlow_1_1triple.html#a5c836d3919741edf1ba805c98dbd21b7">z</a>() = <span class="keyword">static_cast<</span>cellIndexType<span class="keyword">></span>(idx / nxny);</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">auto</span> rem = idx % nxny;</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  cell.<a class="code" href="classpFlow_1_1triple.html#a28d901cc27d3756a830e4de5a484b967">y</a>() = <span class="keyword">static_cast<</span>cellIndexType<span class="keyword">></span>(rem / extent.<a class="code" href="classpFlow_1_1triple.html#a2f365146ce767d3de7ae125abd193b33">x</a>());</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  cell.<a class="code" href="classpFlow_1_1triple.html#a2f365146ce767d3de7ae125abd193b33">x</a>() = <span class="keyword">static_cast<</span>cellIndexType<span class="keyword">></span>(rem % extent.<a class="code" href="classpFlow_1_1triple.html#a2f365146ce767d3de7ae125abd193b33">x</a>());</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</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> <span class="keyword">template</span><<span class="keyword">typename</span> cellIndexType></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="namespacepFlow.html#af89e6417fc20ba48fec7c2ea002f2983"> 82</a></span> <a class="code" href="classpFlow_1_1triple.html">triple<cellIndexType></a> <a class="code" href="namespacepFlow.html#af89e6417fc20ba48fec7c2ea002f2983">boxExtent</a>( <span class="keyword">const</span> <a class="code" href="classpFlow_1_1iBox.html">iBox<cellIndexType></a>& <a class="code" href="classpFlow_1_1box.html">box</a>)</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> {</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">return</span> <a class="code" href="classpFlow_1_1triple.html">triple<cellIndexType></a>(</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="classpFlow_1_1box.html">box</a>.<a class="code" href="classpFlow_1_1box.html#a0200f1e557cc2585190d623c0a370108">maxPoint</a>().<a class="code" href="classpFlow_1_1triple.html#a2f365146ce767d3de7ae125abd193b33">x</a>() - <a class="code" href="classpFlow_1_1box.html">box</a>.<a class="code" href="classpFlow_1_1box.html#a7a3e5e5740e519e910633f5d72bb043b">minPoint</a>().<a class="code" href="classpFlow_1_1triple.html#a2f365146ce767d3de7ae125abd193b33">x</a>() + 1,</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classpFlow_1_1box.html">box</a>.<a class="code" href="classpFlow_1_1box.html#a0200f1e557cc2585190d623c0a370108">maxPoint</a>().<a class="code" href="classpFlow_1_1triple.html#a28d901cc27d3756a830e4de5a484b967">y</a>() - <a class="code" href="classpFlow_1_1box.html">box</a>.<a class="code" href="classpFlow_1_1box.html#a7a3e5e5740e519e910633f5d72bb043b">minPoint</a>().<a class="code" href="classpFlow_1_1triple.html#a28d901cc27d3756a830e4de5a484b967">y</a>() + 1,</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="classpFlow_1_1box.html">box</a>.<a class="code" href="classpFlow_1_1box.html#a0200f1e557cc2585190d623c0a370108">maxPoint</a>().<a class="code" href="classpFlow_1_1triple.html#a5c836d3919741edf1ba805c98dbd21b7">z</a>() - <a class="code" href="classpFlow_1_1box.html">box</a>.<a class="code" href="classpFlow_1_1box.html#a7a3e5e5740e519e910633f5d72bb043b">minPoint</a>().<a class="code" href="classpFlow_1_1triple.html#a5c836d3919741edf1ba805c98dbd21b7">z</a>() + 1);</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> }</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="keyword">template</span><<span class="keyword">typename</span> indexType, <span class="keyword">typename</span> cellIndexType></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <a class="code" href="pFlowMacros_8hpp.html#a8e2f73fa5c113f21c9c9edb67a974f5e">INLINE_FUNCTION_HD</a></div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="namespacepFlow.html#a62c02f7fe0f69a4c0978a3e62f3d38cd"> 92</a></span> <span class="keywordtype">void</span> <a class="code" href="namespacepFlow.html#aede61a7f9c2792269f212fe8d5582173">indexToCell</a>(<span class="keyword">const</span> indexType idx, <span class="keyword">const</span> <a class="code" href="classpFlow_1_1iBox.html">iBox<cellIndexType></a>& <a class="code" href="classpFlow_1_1box.html">box</a>, <a class="code" href="classpFlow_1_1triple.html">triple<cellIndexType></a>& cell)</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>  <span class="keyword">auto</span> extent = <a class="code" href="namespacepFlow.html#af89e6417fc20ba48fec7c2ea002f2983">boxExtent</a>(<a class="code" href="classpFlow_1_1box.html">box</a>);</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="namespacepFlow.html#aede61a7f9c2792269f212fe8d5582173">indexToCell</a>(idx, extent, cell);</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  cell+= <a class="code" href="classpFlow_1_1box.html">box</a>.<a class="code" href="classpFlow_1_1box.html#a7a3e5e5740e519e910633f5d72bb043b">minPoint</a>();</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> }</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </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="preprocessor">#endif //__broadSearchFunctions_hpp__</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<div class="ttc" id="atypes_8hpp_html"><div class="ttname"><a href="types_8hpp.html">types.hpp</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_aede61a7f9c2792269f212fe8d5582173"><div class="ttname"><a href="namespacepFlow.html#aede61a7f9c2792269f212fe8d5582173">pFlow::indexToCell</a></div><div class="ttdeci">INLINE_FUNCTION_HD void indexToCell(const indexType idx, const triple< cellIndexType > &extent, triple< cellIndexType > &cell)</div><div class="ttdef"><b>Definition:</b> <a href="contactSearchFunctions_8hpp_source.html#l00071">contactSearchFunctions.hpp:71</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1box_html_a0200f1e557cc2585190d623c0a370108"><div class="ttname"><a href="classpFlow_1_1box.html#a0200f1e557cc2585190d623c0a370108">pFlow::box::maxPoint</a></div><div class="ttdeci">const INLINE_FUNCTION_HD realx3 & maxPoint() const</div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00097">box.hpp:97</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a48c34bfcf0b43fb8bd3a0ffc596b751d"><div class="ttname"><a href="namespacepFlow.html#a48c34bfcf0b43fb8bd3a0ffc596b751d">pFlow::mortonCode64Toxyz</a></div><div class="ttdeci">INLINE_FUNCTION_HD void mortonCode64Toxyz(uint64_t morton, uint64_t &x, uint64_t &y, uint64_t &z)</div><div class="ttdef"><b>Definition:</b> <a href="contactSearchFunctions_8hpp_source.html#l00062">contactSearchFunctions.hpp:62</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1triple_html_a28d901cc27d3756a830e4de5a484b967"><div class="ttname"><a href="classpFlow_1_1triple.html#a28d901cc27d3756a830e4de5a484b967">pFlow::triple::y</a></div><div class="ttdeci">INLINE_FUNCTION_HD T & y()</div><div class="ttdoc">access component</div><div class="ttdef"><b>Definition:</b> <a href="triple_8hpp_source.html#l00144">triple.hpp:144</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="demGeometry_8hpp_source.html#l00027">demGeometry.hpp:27</a></div></div>
|
|
<div class="ttc" id="aiBox_8hpp_html"><div class="ttname"><a href="iBox_8hpp.html">iBox.hpp</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_af89e6417fc20ba48fec7c2ea002f2983"><div class="ttname"><a href="namespacepFlow.html#af89e6417fc20ba48fec7c2ea002f2983">pFlow::boxExtent</a></div><div class="ttdeci">INLINE_FUNCTION_HD triple< cellIndexType > boxExtent(const iBox< cellIndexType > &box)</div><div class="ttdef"><b>Definition:</b> <a href="contactSearchFunctions_8hpp_source.html#l00082">contactSearchFunctions.hpp:82</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_af9e399d88da408c52c6c167b651766e5"><div class="ttname"><a href="namespacepFlow.html#af9e399d88da408c52c6c167b651766e5">pFlow::xyzToMortonCode64</a></div><div class="ttdeci">INLINE_FUNCTION_HD uint64_t xyzToMortonCode64(uint64_t x, uint64_t y, uint64_t z)</div><div class="ttdef"><b>Definition:</b> <a href="contactSearchFunctions_8hpp_source.html#l00042">contactSearchFunctions.hpp:42</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1triple_html_a5c836d3919741edf1ba805c98dbd21b7"><div class="ttname"><a href="classpFlow_1_1triple.html#a5c836d3919741edf1ba805c98dbd21b7">pFlow::triple::z</a></div><div class="ttdeci">INLINE_FUNCTION_HD T & z()</div><div class="ttdoc">access component</div><div class="ttdef"><b>Definition:</b> <a href="triple_8hpp_source.html#l00156">triple.hpp:156</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1box_html_a7a3e5e5740e519e910633f5d72bb043b"><div class="ttname"><a href="classpFlow_1_1box.html#a7a3e5e5740e519e910633f5d72bb043b">pFlow::box::minPoint</a></div><div class="ttdeci">const INLINE_FUNCTION_HD realx3 & minPoint() const</div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00091">box.hpp:91</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a51e811dd5563b1e1b759b091ef96c339"><div class="ttname"><a href="namespacepFlow.html#a51e811dd5563b1e1b759b091ef96c339">pFlow::getThirdBits</a></div><div class="ttdeci">INLINE_FUNCTION_HD uint64_t getThirdBits(uint64_t x)</div><div class="ttdef"><b>Definition:</b> <a href="contactSearchFunctions_8hpp_source.html#l00049">contactSearchFunctions.hpp:49</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1box_html"><div class="ttname"><a href="classpFlow_1_1box.html">pFlow::box</a></div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00032">box.hpp:32</a></div></div>
|
|
<div class="ttc" id="anamespacepFlow_html_a09e092ab61b90f5515d60a7eb0d7e524"><div class="ttname"><a href="namespacepFlow.html#a09e092ab61b90f5515d60a7eb0d7e524">pFlow::splitBy3</a></div><div class="ttdeci">INLINE_FUNCTION_HD uint64_t splitBy3(const uint64_t val)</div><div class="ttdef"><b>Definition:</b> <a href="contactSearchFunctions_8hpp_source.html#l00031">contactSearchFunctions.hpp:31</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_1triple_html_a2f365146ce767d3de7ae125abd193b33"><div class="ttname"><a href="classpFlow_1_1triple.html#a2f365146ce767d3de7ae125abd193b33">pFlow::triple::x</a></div><div class="ttdeci">INLINE_FUNCTION_HD T & x()</div><div class="ttdoc">access component</div><div class="ttdef"><b>Definition:</b> <a href="triple_8hpp_source.html#l00132">triple.hpp:132</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#l00055">pFlowMacros.hpp:55</a></div></div>
|
|
<div class="ttc" id="aclasspFlow_1_1triple_html"><div class="ttname"><a href="classpFlow_1_1triple.html">pFlow::triple</a></div><div class="ttdoc">A set of 3 variables that can be used for vector variables.</div><div class="ttdef"><b>Definition:</b> <a href="triple_8hpp_source.html#l00036">triple.hpp:36</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="contactSearchFunctions_8hpp.html">contactSearchFunctions.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>
|