Page MenuHomec4science

constants_8hpp.html
No OneTemporary

File Metadata

Created
Sat, Nov 23, 02:35

constants_8hpp.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 File Reference</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="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> </div>
<div class="headertitle">
<div class="title">constants.hpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;fstream&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;cstdlib&gt;</code><br />
<code>#include &lt;cstdint&gt;</code><br />
<code>#include &lt;random&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &lt;math.h&gt;</code><br />
<code>#include &lt;chrono&gt;</code><br />
</div>
<p><a href="constants_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacestd_1_1chrono"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacestd_1_1chrono.html">std::chrono</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:aed9ea78689ecce0b7264c02c7f8a9a54"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constants_8hpp.html#aed9ea78689ecce0b7264c02c7f8a9a54">G</a>&#160;&#160;&#160;6.67408e-11f</td></tr>
<tr class="separator:aed9ea78689ecce0b7264c02c7f8a9a54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a002b2f4894492820fe708b1b7e7c5e70"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constants_8hpp.html#a002b2f4894492820fe708b1b7e7c5e70">EPSILON</a>&#160;&#160;&#160;0.005f</td></tr>
<tr class="separator:a002b2f4894492820fe708b1b7e7c5e70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17e1cd37c814dbe8b5e962b7fd2cdaec"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constants_8hpp.html#a17e1cd37c814dbe8b5e962b7fd2cdaec">BH_THETA</a>&#160;&#160;&#160;1.0f</td></tr>
<tr class="separator:a17e1cd37c814dbe8b5e962b7fd2cdaec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10266c76d61a61f598560381580e0113"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constants_8hpp.html#a10266c76d61a61f598560381580e0113">DIM_2</a>&#160;&#160;&#160;2</td></tr>
<tr class="separator:a10266c76d61a61f598560381580e0113"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3deeed386c13e0d2526898f3cf3db3cf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constants_8hpp.html#a3deeed386c13e0d2526898f3cf3db3cf">DIM_3</a>&#160;&#160;&#160;3</td></tr>
<tr class="separator:a3deeed386c13e0d2526898f3cf3db3cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4abc233898f783a9cb9b8aea5ae5e37"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constants_8hpp.html#ae4abc233898f783a9cb9b8aea5ae5e37">NB_DIM</a>&#160;&#160;&#160;<a class="el" href="constants_8hpp.html#a3deeed386c13e0d2526898f3cf3db3cf">DIM_3</a></td></tr>
<tr class="separator:ae4abc233898f783a9cb9b8aea5ae5e37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4806239b7f0dbc96aedf9adb9cb1e444"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constants_8hpp.html#a4806239b7f0dbc96aedf9adb9cb1e444">OCCUPATION_PERC</a>&#160;&#160;&#160;0.5f</td></tr>
<tr class="separator:a4806239b7f0dbc96aedf9adb9cb1e444"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d730e4d47eb4add97e86a332c42006d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constants_8hpp.html#a1d730e4d47eb4add97e86a332c42006d">MASS_MAX</a>&#160;&#160;&#160;10e10f</td></tr>
<tr class="separator:a1d730e4d47eb4add97e86a332c42006d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5400b1f2028d38732e4377be4f32b255"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constants_8hpp.html#a5400b1f2028d38732e4377be4f32b255">DELTA_T</a>&#160;&#160;&#160;0.01f</td></tr>
<tr class="separator:a5400b1f2028d38732e4377be4f32b255"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9cc087d076e4fa101f8794a947bd01a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constants_8hpp.html#aa9cc087d076e4fa101f8794a947bd01a">ITERATIONS</a>&#160;&#160;&#160;200</td></tr>
<tr class="separator:aa9cc087d076e4fa101f8794a947bd01a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:af2b8102aeac8f02ab62ac42828289569"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569">property</a> { <br />
&#160;&#160;<a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a91743bc3932693c4b8a6ca984e8a8437">POS</a>,
<a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a52747a70f1917d227fb19ded90da348d">VEL</a>,
<a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a972dbcdf74cff71e20bdcfb53be9c391">LOAD</a>,
<a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a6c8e5f290be4be86fd5e7048654b4a50">DIM</a>,
<br />
&#160;&#160;<a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569a2159ffbd3a68037511ab5ab4dd35ace7">CENTER</a>,
<a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569aef9ad485b29b65c89dd94b1fb31ad262">MASS_POS</a>
<br />
}</td></tr>
<tr class="separator:af2b8102aeac8f02ab62ac42828289569"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>Munier Louis </dd></dl>
<dl class="section date"><dt>Date</dt><dd>30.05.19 </dd></dl>
<dl class="section version"><dt>Version</dt><dd>1.0</dd></dl>
<p>Constants file to have all the desired constants of the overall project. </p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a17e1cd37c814dbe8b5e962b7fd2cdaec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17e1cd37c814dbe8b5e962b7fd2cdaec">&#9670;&nbsp;</a></span>BH_THETA</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BH_THETA&#160;&#160;&#160;1.0f</td>
</tr>
</table>
</div><div class="memdoc">
<p>Barnes-Hut threshold to consider particles as a unique one </p>
</div>
</div>
<a id="a5400b1f2028d38732e4377be4f32b255"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5400b1f2028d38732e4377be4f32b255">&#9670;&nbsp;</a></span>DELTA_T</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define DELTA_T&#160;&#160;&#160;0.01f</td>
</tr>
</table>
</div><div class="memdoc">
<p>duration of each update timestep </p>
</div>
</div>
<a id="a10266c76d61a61f598560381580e0113"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10266c76d61a61f598560381580e0113">&#9670;&nbsp;</a></span>DIM_2</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define DIM_2&#160;&#160;&#160;2</td>
</tr>
</table>
</div><div class="memdoc">
<p>number of dimension in 2D </p>
</div>
</div>
<a id="a3deeed386c13e0d2526898f3cf3db3cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3deeed386c13e0d2526898f3cf3db3cf">&#9670;&nbsp;</a></span>DIM_3</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define DIM_3&#160;&#160;&#160;3</td>
</tr>
</table>
</div><div class="memdoc">
<p>number of dimension in 3D </p>
</div>
</div>
<a id="a002b2f4894492820fe708b1b7e7c5e70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a002b2f4894492820fe708b1b7e7c5e70">&#9670;&nbsp;</a></span>EPSILON</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define EPSILON&#160;&#160;&#160;0.005f</td>
</tr>
</table>
</div><div class="memdoc">
<p>to avoid collision between particles </p>
</div>
</div>
<a id="aed9ea78689ecce0b7264c02c7f8a9a54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed9ea78689ecce0b7264c02c7f8a9a54">&#9670;&nbsp;</a></span>G</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define G&#160;&#160;&#160;6.67408e-11f</td>
</tr>
</table>
</div><div class="memdoc">
<p>Different defines to have constants for the overall project.gravitational general constant </p>
</div>
</div>
<a id="aa9cc087d076e4fa101f8794a947bd01a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9cc087d076e4fa101f8794a947bd01a">&#9670;&nbsp;</a></span>ITERATIONS</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define ITERATIONS&#160;&#160;&#160;200</td>
</tr>
</table>
</div><div class="memdoc">
<p>number of iterations to solve nBody problem </p>
</div>
</div>
<a id="a1d730e4d47eb4add97e86a332c42006d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d730e4d47eb4add97e86a332c42006d">&#9670;&nbsp;</a></span>MASS_MAX</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define MASS_MAX&#160;&#160;&#160;10e10f</td>
</tr>
</table>
</div><div class="memdoc">
<p>maximum of mass value for a particle </p>
</div>
</div>
<a id="ae4abc233898f783a9cb9b8aea5ae5e37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4abc233898f783a9cb9b8aea5ae5e37">&#9670;&nbsp;</a></span>NB_DIM</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define NB_DIM&#160;&#160;&#160;<a class="el" href="constants_8hpp.html#a3deeed386c13e0d2526898f3cf3db3cf">DIM_3</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>number of dimension chosen for the project </p>
</div>
</div>
<a id="a4806239b7f0dbc96aedf9adb9cb1e444"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4806239b7f0dbc96aedf9adb9cb1e444">&#9670;&nbsp;</a></span>OCCUPATION_PERC</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define OCCUPATION_PERC&#160;&#160;&#160;0.5f</td>
</tr>
</table>
</div><div class="memdoc">
<p>percentage of occupation to avoid particle go easily outside boundaries </p>
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="af2b8102aeac8f02ab62ac42828289569"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2b8102aeac8f02ab62ac42828289569">&#9670;&nbsp;</a></span>property</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="constants_8hpp.html#af2b8102aeac8f02ab62ac42828289569">property</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>of the particle </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="af2b8102aeac8f02ab62ac42828289569a91743bc3932693c4b8a6ca984e8a8437"></a>POS&#160;</td><td class="fielddoc"><p>enum value for position property </p>
</td></tr>
<tr><td class="fieldname"><a id="af2b8102aeac8f02ab62ac42828289569a52747a70f1917d227fb19ded90da348d"></a>VEL&#160;</td><td class="fielddoc"><p>enum value for velocity property </p>
</td></tr>
<tr><td class="fieldname"><a id="af2b8102aeac8f02ab62ac42828289569a972dbcdf74cff71e20bdcfb53be9c391"></a>LOAD&#160;</td><td class="fielddoc"><p>enum value for load property </p>
</td></tr>
<tr><td class="fieldname"><a id="af2b8102aeac8f02ab62ac42828289569a6c8e5f290be4be86fd5e7048654b4a50"></a>DIM&#160;</td><td class="fielddoc"><p>enum value for dimension of cell property </p>
</td></tr>
<tr><td class="fieldname"><a id="af2b8102aeac8f02ab62ac42828289569a2159ffbd3a68037511ab5ab4dd35ace7"></a>CENTER&#160;</td><td class="fielddoc"><p>enum value for center of cell property </p>
</td></tr>
<tr><td class="fieldname"><a id="af2b8102aeac8f02ab62ac42828289569aef9ad485b29b65c89dd94b1fb31ad262"></a>MASS_POS&#160;</td><td class="fielddoc"><p>enum value for center of mass position property </p>
</td></tr>
</table>
</div>
</div>
</div><!-- contents -->
<!-- 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