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

Perturber class for AR integration. More...

#include <ar_perturber.hpp>

Inheritance diagram for ARPerturber:
[legend]
Collaboration diagram for ARPerturber:
[legend]

Public Types

typedef H4::Neighbor< PtclHardNB
 

Public Member Functions

 ARPerturber ()
 

minimum soft perturbation

More...
 
void clear ()
 clear function More...
 
bool checkParams ()
 check parameters status More...
 
PS::S32 findCloseSoftPert (TidalTensor *_tt, int &_n_tt, const int _n_max, const H4::ParticleH4< PtclHard > &_cm, const PS::F64 _gid)
 find close tidal tensor and if (-) tensor group id is the same as input, initial tidal tensor c.m. More...
 
template<class Tptcl >
void calcSoftPertMin (const AR::BinaryTree< Tptcl > &_bin, const Float _G)
 calculate soft_pert_min for slowdown pert_out More...
 

Public Attributes

TidalTensorsoft_pert
 
Float soft_pert_min
 

soft perturbation

More...
 

Detailed Description

Perturber class for AR integration.

Member Typedef Documentation

◆ NB

typedef H4::Neighbor<PtclHard> ARPerturber::NB

Constructor & Destructor Documentation

◆ ARPerturber()

ARPerturber::ARPerturber ( )
inline

minimum soft perturbation

Member Function Documentation

◆ calcSoftPertMin()

template<class Tptcl >
void ARPerturber::calcSoftPertMin ( const AR::BinaryTree< Tptcl > &  _bin,
const Float  _G 
)
inline

calculate soft_pert_min for slowdown pert_out

\Delta F = G m_cm m_p (apo) / rp^3 Pert_out = \Delta F /(G apo)

Parameters
[in]_binbinary parameters
[in]_Ggravitatioal constant
Here is the call graph for this function:

◆ checkParams()

bool ARPerturber::checkParams ( )
inline

check parameters status

◆ clear()

void ARPerturber::clear ( )
inline

clear function

◆ findCloseSoftPert()

PS::S32 ARPerturber::findCloseSoftPert ( TidalTensor _tt,
int &  _n_tt,
const int  _n_max,
const H4::ParticleH4< PtclHard > &  _cm,
const PS::F64  _gid 
)
inline

find close tidal tensor and if (-) tensor group id is the same as input, initial tidal tensor c.m.

if the tidal tensor is already in used (group_id>=0), copy a new one after _n_tt

Parameters
[in,out]_tttensor array
[in,out]_n_ttnumber of current tensor
[in]_n_maxmaximum size of tensor array
[in]_cmc.m. particle
[in]_gidgroup id (not necessary integer)
Returns
the tidal tensor index, if no match, return -1

Member Data Documentation

◆ soft_pert

TidalTensor* ARPerturber::soft_pert

◆ soft_pert_min

Float ARPerturber::soft_pert_min

soft perturbation


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