A class contains information (e.g. parameters, binary tree, indices) about the particle group.
More...
|
| Information () |
|
a list of binary tree that contain the hierarchical orbital parameters of the particle group.
More...
|
|
bool | checkParams () |
| check whether parameters values are correct initialized More...
|
|
void | reserveMem (const int _nmax) |
| reserve memory of binarytree list More...
|
|
BinaryTree< Tparticle > & | getBinaryTreeRoot () const |
| get the root of binary tree More...
|
|
Float | calcDsElliptic (BinaryTree< Tparticle > &_bin, const Float &_G) |
|
Float | calcDsHyperbolic (BinaryTree< Tparticle > &_bin, const Float &_G) |
|
void | calcDsMinKeplerIter (Float &_ds_over_ebin_min_bin, Float &_ds_min_bin, Float &_ds_min_hyp, Float &_etot_sd, const Float &_G, const Float &_nest_sd_up, BinaryTree< Tparticle > &_bin, const int _intergrator_order) |
| iteration function to calculate average kepler ds for a binary tree More...
|
|
Float | calcDsKeplerBinaryTree (BinaryTree< Tparticle > &_bin, const int _int_order, const Float &_G, const Float &_ds_scale) |
| calculate average kepler ds iterately for a binary tree More...
|
|
void | calcDsAndStepOption (const int _int_order, const Float &_G, const Float &_ds_scale) |
| calculate ds from the inner most binary with minimum period, determine the fix step option More...
|
|
void | generateBinaryTree (COMM::ParticleGroup< Tparticle, Tpcm > &_particles, const Float _G) |
| generate binary tree for the particle group More...
|
|
bool | checkAndSetBinaryPairIDIter (BinaryTree< Tparticle > &_bin, const bool _reset_flag) |
| check binary tree member pair id, if consisent, return ture. otherwise set the member pair id More...
|
|
void | clear () |
| clear function More...
|
|
void | printColumnTitle (std::ostream &_fout, const int _width=20) |
| print titles of class members using column style More...
|
|
void | printColumn (std::ostream &_fout, const int _width=20) |
| print data of class members using column style More...
|
|
void | writeBinary (FILE *_fout) const |
| write class data to file with binary format More...
|
|
void | readBinary (FILE *_fin) |
| read class data to file with binary format More...
|
|
template<class Tparticle, class Tpcm>
class AR::Information< Tparticle, Tpcm >
A class contains information (e.g. parameters, binary tree, indices) about the particle group.
The member of this class should not be the data that must be recored and should be possible calculated any time based on the main class (TimeTransformedSymplecticIntegrator) data. This class must be inherited when a different Information class is applied in the main class, since the binary tree is used in the integration for slowdown factor The basic members are used in the integration are \ ds: integration step size \ binarytree: the Kepler orbital parameters of the hierarchical systems and slowdown factors \ fix_step_option: option to control whether the adjustment of step sizes are used \
template<class Tparticle , class Tpcm >
void AR::Information< Tparticle, Tpcm >::calcDsAndStepOption |
( |
const int |
_int_order, |
|
|
const Float & |
_G, |
|
|
const Float & |
_ds_scale |
|
) |
| |
|
inline |
calculate ds from the inner most binary with minimum period, determine the fix step option
Estimate ds first from the inner most binary orbit (eccentric anomaly), set fix_step_option to later
- Parameters
-
[in] | _int_order | accuracy order of the symplectic integrator. |
[in] | _G | gravitational constant |
[in] | _ds_scale | scaling factor to determine ds |