SlowDown Algorithmic Regularization (SDAR)
Algorithmic Regularization with slowdown method for integrating few-body motions
|
Slow-down parameter control class. More...
#include <slow_down.h>
Public Member Functions | |
SlowDown () | |
defaulted constructor More... | |
void | clear () |
clear function More... | |
void | initialSlowDownReference (const Float _kappa_ref, const Float _timescale_max) |
initialize slow-down parameters More... | |
void | setUpdateTime (const Float _time) |
set update time for new slowdown factor More... | |
Float | getUpdateTime () const |
get update time for new slowdown factor More... | |
void | increaseUpdateTimeOnePeriod () |
advance update time by one period More... | |
void | setSlowDownFactor (const Float _kappa) |
manually set kappa More... | |
Float | calcSlowDownFactor () |
calculate slowdown factor based on perturbation and inner acceleration More... | |
Float | getSlowDownFactor () const |
Get slow-down factor. More... | |
Float | getSlowDownFactorOrigin () const |
Get original slow-down factor. More... | |
Float | getSlowDownFactorReference () const |
Get sd reference factor. More... | |
Float | getSlowDownFactorMax () const |
Get slow-down fact maximum. More... | |
Float | getPertIn () const |
Float | getPertOut () const |
Float | getTimescaleMax () const |
void | writeBinary (FILE *_fout) |
write class data with BINARY format More... | |
void | readBinary (FILE *_fin) |
read class data with BINARY format More... | |
int | backup (Float *_bk) |
backup real time and force ratio More... | |
int | restore (Float *_bk) |
restore real time and force ratio More... | |
void | print (std::ostream &fout, const int precision=15, const int width=23) |
print slowdown data More... | |
void | printColumn (std::ostream &_fout, const int _width=20) |
print data of class members using column style More... | |
Static Public Member Functions | |
static int | getBackupDataSize () |
get backup data size More... | |
static void | printColumnTitle (std::ostream &_fout, const int _width=20) |
print titles of class members using column style More... | |
Public Attributes | |
Float | pert_in |
Float | pert_out |
Float | timescale |
Float | period |
Slow-down parameter control class.
Determine the slow-down factor due to the perturbation and internal force \( \kappa = k_0 / [F_{pert,max}/F_{inner}] \)
|
inline |
defaulted constructor
|
inline |
backup real time and force ratio
[in] | _bk | backup data array, should be size of getBackupDataSize() (2) |
|
inline |
calculate slowdown factor based on perturbation and inner acceleration
|
inline |
clear function
|
inlinestatic |
get backup data size
|
inline |
|
inline |
|
inline |
Get slow-down factor.
|
inline |
Get slow-down fact maximum.
|
inline |
Get original slow-down factor.
|
inline |
Get sd reference factor.
|
inline |
|
inline |
get update time for new slowdown factor
|
inline |
advance update time by one period
|
inline |
initialize slow-down parameters
Set slow-down parameters, slow-down method will be switched on
[in] | _kappa_ref | reference kappa factor; slow-down factor kappa = max(1,kref/perturbation_factor) |
[in] | _timescale_max | maximum timescale |
|
inline |
print slowdown data
Print slowdown data
[in] | fout | ofstream for printing |
[in] | precision | printed precision for one variable |
[in] | width | printing width for one variable |
|
inline |
print data of class members using column style
print data of class members in one line for column style. Notice no newline is printed at the end
[out] | _fout | std::ostream output object |
[in] | _width | print width (defaulted 20) |
|
inlinestatic |
print titles of class members using column style
print titles of class members in one line for column style
[out] | _fout | std::ostream output object |
[in] | _width | print width (defaulted 20) |
|
inline |
read class data with BINARY format
[in] | _fin | file IO for read |
|
inline |
restore real time and force ratio
[in] | _bk | restore data array[3] |
|
inline |
manually set kappa
|
inline |
set update time for new slowdown factor
|
inline |
write class data with BINARY format
[in] | _fout | file IO for write |
Float AR::SlowDown::period |
Float AR::SlowDown::pert_in |
Float AR::SlowDown::pert_out |
Float AR::SlowDown::timescale |