SlowDown Algorithmic Regularization (SDAR)
Algorithmic Regularization with slowdown method for integrating few-body motions
AR::BinarySlowDown Class Reference

binary parameter with slowdown More...

#include <information.h>

Inheritance diagram for AR::BinarySlowDown:
[legend]
Collaboration diagram for AR::BinarySlowDown:
[legend]

Public Member Functions

void writeBinary (FILE *_fp) const
 write class data to file with binary format More...
 
void readBinary (FILE *_fin)
 read class data to file with binary format More...
 
void printColumn (std::ostream &_fout, const int _width=20)
 print data of class members using column style More...
 
- Public Member Functions inherited from COMM::Binary
template<class Tpi , class Tpj >
void particleToSemiEccPeriod (const Tpi &_p1, const Tpj &_p2, const Float _G)
 calcualte semi, ecc and period More...
 
Float calcEccAnomaly (const Float _r)
 calculate eccentric anomaly from separation (0-pi) More...
 
template<class Tptcl >
void calcOrbit (const Tptcl &_p1, const Tptcl &_p2, const Float _G)
 calculate kepler Orbit from particles More...
 
template<class Tptcl >
void calcParticles (Tptcl &_p1, Tptcl &_p2, const Float &_G)
 calculate two components from kepler Orbit More...
 
void calcSemiFromPeriod (const Float &_G)
 from period calculate semi-major axis More...
 
template<class Tptcl >
void calcParticlesEcca (Tptcl &_p1, Tptcl &_p2, const Float _ecca, const Float _G) const
 calculate two components from kepler Orbit with input eccentricity anomaly More...
 
void rotateToOriginalFrame (Float *_vec)
 rotate position vector from binary rest-frame to original frame based on three angles More...
 
void evolve (const Float _dt)
 Solve kepler motion for dt. More...
 
void print (std::ostream &_os) const
 
void printColumn (std::ostream &_fout, const int _width=20)
 print data of class members using column style More...
 
void writeBinary (FILE *_fp) const
 write class data to file with binary format More...
 
void readBinary (FILE *_fin)
 read class data to file with binary format More...
 
void writeAscii (std::ostream &_fout) const
 write class data to file with ASCII format More...
 
void readAscii (std::istream &_fin)
 read class data to file with ASCII format More...
 

Static Public Member Functions

static void printColumnTitle (std::ostream &_fout, const int _width=20)
 print titles of class members using column style More...
 
- Static Public Member Functions inherited from COMM::Binary
template<class Tptcl >
static void orbitToParticle (Tptcl &_p1, Tptcl &_p2, const Binary &_bin, const Float &_ecca, const Float _G)
 Orbit to position and velocity. More...
 
template<class Tptcl >
static void particleToOrbit (Binary &_bin, const Tptcl &_p1, const Tptcl &_p2, const Float _G)
 position velocity to orbit More...
 
static Float periodToSemi (const Float &_period, const Float &_mtot, const Float &_G)
 from period calculate semi-major axis More...
 
static Float semiToPeriod (const Float &_semi, const Float &_mtot, const Float &_G)
 from semi-major axis calculate period; More...
 
template<class Tpi , class Tpj >
static void particleToSemiEcc (Float &_semi, Float &_ecc, Float &_r, Float &_rv, const Tpi &_p1, const Tpj &_p2, const Float _G)
 position velocity to orbit semi-major axis and eccentricity More...
 
static Float calcMeanAnomaly (const Float _ecca, const Float _ecc)
 calculate mean anomaly from eccentric anomaly (0-pi) More...
 
static Float calcEccAnomaly (const Float _mean_anomaly, const Float _ecc)
 calculate eccentric anomaly from mean anomaly More...
 
static void solveKepler (Binary &_bin, const Float _dt)
 solve kepler orbit after dt More...
 
static void printColumnTitle (std::ostream &_fout, const int _width=20)
 print titles of class members using column style More...
 

Public Attributes

SlowDown slowdown
 
Float stab_check_time
 
- Public Attributes inherited from COMM::Binary
Float semi
 
Float ecc
 
Float incline
 
Float rot_horizon
 
Float rot_self
 
Float t_peri
 
Float period
 
Float ecca
 
Float m1
 
Float m2
 
Float r
 
Vector3< Floatam
 
Float stab
 

Detailed Description

binary parameter with slowdown

Member Function Documentation

◆ printColumn()

void AR::BinarySlowDown::printColumn ( std::ostream &  _fout,
const int  _width = 20 
)
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

Parameters
[out]_foutstd::ostream output object
[in]_widthprint width (defaulted 20)
Here is the call graph for this function:

◆ printColumnTitle()

static void AR::BinarySlowDown::printColumnTitle ( std::ostream &  _fout,
const int  _width = 20 
)
inlinestatic

print titles of class members using column style

print titles of class members in one line for column style

Parameters
[out]_foutstd::ostream output object
[in]_widthprint width (defaulted 20)
Here is the call graph for this function:

◆ readBinary()

void AR::BinarySlowDown::readBinary ( FILE *  _fin)
inline

read class data to file with binary format

Parameters
[in]_finFILE type file for reading

◆ writeBinary()

void AR::BinarySlowDown::writeBinary ( FILE *  _fp) const
inline

write class data to file with binary format

Parameters
[in]_fpFILE type file for output

Member Data Documentation

◆ slowdown

SlowDown AR::BinarySlowDown::slowdown

◆ stab_check_time

Float AR::BinarySlowDown::stab_check_time

The documentation for this class was generated from the following file: