Page MenuHomec4science

constants_8hpp_source.html
No OneTemporary

File Metadata

Created
Thu, Oct 31, 14:29

constants_8hpp_source.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PHPC - nBody project: /media/lmunier/Data/EPFL/Master/2eme_annee/Semestre_2/Parallel_and_High_Performance_Computing/phpc_nBody/src/constants.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="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>
<link href="doxygen.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">PHPC - nBody project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<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>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">constants.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="constants_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; </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#ifndef PROJECT_CONSTANTS_HPP</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#define PROJECT_CONSTANTS_HPP</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &lt;cstdlib&gt;</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;cstdint&gt;</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;random&gt;</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;math.h&gt;</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;chrono&gt;</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd_1_1chrono.html">std::chrono</a>;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment">//#define PRINT /**&lt; if it is defined, print value in terminal and csv file */</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="constants_8hpp.html#aed9ea78689ecce0b7264c02c7f8a9a54"> 37</a></span>&#160;<span class="preprocessor">#define G 6.67408e-11f </span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a002b2f4894492820fe708b1b7e7c5e70"> 38</a></span>&#160;<span class="preprocessor">#define EPSILON 0.005f </span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a17e1cd37c814dbe8b5e962b7fd2cdaec"> 39</a></span>&#160;<span class="preprocessor">#define BH_THETA 1.0f </span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a10266c76d61a61f598560381580e0113"> 41</a></span>&#160;<span class="preprocessor">#define DIM_2 2 </span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a3deeed386c13e0d2526898f3cf3db3cf"> 42</a></span>&#160;<span class="preprocessor">#define DIM_3 3 </span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="constants_8hpp.html#ae4abc233898f783a9cb9b8aea5ae5e37"> 43</a></span>&#160;<span class="preprocessor">#define NB_DIM DIM_3 </span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="preprocessor">//#define NB_PARTICLES 1000 </span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="preprocessor">//#define SIDE 1000 </span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">//#define SHIFT SIDE/3.0f </span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a4806239b7f0dbc96aedf9adb9cb1e444"> 48</a></span>&#160;<span class="preprocessor">#define OCCUPATION_PERC 0.5f </span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a1d730e4d47eb4add97e86a332c42006d"> 49</a></span>&#160;<span class="preprocessor">#define MASS_MAX 10e10f </span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a5400b1f2028d38732e4377be4f32b255"> 51</a></span>&#160;<span class="preprocessor">#define DELTA_T 0.01f </span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="constants_8hpp.html#aa9cc087d076e4fa101f8794a947bd01a"> 52</a></span>&#160;<span class="preprocessor">#define ITERATIONS 200 </span></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569"> 57</a></span>&#160;<span class="preprocessor">enum property {</span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a91743bc3932693c4b8a6ca984e8a8437"> 58</a></span>&#160; <a class="code" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a91743bc3932693c4b8a6ca984e8a8437">POS</a>, </div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a52747a70f1917d227fb19ded90da348d"> 59</a></span>&#160; <a class="code" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a52747a70f1917d227fb19ded90da348d">VEL</a>, </div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a972dbcdf74cff71e20bdcfb53be9c391"> 60</a></span>&#160; <a class="code" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a972dbcdf74cff71e20bdcfb53be9c391">LOAD</a>, </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a6c8e5f290be4be86fd5e7048654b4a50"> 61</a></span>&#160; <a class="code" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a6c8e5f290be4be86fd5e7048654b4a50">DIM</a>, </div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a2159ffbd3a68037511ab5ab4dd35ace7"> 62</a></span>&#160; <a class="code" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a2159ffbd3a68037511ab5ab4dd35ace7">CENTER</a>, </div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569aef9ad485b29b65c89dd94b1fb31ad262"> 63</a></span>&#160; <a class="code" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569aef9ad485b29b65c89dd94b1fb31ad262">MASS_POS</a>, </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;};</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="preprocessor">#endif //PROJECT_CONSTANTS_HPP</span></div></div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aconstants_8hpp_html_af2b8102aeac8f02ab62ac42828289569a52747a70f1917d227fb19ded90da348d"><div class="ttname"><a href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a52747a70f1917d227fb19ded90da348d">VEL</a></div><div class="ttdef"><b>Definition:</b> constants.hpp:59</div></div>
<div class="ttc" id="aconstants_8hpp_html_af2b8102aeac8f02ab62ac42828289569a91743bc3932693c4b8a6ca984e8a8437"><div class="ttname"><a href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a91743bc3932693c4b8a6ca984e8a8437">POS</a></div><div class="ttdef"><b>Definition:</b> constants.hpp:58</div></div>
<div class="ttc" id="aconstants_8hpp_html_af2b8102aeac8f02ab62ac42828289569aef9ad485b29b65c89dd94b1fb31ad262"><div class="ttname"><a href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569aef9ad485b29b65c89dd94b1fb31ad262">MASS_POS</a></div><div class="ttdef"><b>Definition:</b> constants.hpp:63</div></div>
<div class="ttc" id="aconstants_8hpp_html_af2b8102aeac8f02ab62ac42828289569a972dbcdf74cff71e20bdcfb53be9c391"><div class="ttname"><a href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a972dbcdf74cff71e20bdcfb53be9c391">LOAD</a></div><div class="ttdef"><b>Definition:</b> constants.hpp:60</div></div>
<div class="ttc" id="aconstants_8hpp_html_af2b8102aeac8f02ab62ac42828289569a2159ffbd3a68037511ab5ab4dd35ace7"><div class="ttname"><a href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a2159ffbd3a68037511ab5ab4dd35ace7">CENTER</a></div><div class="ttdef"><b>Definition:</b> constants.hpp:62</div></div>
<div class="ttc" id="aconstants_8hpp_html_af2b8102aeac8f02ab62ac42828289569a6c8e5f290be4be86fd5e7048654b4a50"><div class="ttname"><a href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a6c8e5f290be4be86fd5e7048654b4a50">DIM</a></div><div class="ttdef"><b>Definition:</b> constants.hpp:61</div></div>
<div class="ttc" id="anamespacestd_1_1chrono_html"><div class="ttname"><a href="namespacestd_1_1chrono.html">std::chrono</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>

Event Timeline