#include <slow_binary.h>
Public Member Functions | |
slow_binary (int k=1) | |
xreal | tau_to_time (real tt=0) |
real | time_to_tau (xreal t) |
Convert time to slow time. | |
void | set_kappa (int k) |
int | get_kappa () |
void | set_t_init (xreal t) |
xreal | get_t_init () |
void | set_t_apo (xreal t) |
xreal | get_t_apo () |
void | set_tau (real t) |
void | inc_tau (real dt) |
real | get_tau () |
void | set_tau_pred (real t) |
void | clear_tau_pred () |
void | init_tau_pred () |
real | get_tau_pred () |
void | set_dtau (real dt) |
real | get_dtau () |
void | set_acc_p (vec a) |
vec | get_acc_p () |
void | set_jerk_p (vec j) |
vec | get_jerk_p () |
void | set_old_acc_p (vec a) |
vec | get_old_acc_p () |
void | set_old_jerk_p (vec j) |
vec | get_old_jerk_p () |
void | store_old_force () |
void | set_stop (bool v=true) |
bool | get_stop () |
Private Attributes | |
int | kappa |
Slowdown factor (power of 2). | |
xreal | t_init |
Time when this kappa value began. | |
xreal | t_apo |
Time of last "apocenter" (convenience). | |
real | tau |
Slow time. | |
real | tau_pred |
Slow t_pred. | |
real | dtau |
Slow timestep: true timestep = dtau*kappa. | |
vec | acc_p |
Perturbation to CM acceleration. | |
vec | jerk_p |
Perturbation to CM jerk. | |
vec | old_acc_p |
Previous acc_p. | |
vec | old_jerk_p |
Previous jerk_p. | |
bool | stop |
Flag to force stop next time around. |
Definition at line 7 of file slow_binary.h.