kepler.h

Classes

kepler -- (full description)

class kepler

Interface

Protected Members
void to_pred_rel_pos_vel(real, real)
void to_pred_rel_pos_vel_linear(real)
void pred_true_to_mean_anomaly()
void mean_anomaly_to_periastron_passage()
void update_time_of_periastron()
void set_real_from_pred()
void pred_mean_anomaly_to_pos_and_vel()
Public Members
kepler()
void kep_to_dyn_story(story *)
void set_time(const real new_time)
void offset_time(const real dt)
void set_total_mass(const real new_mass)
void set_rel_pos(const vector& new_pos)
void set_rel_vel(const vector& new_vel)
void set_energy(const real E)
void set_semi_major_axis(const real a)
void set_angular_momentum(const real h)
void set_eccentricity(const real e)
void set_periastron(const real q)
void set_mean_anomaly(const real M)
void set_orientation(vector& l, vector& t, vector& n)
void align_with_axes(int)
void initialize_from_pos_and_vel()
void initialize_from_shape_and_phase()
real get_time()
real get_total_mass()
vector get_rel_pos()
vector get_rel_vel()
real get_energy()
real get_semi_major_axis()
real get_angular_momentum()
real get_eccentricity()
real get_periastron()
real get_period()
real get_mean_motion()
vector get_normal_unit_vector()
vector get_longitudinal_unit_vector()
vector get_transverse_unit_vector()
real get_separation()
real get_true_anomaly()
real get_mean_anomaly()
real get_time_of_periastron_passage()
real advance_to_radius(real)
real return_to_radius(real)
real advance_to_periastron()
real return_to_periastron()
real advance_to_apastron()
real return_to_apastron()
real transform_to_time(real)
real pred_transform_to_radius(real, int)
real pred_advance_to_radius(real)
real pred_return_to_radius(real)
real pred_advance_to_periastron()
real pred_return_to_periastron()
real pred_advance_to_apastron()
real pred_return_to_apastron()
real pred_transform_to_time(real)
void print_all(ostream & s = cout)
void print_dyn(ostream & s = cout)
void print_elements(ostream & s = cout)

Description

----------------------------------------------------------------------------- kepler -- a representation for the internal degrees of freedom of a 2-body system. -----------------------------------------------------------------------------

kepler

Member Description

void to_pred_rel_pos_vel(real, real)

predicted value

local functions:

void to_pred_rel_pos_vel_linear(real)

void pred_true_to_mean_anomaly()

void mean_anomaly_to_periastron_passage()

void update_time_of_periastron()

to be pred_ified ??

void set_real_from_pred()

void pred_mean_anomaly_to_pos_and_vel()

kepler()

void kep_to_dyn_story(story *)

void set_time(const real new_time)

saves essential information on the kepler class in the dyn story

void offset_time(const real dt)

void set_total_mass(const real new_mass)

void set_rel_pos(const vector& new_pos)

void set_rel_vel(const vector& new_vel)

void set_energy(const real E)

void set_semi_major_axis(const real a)

void set_angular_momentum(const real h)

void set_eccentricity(const real e)

void set_periastron(const real q)

void set_mean_anomaly(const real M)

void set_orientation(vector& l, vector& t, vector& n)

void align_with_axes(int)

void initialize_from_pos_and_vel()

void initialize_from_shape_and_phase()

real get_time()

real get_total_mass()

vector get_rel_pos()

vector get_rel_vel()

real get_energy()

real get_semi_major_axis()

real get_angular_momentum()

real get_eccentricity()

real get_periastron()

real get_period()

real get_mean_motion()

vector get_normal_unit_vector()

vector get_longitudinal_unit_vector()

vector get_transverse_unit_vector()

real get_separation()

real get_true_anomaly()

real get_mean_anomaly()

real get_time_of_periastron_passage()

real advance_to_radius(real)

The following functions transform the relative position and velocity, as well as the other internal variables (`radius' is the separation between the two stars).

real return_to_radius(real)

transform forwards in time

real advance_to_periastron()

transform backwards in time

real return_to_periastron()

real advance_to_apastron()

real return_to_apastron()

real transform_to_time(real)

real pred_transform_to_radius(real, int)

The following functions transform only the predicted relative position and velocity, and predicted mean and true anomaly, but leave all other internal variables unchanged.

real pred_advance_to_radius(real)

real pred_return_to_radius(real)

transform forwards in t

real pred_advance_to_periastron()

transform backwards in t

real pred_return_to_periastron()

real pred_advance_to_apastron()

real pred_return_to_apastron()

real pred_transform_to_time(real)

void print_all(ostream & s = cout)

Simple print routines:

void print_dyn(ostream & s = cout)

void print_elements(ostream & s = cout)