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

PseudoParticle Multipole method for counter force from binaries. More...

#include <pseudoparticle_multipole.hpp>

Public Member Functions

bool checkParams ()
 check paramters More...
 
template<class Tptcl >
void createSampleParticles (Tptcl *_ptcl_artificial, COMM::BinaryTree< Tptcl, COMM::Binary > &_bin)
 create pseudoparticle multipole particles More...
 
void writeBinary (FILE *_fp)
 write class data to file with binary format More...
 
void readBinary (FILE *_fin)
 read class data to file with binary format More...
 
void print (std::ostream &_fout) const
 print parameters More...
 

Static Public Member Functions

static PS::S32 getParticleN ()
 get particle number More...
 

Detailed Description

PseudoParticle Multipole method for counter force from binaries.

Member Function Documentation

◆ checkParams()

bool PseudoParticleMultipoleManager::checkParams ( )
inline

check paramters

Here is the caller graph for this function:

◆ createSampleParticles()

template<class Tptcl >
void PseudoParticleMultipoleManager::createSampleParticles ( Tptcl *  _ptcl_artificial,
COMM::BinaryTree< Tptcl, COMM::Binary > &  _bin 
)
inline

create pseudoparticle multipole particles

Create three particles that have the same quadrupole moment as orbit-averaged binaries.

Parameters
[in]<em>ptcl_artificialparticle array to store the sample particles, 2*n_split will be used
[in]_binbinary orbit
Here is the caller graph for this function:

◆ getParticleN()

static PS::S32 PseudoParticleMultipoleManager::getParticleN ( )
inlinestatic

get particle number

Here is the caller graph for this function:

◆ print()

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

print parameters

Here is the caller graph for this function:

◆ readBinary()

void PseudoParticleMultipoleManager::readBinary ( FILE *  _fin)
inline

read class data to file with binary format

Parameters
[in]_fpFILE type file for reading
Here is the caller graph for this function:

◆ writeBinary()

void PseudoParticleMultipoleManager::writeBinary ( FILE *  _fp)
inline

write class data to file with binary format

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

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