Basic description of two bodies in an eccentric orbit. More...
#include <EccentricOrbit.h>
Public Member Functions | |
EccentricOrbit (double primary_mass=Core::NaN, double secondary_mass=Core::NaN, double semimajor=Core::NaN, double eccentricity=Core::NaN) | |
Create an eccentric orbit. More... | |
double | primary_mass () const |
The semimajor axis of the system. More... | |
double & | primary_mass () |
A mutable reference to the semimajor axis of the system. More... | |
double | secondary_mass () const |
The semimajor axis of the system. More... | |
double & | secondary_mass () |
A mutable reference to the semimajor axis of the system. More... | |
double | semimajor () const |
The semimajor axis of the system. More... | |
double & | semimajor () |
A mutable reference to the semimajor axis of the system. More... | |
double | eccentricity () const |
The semimajor axis of the system. More... | |
double & | eccentricity () |
A mutable reference to the semimajor axis of the system. More... | |
double | eccentric_anomaly (double orbital_phase) const |
Eigen::Vector3d | secondary_position (double orbital_phase) const |
Secondary position vector in a coordinate system centered on the primary, with \( \hat{z} = \hat{L} \) and \( \hat{y} = \hat{S} \times \hat{L} \). More... | |
double | orbital_angmom () const |
The magnitude of the orbital angular momentum of the system in \( M_\odot R_\odot^2 \mathrm{rad} / \mathrm{Gyr} \). More... | |
double | orbital_energy () const |
The magnitude of the orbital energy of the system in \( M_\odot R_\odot^2 / \mathrm{Gyr}^2 \). More... | |
double | orbital_period () const |
The orbital period of the system in days. More... | |
Private Member Functions | |
double | reduced_mass () const |
The reduced mass of the system in solar masses. More... | |
Private Attributes | |
double | __primary_mass |
The mass of the tidally perturbed object in solar masses. More... | |
double | __secondary_mass |
The mass of the perturber object in solar masses. More... | |
double | __semimajor |
The semimajor axis of the orbit in solar radii. More... | |
double | __eccentricity |
The eccentricity of the orbit. More... | |
Basic description of two bodies in an eccentric orbit.
Definition at line 24 of file EccentricOrbit.h.
|
inline |
Create an eccentric orbit.
primary_mass | See __primary_mass attribute. |
secondary_mass | See __secondary_mass attribute. |
semimajor | See __semimajor attribute. |
eccentricity | See __eccentricity attribute. |
Definition at line 44 of file EccentricOrbit.h.
double Evolve::EccentricOrbit::eccentric_anomaly | ( | double | orbital_phase | ) | const |
The eccentric anomaly that corresponds to the given orbital phase angle.
orbital_phase | The phase angle of the orbit ( \( \Omega t \)). Zero is at periapsis |
Definition at line 36 of file EccentricOrbit.cpp.
|
inline |
The semimajor axis of the system.
Definition at line 82 of file EccentricOrbit.h.
|
inline |
A mutable reference to the semimajor axis of the system.
Definition at line 85 of file EccentricOrbit.h.
double Evolve::EccentricOrbit::orbital_angmom | ( | ) | const |
The magnitude of the orbital angular momentum of the system in \( M_\odot R_\odot^2 \mathrm{rad} / \mathrm{Gyr} \).
Definition at line 103 of file EccentricOrbit.cpp.
double Evolve::EccentricOrbit::orbital_energy | ( | ) | const |
The magnitude of the orbital energy of the system in \( M_\odot R_\odot^2 / \mathrm{Gyr}^2 \).
Definition at line 116 of file EccentricOrbit.cpp.
double Evolve::EccentricOrbit::orbital_period | ( | ) | const |
The orbital period of the system in days.
Definition at line 129 of file EccentricOrbit.cpp.
|
inline |
The semimajor axis of the system.
Definition at line 64 of file EccentricOrbit.h.
|
inline |
A mutable reference to the semimajor axis of the system.
Definition at line 67 of file EccentricOrbit.h.
|
private |
The reduced mass of the system in solar masses.
Definition at line 27 of file EccentricOrbit.cpp.
|
inline |
The semimajor axis of the system.
Definition at line 70 of file EccentricOrbit.h.
|
inline |
A mutable reference to the semimajor axis of the system.
Definition at line 73 of file EccentricOrbit.h.
Eigen::Vector3d Evolve::EccentricOrbit::secondary_position | ( | double | orbital_phase | ) | const |
Secondary position vector in a coordinate system centered on the primary, with \( \hat{z} = \hat{L} \) and \( \hat{y} = \hat{S} \times \hat{L} \).
orbital_phase | See same name argument to eccentric_anomaly(). |
Definition at line 87 of file EccentricOrbit.cpp.
|
inline |
The semimajor axis of the system.
Definition at line 76 of file EccentricOrbit.h.
|
inline |
A mutable reference to the semimajor axis of the system.
Definition at line 79 of file EccentricOrbit.h.
|
private |
The eccentricity of the orbit.
Definition at line 28 of file EccentricOrbit.h.
|
private |
The mass of the tidally perturbed object in solar masses.
Definition at line 28 of file EccentricOrbit.h.
|
private |
The mass of the perturber object in solar masses.
Definition at line 28 of file EccentricOrbit.h.
|
private |
The semimajor axis of the orbit in solar radii.
Definition at line 28 of file EccentricOrbit.h.