WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
kepler.cpp File Reference
#include <cmath>
#include "kepler.h"
#include "core/safemath.h"
#include "core/clockwerkerrors.h"
#include "constants/unitutils.h"
#include "utils/orbitutils.h"

Namespaces

namespace  warptwin
 Class to propagate CR3BP dynamics in characteristic units.

Functions

int warptwin::twoBodyPropagate (double time, double mu, clockwerk::CartesianVector< 3 > pos_initial, clockwerk::CartesianVector< 3 > vel_initial, clockwerk::CartesianVector< 3 > &pos_final, clockwerk::CartesianVector< 3 > &vel_final)
 Function to propagate a body between two points in time using a keplerian orbit.
int warptwin::mean2eccentric (double mean_anomaly, double eccentricity, double &eccentric_anomaly, double tol, int max_iter)
 Function to convert mean anomaly to eccentric anomaly.
int warptwin::eccentric2true (double eccentric_anomaly, double eccentricity, double &true_anomaly)
 Function to convert eccentric anomaly to true anomaly.
int warptwin::true2eccentric (double true_anomaly, double eccentricity, double &eccentric_anomaly)
 Function to convert true anomaly to eccentric anomaly.
int warptwin::eccentric2mean (double eccentric_anomaly, double eccentricity, double &mean_anomaly)
 Function to convert eccentric anomaly to mean anomaly.