PeTar
N-body code for collisional gravitational systems
|
Hard integrator parameter manager. More...
#include <hard.hpp>
Public Member Functions | |
HardManager () | |
constructor More... | |
void | setEpsSq (const PS::F64 _eps_sq) |
set softening More... | |
void | setGravitationalConstant (const PS::F64 _g) |
set gravitational constant More... | |
void | setDtRange (const PS::F64 _dt_max, const PS::S32 _dt_min_index) |
set time step range More... | |
bool | checkParams () |
check paramters More... | |
void | writeBinary (FILE *_fp) |
write class data to file with binary format More... | |
void | readBinary (FILE *_fin, int _version=0) |
read class data to file with binary format More... | |
void | print (std::ostream &_fout) const |
print parameters More... | |
Public Attributes | |
PS::F64 | energy_error_max |
PS::F64 | eps_sq |
PS::F64 | r_in_base |
PS::F64 | r_out_base |
PS::F64 | n_step_per_orbit |
ArtificialParticleManager | ap_manager |
H4::HermiteManager< HermiteInteraction > | h4_manager |
AR::TimeTransformedSymplecticManager< ARInteraction > | ar_manager |
Hard integrator parameter manager.
|
inline |
constructor
|
inline |
check paramters
|
inline |
print parameters
|
inline |
read class data to file with binary format
[in] | _fp | FILE type file for reading |
[in] | _version | version of parameter file, default: 0 |
|
inline |
set time step range
|
inline |
set softening
|
inline |
set gravitational constant
|
inline |
write class data to file with binary format
[in] | _fp | FILE type file for output |
ArtificialParticleManager HardManager::ap_manager |
AR::TimeTransformedSymplecticManager<ARInteraction> HardManager::ar_manager |
PS::F64 HardManager::energy_error_max |
PS::F64 HardManager::eps_sq |
H4::HermiteManager<HermiteInteraction> HardManager::h4_manager |
PS::F64 HardManager::n_step_per_orbit |
PS::F64 HardManager::r_in_base |
PS::F64 HardManager::r_out_base |