PeTar
N-body code for collisional gravitational systems
HardManager Class Reference

Hard integrator parameter manager. More...

#include <hard.hpp>

Collaboration diagram for HardManager:
[legend]

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< HermiteInteractionh4_manager
 
AR::TimeTransformedSymplecticManager< ARInteractionar_manager
 

Detailed Description

Hard integrator parameter manager.

Constructor & Destructor Documentation

◆ HardManager()

HardManager::HardManager ( )
inline

constructor

Member Function Documentation

◆ checkParams()

bool HardManager::checkParams ( )
inline

check paramters

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print()

void HardManager::print ( std::ostream &  _fout) const
inline

print parameters

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readBinary()

void HardManager::readBinary ( FILE *  _fin,
int  _version = 0 
)
inline

read class data to file with binary format

Parameters
[in]_fpFILE type file for reading
[in]_versionversion of parameter file, default: 0
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDtRange()

void HardManager::setDtRange ( const PS::F64  _dt_max,
const PS::S32  _dt_min_index 
)
inline

set time step range

Here is the caller graph for this function:

◆ setEpsSq()

void HardManager::setEpsSq ( const PS::F64  _eps_sq)
inline

set softening

Here is the caller graph for this function:

◆ setGravitationalConstant()

void HardManager::setGravitationalConstant ( const PS::F64  _g)
inline

set gravitational constant

Here is the caller graph for this function:

◆ writeBinary()

void HardManager::writeBinary ( FILE *  _fp)
inline

write class data to file with binary format

Parameters
[in]_fpFILE type file for output
Here is the call graph for this function:

Member Data Documentation

◆ ap_manager

ArtificialParticleManager HardManager::ap_manager

◆ ar_manager

AR::TimeTransformedSymplecticManager<ARInteraction> HardManager::ar_manager

◆ energy_error_max

PS::F64 HardManager::energy_error_max

◆ eps_sq

PS::F64 HardManager::eps_sq

◆ h4_manager

H4::HermiteManager<HermiteInteraction> HardManager::h4_manager

◆ n_step_per_orbit

PS::F64 HardManager::n_step_per_orbit

◆ r_in_base

PS::F64 HardManager::r_in_base

◆ r_out_base

PS::F64 HardManager::r_out_base

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