Loading [MathJax]/extensions/tex2jax.js
PeTar
N-body code for collisional gravitational systems
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FPSoftWriteArtificial Class Reference

redefine readAscii to read group data format, write in I64 format More...

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

Public Member Functions

void readAscii (FILE *_fin)
 
- Public Member Functions inherited from FPSoft
 FPSoft ()
 
PS::F64vec getPos () const
 Get position (required for ARC::chain) More...
 
PS::F64vec getVel () const
 Get velocity (required for ARC::chain) More...
 
template<class Tptcl >
 FPSoft (const Tptcl &p, const PS::S32 rank_, const PS::S32 adr_)
 
void copyFromForce (const ForceSoft &force)
 
PS::F64 getRSearch () const
 
void writeAscii (FILE *fp) const
 
void writeBinary (FILE *fp) const
 
void readAscii (FILE *fp)
 
void readBinary (FILE *fp)
 
void print (std::ostream &fout)
 
void printColumn (std::ostream &_fout, const int _width=20)
 print data of class members using column style More...
 
template<class Tpcm >
void printColumnWithOffset (Tpcm &_pcm, std::ostream &_fout, const int _width=20)
 print data of class members with pos and vel offset using column style More...
 
void clearForce ()
 clear force More...
 
- Public Member Functions inherited from Ptcl
 Ptcl ()
 
template<class Tptcl >
 Ptcl (const Tptcl &_p)
 
template<class Tptcl >
 Ptcl (const Tptcl &_p, const PS::F64 _r_search, const PS::S64 _id, const GroupDataDeliver &_group_data, const ChangeOver &_co)
 
template<class Tptcl >
void DataCopy (const Tptcl &_p)
 
template<class Tptcl >
Ptcloperator= (const Tptcl &_p)
 
void print (std::ostream &_fout) const
 
void printColumn (std::ostream &_fout, const int _width=20)
 print data of class members using column style More...
 
template<class Tpcm >
void printColumnWithOffset (Tpcm &_pcm, std::ostream &_fout, const int _width=20)
 print data of class members with pos and vel offset using column style More...
 
void writeAscii (FILE *_fout) const
 write class data with ASCII format More...
 
void writeBinary (FILE *_fout) const
 write class data with BINARY format More...
 
void readAscii (FILE *_fin)
 read class data with ASCII format More...
 
void readBinary (FILE *_fin)
 read class data with BINARY format More...
 
void setParticleCMAddress (const PS::S64 _adr)
 set status to c.m. particle address More...
 
PS::S64 getParticleCMAddress () const
 get c.m. particle address More...
 
void calcRSearch (const PS::F64 _dt_tree)
 calculate new rsearch More...
 
PS::F64 getRNeighbor () const
 Get neighbor distance criterion. More...
 
PS::F64 getRGroupCandidate () const
 Get group candidate distance criterion. More...
 
PS::F64 getRGroup () const
 Get group distance criterion. More...
 
- Public Member Functions inherited from ParticleBase
void setBinaryPairID (const PS::S64 _id)
 save pair id in binary_state with shift bit size of BINARY_STATE_ID_SHIFT More...
 
void setBinaryInterruptState (const BinaryInterruptState _state)
 save binary interrupt state in the first BINARY_STATE_ID_SHIFT bit in binary_state More...
 
BinaryInterruptState getBinaryInterruptState () const
 get binary interrupt state from binary_state More...
 
PS::S64 getBinaryPairID () const
 get pair ID from binary_state More...
 
 ParticleBase ()
 defaulted constructor More...
 
template<class Tp >
 ParticleBase (const Tp &p)
 
 ParticleBase (const PS::F64 _mass, const PS::F64vec &_pos, const PS::F64vec &_vel)
 constructor More...
 
 ParticleBase (const PS::F64 _mass, const PS::F64vec &_pos, const PS::F64vec &_vel, const PS::S64 _binary_state)
 constructor More...
 
void writeAscii (FILE *fp) const
 write class data with ASCII format More...
 
void readAscii (FILE *fp)
 read class data with ASCII format More...
 
void writeBinary (FILE *fp) const
 write class data with BINARY format More...
 
void readBinary (FILE *fp)
 read class data with BINARY format More...
 
void print (std::ostream &fout) const
 for print debugging More...
 
void printColumn (std::ostream &_fout, const int _width=20) const
 print data of class members using column style More...
 
template<class Tpcm >
void printColumnWithOffset (Tpcm &_pcm, std::ostream &_fout, const int _width=20) const
 print data of class members with pos and vel offset using column style More...
 
template<class Tp >
void DataCopy (const Tp &din)
 Copy from another ParticleBase. More...
 
PS::F64 getMass ()
 Get mass (required for ARC::chain) More...
 
PS::F64 * getPos ()
 Get position (required for ARC::chain) More...
 
PS::F64 * getVel ()
 Get velocity (required for ARC::chain) More...
 
void setPos (const PS::F64 x, const PS::F64 y, const PS::F64 z)
 Set position (required for ARC::chain) More...
 
void setPos (const PS::F64vec &_pos)
 Set position (used in soft part) More...
 
void setVel (const PS::F64 vx, const PS::F64 vy, const PS::F64 vz)
 Set velocity (required for ARC::chain) More...
 
void setVel (const PS::F64vec &_vel)
 Set velocity. More...
 
void setMass (const PS::F64 m)
 Set mass (required for ARC::chain) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from FPSoft
static void printColumnTitle (std::ostream &_fout, const int _width=20)
 print titles of class members using column style More...
 
static int printTitleWithMeaning (std::ostream &_fout, const int _counter=0, const int _offset=0)
 print column title with meaning (each line for one column) More...
 
- Static Public Member Functions inherited from Ptcl
static void printColumnTitle (std::ostream &_fout, const int _width=20)
 print titles of class members using column style More...
 
static int printTitleWithMeaning (std::ostream &_fout, const int _counter=0, const int _offset=0)
 print column title with meaning (each line for one column) More...
 
- Static Public Member Functions inherited from ParticleBase
static void printColumnTitle (std::ostream &_fout, const int _width=20)
 print titles of class members using column style More...
 
static int printTitleWithMeaning (std::ostream &_fout, const int _counter=0, const int _offset=0)
 print column title with meaning (each line for one column) More...
 
- Public Attributes inherited from FPSoft
PS::F64vec acc
 
PS::F64 pot_tot
 
PS::F64 pot_soft
 
PS::S64 n_ngb
 
PS::S32 rank_org
 
PS::S32 adr
 
- Public Attributes inherited from Ptcl
PS::F64 r_search
 
PS::S64 id
 
GroupDataDeliver group_data
 
ChangeOver changeover
 
- Public Attributes inherited from ParticleBase
PS::F64 mass
 
PS::F64vec pos
 
PS::F64vec vel
 
PS::S64 binary_state
 
- Static Public Attributes inherited from Ptcl
static PS::F64 search_factor = 0.0
 
static PS::F64 r_search_min = 0.0
 
static PS::F64 r_group_crit_ratio =0.0
 
static PS::F64 mean_mass_inv = 0.0
 
static GroupDataMode group_data_mode = GroupDataMode::none
 

Detailed Description

redefine readAscii to read group data format, write in I64 format

Member Function Documentation

◆ readAscii()

void FPSoftWriteArtificial::readAscii ( FILE *  _fin)
inline
Here is the call graph for this function:

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