The test suite that compares the tidal potential expansion to the exact expression.
More...
#include <testGravitationalPotential.h>
|
| 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 given orbit. More...
|
| |
| 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 a function of time. More...
|
| |
| double | abs_precision (const Eigen::Matrix< long double, 3, 1 > &position, const EccentricOrbit &orbit, double expansion_precision) const |
| |
| 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. More...
|
| |
| 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. More...
|
| |
The test suite that compares the tidal potential expansion to the exact expression.
Definition at line 28 of file testGravitationalPotential.h.
◆ test_GravitationalPotential()
| Evolve::test_GravitationalPotential::test_GravitationalPotential |
( |
| ) |
|
◆ abs_precision()
| double Evolve::test_GravitationalPotential::abs_precision |
( |
const Eigen::Matrix< long double, 3, 1 > & |
position, |
|
|
const EccentricOrbit & |
orbit, |
|
|
double |
expansion_precision |
|
) |
| const |
|
private |
The expected absolute precision in the potential expansion for the given orbit.
- Parameters
-
| position | The position where the potential expansion will be evaluated. |
| orbit | The orbit for which the potential expansion is being tested. |
| expansion_precision | The precision expected of the expansion |
Definition at line 87 of file testGravitationalPotential.cpp.
◆ print_orbit()
| void Evolve::test_GravitationalPotential::print_orbit |
( |
const EccentricOrbit & |
orbit | ) |
const |
|
private |
Print to stdout the location of the secondary relative to the primary as a function of time for the given orbit.
Definition at line 12 of file testGravitationalPotential.cpp.
◆ print_tidal_potential()
| void Evolve::test_GravitationalPotential::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 |
|
private |
Print to stdout the value of the tidal potential without an approximation and using the expansion as a function of time.
- Parameters
-
| primary_mass | See same name argument to TidalPotential constructor. |
| secondary_mass | See same name argument to TidalPotential constructor. |
| semimajor | See same name argument to TidalPotential constructor. |
| eccentricity | See same name argument to TidalPotential constructor. |
| inclination | See same name argument to TidalPotential constructor. |
| arg_of_periapsis | See same name argument to TidalPotential constructor. |
| position | The position where to test for agreement between the two potentials, in the coordinate system expected by the potentials.. |
| expansion_order | The eccentricity expansion order to use. |
Definition at line 32 of file testGravitationalPotential.cpp.
◆ setup()
| void Evolve::test_GravitationalPotential::setup |
( |
| ) |
|
|
inlineprotected |
◆ tear_down()
| void Evolve::test_GravitationalPotential::tear_down |
( |
| ) |
|
|
inlineprotected |
◆ test_expansion()
| void Evolve::test_GravitationalPotential::test_expansion |
( |
| ) |
|
◆ test_single_point()
| void Evolve::test_GravitationalPotential::test_single_point |
( |
TidalPotentialExpansion & |
approx_potential, |
|
|
const TidalPotential & |
exact_potential, |
|
|
const Eigen::Matrix< long double, 3, 1 > & |
position |
|
) |
| |
|
private |
Test the expansion for a given system at a given position, sampling time.
- Parameters
-
| approx_potential | The tidal potential expansion to test. |
| exact_potential | The exact potential expected for the system. |
| position | The position where to test for agreement between the two potentials, in the coordinate system expected by the potentials.. |
Definition at line 120 of file testGravitationalPotential.cpp.
◆ test_system()
| void Evolve::test_GravitationalPotential::test_system |
( |
double |
primary_mass, |
|
|
double |
secondary_mass, |
|
|
double |
semimajor, |
|
|
double |
eccentricity, |
|
|
double |
inclination, |
|
|
double |
arg_of_periapsis |
|
) |
| |
|
private |
The documentation for this class was generated from the following files: