class to manager symplectic KD steps
More...
#include <symplectic_step.h>
class to manager symplectic KD steps
The Yoshida (1990) type symplectic methods
◆ SymplecticStep()
AR::SymplecticStep::SymplecticStep |
( |
| ) |
|
|
inline |
◆ calcErrorRatioFromStepModifyFactor()
Float AR::SymplecticStep::calcErrorRatioFromStepModifyFactor |
( |
const Float |
_step_new_over_old | ) |
|
|
inline |
calculate the enstep modify factor based on the order scaling and input energy error ratio
- Parameters
-
[in] | _step_new_over_old | step size modify ratio (new step size / old) |
◆ calcStepModifyFactorFromErrorRatio()
Float AR::SymplecticStep::calcStepModifyFactorFromErrorRatio |
( |
const Float |
_error_new_over_old | ) |
|
|
inline |
calculate the step modify factor based on the order scaling and input energy error ratio
- Parameters
-
[in] | _error_new_over_old | integration error change ratio expected to reach after modify step size (expected new error / old error) |
◆ clear()
void AR::SymplecticStep::clear |
( |
| ) |
|
|
inline |
◆ getCDPairSize()
int AR::SymplecticStep::getCDPairSize |
( |
| ) |
const |
|
inline |
◆ getCK()
Float AR::SymplecticStep::getCK |
( |
const int |
_k | ) |
const |
|
inline |
◆ getDK()
Float AR::SymplecticStep::getDK |
( |
const int |
_k | ) |
const |
|
inline |
◆ getOrder()
int AR::SymplecticStep::getOrder |
( |
| ) |
const |
|
inline |
◆ getSortCumSumCK()
Float AR::SymplecticStep::getSortCumSumCK |
( |
const int |
_k | ) |
const |
|
inline |
◆ getSortCumSumCKIndex()
int AR::SymplecticStep::getSortCumSumCKIndex |
( |
const int |
_k | ) |
const |
|
inline |
get sorted cumsum CK index
◆ initialSymplecticCofficients()
void AR::SymplecticStep::initialSymplecticCofficients |
( |
const int |
_n | ) |
|
|
inline |
Symplectic coefficients generation for input order.
- Parameters
-
[in] | _n | symplectic integrator order, should be even, otherwise reduce to closest even number; if 0, not set; if negative, use second solution from Yoshida (1990), but only -6 and -8 works |
◆ print()
void AR::SymplecticStep::print |
( |
std::ostream & |
_fout | ) |
const |
|
inline |
◆ readBinary()
void AR::SymplecticStep::readBinary |
( |
FILE * |
_fin | ) |
|
|
inline |
read class data with BINARY format and initial the array
- Parameters
-
◆ writeBinary()
void AR::SymplecticStep::writeBinary |
( |
FILE * |
_fout | ) |
|
|
inline |
write class data with BINARY format
- Parameters
-
[in] | _fout | file IO for write |
The documentation for this class was generated from the following file: