9 #ifndef __TEST_GRAVITATIONAL_POTENTIAL_H 10 #define __TEST_GRAVITATIONAL_POTENTIAL_H 16 #include "../shared/Common.h" 41 double secondary_mass,
53 double arg_of_periapsis,
57 const Eigen::Matrix<long double, 3, 1> &position,
60 unsigned expansion_order
67 const Eigen::Matrix<long double, 3, 1> &position,
73 double expansion_precision
87 const Eigen::Matrix<long double, 3, 1> &position
96 double secondary_mass,
108 double arg_of_periapsis
void tear_down()
No fixtures at this time.
Basic description of two bodies in an eccentric orbit.
void setup()
No fixtures at this time.
test_GravitationalPotential()
Create the test suite.
void test_expansion()
Test the expansion of the potential for multiple system configurations, locations and times...
void print_tidal_potential(double primary_mass, double secondary_mass, double semimajor, double eccentricity, double inclination, double arg_of_periapsis, const Eigen::Matrix< long double, 3, 1 > &position, unsigned expansion_order) const
Print to stdout the value of the tidal potential without an approximation and using the expansion as ...
void test_system(double primary_mass, double secondary_mass, double semimajor, double eccentricity, double inclination, double arg_of_periapsis)
Test the expansion for a given system, sampling positions and times.
Evaluate the tidal potential using the expansion.
Declare an interface for evaluating the expansion of the tidal potential.
The test suite that compares the tidal potential expansion to the exact expression.
Orientations of zones of bodies in a binary system.
void test_single_point(TidalPotentialExpansion &approx_potential, const TidalPotential &exact_potential, const Eigen::Matrix< long double, 3, 1 > &position)
Test the expansion for a given system at a given position, sampling time.
double abs_precision(const Eigen::Matrix< long double, 3, 1 > &position, const EccentricOrbit &orbit, double expansion_precision) const
Declare an interface for calculating the tidal potential due to a companion in an eccentric orbit...
Calculate the tidal potential over one component of an eccentric binary.
void print_orbit(const EccentricOrbit &orbit) const
Print to stdout the location of the secondary relative to the primary as a function of time for the g...
Declare an interface for working with eccentric orbits.