orbital sampling method for counter force from binary
More...
#include <orbit_sampling.hpp>
orbital sampling method for counter force from binary
◆ OrbitalSamplingManager()
OrbitalSamplingManager::OrbitalSamplingManager |
( |
| ) |
|
|
inline |
gravitational constant
initializer
◆ ~OrbitalSamplingManager()
OrbitalSamplingManager::~OrbitalSamplingManager |
( |
| ) |
|
|
inline |
◆ checkParams()
bool OrbitalSamplingManager::checkParams |
( |
| ) |
|
|
inline |
◆ createSampleParticles()
template<class Tptcl >
void OrbitalSamplingManager::createSampleParticles |
( |
Tptcl * |
_ptcl_artificial, |
|
|
COMM::BinaryTree< Tptcl > & |
_bin |
|
) |
| |
|
inline |
create orbit sampling particles
each component have n_split_ samples with equal interval of eccentric anomaly. Mass is weighted by mean anomaly and summation is the same as binary mass.
- Parameters
-
[in] | <em>ptcl_artificial | particle array to store the sample particles, 2*n_split will be used |
[in] | _bin | binary orbit |
◆ getParticleN()
PS::S32 OrbitalSamplingManager::getParticleN |
( |
| ) |
const |
|
inline |
◆ getParticleSplitN()
PS::S32 OrbitalSamplingManager::getParticleSplitN |
( |
| ) |
const |
|
inline |
get particle split number
◆ operator=()
operator =
Copy function will remove the local data and also copy the particle data or the link
◆ print()
void OrbitalSamplingManager::print |
( |
std::ostream & |
_fout | ) |
const |
|
inline |
◆ readBinary()
void OrbitalSamplingManager::readBinary |
( |
FILE * |
_fin | ) |
|
|
inline |
read class data to file with binary format
- Parameters
-
[in] | _fp | FILE type file for reading |
◆ setParticleSplitN()
void OrbitalSamplingManager::setParticleSplitN |
( |
const PS::S32 & |
_n_split | ) |
|
|
inline |
set particle split number
- Parameters
-
[in] | _n_split | particle split number of orbital samples, total artificial particle number is 2*_n_split+TidalTensor::n_point+1, first TidalTensor::n_point are tidal tensor particles. |
◆ writeBinary()
void OrbitalSamplingManager::writeBinary |
( |
FILE * |
_fp | ) |
|
|
inline |
write class data to file with binary format
- Parameters
-
[in] | _fp | FILE type file for output |
◆ gravitational_constant
PS::F64 OrbitalSamplingManager::gravitational_constant |
The documentation for this class was generated from the following file: