<ahref="compute__verlet__integration_8hh.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="preprocessor">#ifndef __COMPUTE_VERLET_INTEGRATION__HH__</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="preprocessor">#define __COMPUTE_VERLET_INTEGRATION__HH__</span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> </div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment">/* -------------------------------------------------------------------------- */</span></div><divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="preprocessor">#include "<aclass="code"href="compute_8hh.html">compute.hh</a>"</span></div><divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> <spanclass="preprocessor">#include "<aclass="code"href="compute__interaction_8hh.html">compute_interaction.hh</a>"</span></div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="comment">/* -------------------------------------------------------------------------- */</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> <spanclass="preprocessor">#include <cmath></span></div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> </div><divclass="line"><aname="l00011"></a><spanclass="lineno"><aclass="line"href="class_compute_verlet_integration.html"> 11</a></span> <spanclass="keyword">class </span><aclass="code"href="class_compute_verlet_integration.html">ComputeVerletIntegration</a> : <spanclass="keyword">public</span><aclass="code"href="class_compute.html">Compute</a> {</div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="keyword">using</span> InteractionList = std::vector<std::shared_ptr<ComputeInteraction>>;</div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> </div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment">// Constructors/Destructors</span></div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="keyword">public</span>:</div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <aclass="code"href="class_compute_verlet_integration.html#aab97245913bb42d8938333f099e5be13">ComputeVerletIntegration</a>(<aclass="code"href="my__types_8hh.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a> timestep);</div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> </div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment">// Methods</span></div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="keyword">public</span>:</div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="keywordtype">void</span><aclass="code"href="class_compute_verlet_integration.html#afe6d31ce3581a400bef29ec2438ced3f">setDeltaT</a>(<aclass="code"href="my__types_8hh.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a> dt);</div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="keywordtype">void</span><aclass="code"href="class_compute_verlet_integration.html#a1901e85a748a29fa137afd624697ef94">compute</a>(<aclass="code"href="class_system.html">System</a>& system) <spanclass="keyword">override</span>;</div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="keywordtype">void</span><aclass="code"href="class_compute_verlet_integration.html#a528641f7050207f0e923793aa1b77751">addInteraction</a>(std::shared_ptr<ComputeInteraction> interaction);</div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> </div><divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="keyword">private</span>:</div><divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <aclass="code"href="my__types_8hh.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a> dt;</div><divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span>  InteractionList interactions;</div><divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> };</div><divclass="line"><aname="l00031"></a><spanclass="lineno"> 31</span> </div><divclass="line"><aname="l00032"></a><spanclass="lineno"> 32</span> <spanclass="comment">/* -------------------------------------------------------------------------- */</span></div><divclass="line"><aname="l00033"></a><spanclass="lineno"> 33</span> <spanclass="preprocessor">#endif //__COMPUTE_VERLET_INTEGRATION__HH__</span></div><divclass="ttc"id="class_compute_verlet_integration_html_a528641f7050207f0e923793aa1b77751"><divclass="ttname"><ahref="class_compute_verlet_integration.html#a528641f7050207f0e923793aa1b77751">ComputeVerletIntegration::addInteraction</a></div><divclass="ttdeci">void addInteraction(std::shared_ptr< ComputeInteraction > interaction)</div><divclass="ttdoc">Add an interaction to the computation of forces. </div><divclass="ttdef"><b>Definition:</b> compute_verlet_integration.cc:41</div></div>
<divclass="ttc"id="class_compute_html"><divclass="ttname"><ahref="class_compute.html">Compute</a></div><divclass="ttdoc">Base class for all compute. </div><divclass="ttdef"><b>Definition:</b> compute.hh:9</div></div>
<divclass="ttc"id="class_compute_verlet_integration_html"><divclass="ttname"><ahref="class_compute_verlet_integration.html">ComputeVerletIntegration</a></div><divclass="ttdoc">Integrate equation of motion. </div><divclass="ttdef"><b>Definition:</b> compute_verlet_integration.hh:11</div></div>
<divclass="ttc"id="class_compute_verlet_integration_html_a1901e85a748a29fa137afd624697ef94"><divclass="ttname"><ahref="class_compute_verlet_integration.html#a1901e85a748a29fa137afd624697ef94">ComputeVerletIntegration::compute</a></div><divclass="ttdeci">void compute(System &system) override</div><divclass="ttdoc">Evolve positions and velocities. </div><divclass="ttdef"><b>Definition:</b> compute_verlet_integration.cc:15</div></div>
<divclass="ttc"id="class_system_html"><divclass="ttname"><ahref="class_system.html">System</a></div><divclass="ttdoc">Container for particles. </div><divclass="ttdef"><b>Definition:</b> system.hh:12</div></div>
<divclass="ttc"id="class_compute_verlet_integration_html_afe6d31ce3581a400bef29ec2438ced3f"><divclass="ttname"><ahref="class_compute_verlet_integration.html#afe6d31ce3581a400bef29ec2438ced3f">ComputeVerletIntegration::setDeltaT</a></div><divclass="ttdeci">void setDeltaT(Real dt)</div><divclass="ttdoc">Set time step. </div><divclass="ttdef"><b>Definition:</b> compute_verlet_integration.cc:7</div></div>