Swarm-NG  1.1
swarm::monitors::stop_on_crossing_orbit< log_t > Class Template Reference

Stopping monitor to detect crossing orbits for planets EXPERIMENTAL: This class is not thoroughly tested. More...

#include <stop_on_crossing_orbit.hpp>

Public Member Functions

GPUAPI void calc_a_e (const int &b, double &a, double &e)
 Auxiliary function to calculate (a ,e) for us This calculation is also done in test_body from stop_on_ejection But we would like to keep things simple and separate.
 
GPUAPI bool check_for_crossing_orbits (const int &i, const int &j)
 Function to check for crossing orbits of planet i and j. More...
 

Detailed Description

template<class log_t>
class swarm::monitors::stop_on_crossing_orbit< log_t >

Stopping monitor to detect crossing orbits for planets EXPERIMENTAL: This class is not thoroughly tested.

WARNING: This only tests for potential orbit crossing and makes assumptions about planet ordering

Definition at line 66 of file stop_on_crossing_orbit.hpp.

Member Function Documentation

template<class log_t>
GPUAPI bool swarm::monitors::stop_on_crossing_orbit< log_t >::check_for_crossing_orbits ( const int &  i,
const int &  j 
)
inline

Function to check for crossing orbits of planet i and j.

WARNING: Only checks if pericenter of outer planet is less apocenter of inner planet Doesn't account for pericenter directions Assumes planets ordered from closest to farthest

Definition at line 124 of file stop_on_crossing_orbit.hpp.


The documentation for this class was generated from the following file: