8 #ifndef __UNIT_TESTS_ECCENTRIC_ORBIT_H 9 #define __UNIT_TESTS_ECCENTRIC_ORBIT_H 11 #include "../../Core/Common.h" 12 #include "../../Core/AstronomicalConstants.h" 14 #include "Eigen/Dense" 16 #include <gsl/gsl_errno.h> 17 #include <gsl/gsl_roots.h> Basic description of two bodies in an eccentric orbit.
double reduced_mass() const
The reduced mass of the system in solar masses.
double eccentricity() const
The semimajor axis of the system.
double semimajor() const
The semimajor axis of the system.
Orientations of zones of bodies in a binary system.
double orbital_energy() const
The magnitude of the orbital energy of the system in .
double __eccentricity
The eccentricity of the orbit.
double & semimajor()
A mutable reference to the semimajor axis of the system.
double & secondary_mass()
A mutable reference to the semimajor axis of the system.
double primary_mass() const
The semimajor axis of the system.
double eccentric_anomaly(double orbital_phase) const
double __primary_mass
The mass of the tidally perturbed object in solar masses.
double orbital_angmom() const
The magnitude of the orbital angular momentum of the system in .
double & eccentricity()
A mutable reference to the semimajor axis of the system.
double __secondary_mass
The mass of the perturber object in solar masses.
double & primary_mass()
A mutable reference to the semimajor axis of the system.
EccentricOrbit(double primary_mass=Core::NaN, double secondary_mass=Core::NaN, double semimajor=Core::NaN, double eccentricity=Core::NaN)
Create an eccentric orbit.
double orbital_period() const
The orbital period of the system in days.
Eigen::Vector3d secondary_position(double orbital_phase) const
Secondary position vector in a coordinate system centered on the primary, with and ...
double secondary_mass() const
The semimajor axis of the system.
double __semimajor
The semimajor axis of the orbit in solar radii.