Planetary Orbital Evolution due to Tides
Orbital evolution of two objects experiencing tides
OrbitalExpressions.cpp File Reference

The definitions of the orbital expression functions. More...

+ Include dependency graph for OrbitalExpressions.cpp:

Go to the source code of this file.

Functions

double Core::factorial (unsigned n)
 
double Core::orbital_angular_velocity ( double m1, double m2, double semimajor, bool deriv=false)
 Returns the orbital angular velocity of the given orbit in rad/day. More...
 
double Core::orbital_energy ( double m1, double m2, double semimajor, unsigned deriv_order=0)
 The energy of the orbit (assuming 0 gravitational potential at infinity) in \(\frac{M_\odot R_\odot^2 rad^2}{day^2}\). More...
 
double Core::orbital_angular_momentum ( double m1, double m2, double semimajor, double eccentricity)
 The angular momentum of the orbit in \(\frac{M_\odot R_\odot^2 rad}{day}\). More...
 
LIB_PUBLIC double Core::semimajor_from_period ( double m1, double m2, double period)
 Return the semiamjor axis in solar radii required to have the given masses orbit with the given period. More...
 

Detailed Description

The definitions of the orbital expression functions.

Definition in file OrbitalExpressions.cpp.

Function Documentation

◆ orbital_angular_momentum()

LIB_PUBLIC double Core::orbital_angular_momentum ( double  m1,
double  m2,
double  semimajor,
double  eccentricity 
)

The angular momentum of the orbit in \(\frac{M_\odot R_\odot^2 rad}{day}\).

Parameters
m1The mass of the first body in \(M_\odot\).
m2The mass of the second body in \(M_\odot\).
semimajorThe semimajor axis in AU
eccentricityThe eccentricity.

Definition at line 54 of file OrbitalExpressions.cpp.

◆ orbital_angular_velocity()

LIB_PUBLIC double Core::orbital_angular_velocity ( double  m1,
double  m2,
double  semimajor,
bool  deriv 
)

Returns the orbital angular velocity of the given orbit in rad/day.

Parameters
m1The mass of the first body in \(M_\odot\).
m2The mass of the second body in \(M_\odot\).
semimajorThe semimajor axis in \(R_\odot\)
derivWhether to return the derivative with respect to the semimajor axis instead of the value.

Definition at line 17 of file OrbitalExpressions.cpp.

◆ orbital_energy()

LIB_PUBLIC double Core::orbital_energy ( double  m1,
double  m2,
double  semimajor,
unsigned  deriv_order 
)

The energy of the orbit (assuming 0 gravitational potential at infinity) in \(\frac{M_\odot R_\odot^2 rad^2}{day^2}\).

Parameters
m1The mass of the first body in \(M_\odot\).
m2The mass of the second body in \(M_\odot\).
semimajorThe semimajor axis in AU
deriv_orderThe order of the derivative w.r.t. a required.

Definition at line 38 of file OrbitalExpressions.cpp.

◆ semimajor_from_period()

LIB_PUBLIC double Core::semimajor_from_period ( double  m1,
double  m2,
double  period 
)

Return the semiamjor axis in solar radii required to have the given masses orbit with the given period.

Parameters
m1The mass of the first body in \(M_\odot\).
m2The mass of the second body in \(M_\odot\).
periodThe orbital period in days

Definition at line 72 of file OrbitalExpressions.cpp.