Swarm-NG
1.1
|
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... | |
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.
|
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.