class for measure the status of the system
More...
#include <status.hpp>
|
| Status () |
|
template<class Tsoft > |
void | shiftToCenterOfMassFrame (Tsoft *_tsys, const PS::S64 _n) |
| shift particle system center to c.m. frame More...
|
|
template<class Tsoft > |
void | shiftToOriginFrame (Tsoft *_tsys, const PS::S64 _n) |
| shift particle system center back to original frame More...
|
|
template<class Tsoft > |
void | calcCenterOfMass (Tsoft *_tsys, const PS::S64 _n, int _mode=3) |
| calculate the center of system More...
|
|
template<class Tsoft > |
void | calcAndShiftCenterOfMass (Tsoft *_tsys, const PS::S64 _n, const int _mode=3, const bool initial_flag=false) |
| calculate the center of system and shift particle systems to center frame More...
|
|
void | printColumnTitle (std::ofstream &_fout, const PS::S32 _width=20) |
| print titles of class members using column style More...
|
|
void | printColumn (std::ofstream &_fout, const PS::S32 _width=20) |
| print data of class members using column style More...
|
|
void | print (std::ostream &_fout, const PS::S32 _precision=7) |
| print title and values in one lines More...
|
|
class for measure the status of the system
◆ Status()
◆ calcAndShiftCenterOfMass()
template<class Tsoft >
void Status::calcAndShiftCenterOfMass |
( |
Tsoft * |
_tsys, |
|
|
const PS::S64 |
_n, |
|
|
const int |
_mode = 3 , |
|
|
const bool |
initial_flag = false |
|
) |
| |
|
inline |
calculate the center of system and shift particle systems to center frame
- Parameters
-
[in] | _tsys | particle system |
[in] | _n | number of particle |
[in] | _mode | calculation mode, 1: center-of-the-mass; 2: number (no mass) weighted center; 3: soft potential weighted center |
◆ calcCenterOfMass()
template<class Tsoft >
void Status::calcCenterOfMass |
( |
Tsoft * |
_tsys, |
|
|
const PS::S64 |
_n, |
|
|
int |
_mode = 3 |
|
) |
| |
|
inline |
calculate the center of system
- Parameters
-
[in] | _tsys | particle system |
[in] | _n | number of particle |
[in] | _mode | calculation mode, 1: center-of-the-mass; 2: number (no mass) weighted center; 3: soft potential weighted center |
◆ print()
void Status::print |
( |
std::ostream & |
_fout, |
|
|
const PS::S32 |
_precision = 7 |
|
) |
| |
|
inline |
print title and values in one lines
print titles and values in one lines
- Parameters
-
[out] | _fout | std::ostream output object |
[in] | _precision | floating data precision except time (15 digital) |
◆ printColumn()
void Status::printColumn |
( |
std::ofstream & |
_fout, |
|
|
const PS::S32 |
_width = 20 |
|
) |
| |
|
inline |
print data of class members using column style
print data of class members in one line for column style. Notice no newline is printed at the end
- Parameters
-
[out] | _fout | std::ostream output object |
[in] | _width | print width (defaulted 20) |
◆ printColumnTitle()
void Status::printColumnTitle |
( |
std::ofstream & |
_fout, |
|
|
const PS::S32 |
_width = 20 |
|
) |
| |
|
inline |
print titles of class members using column style
print titles of class members in one line for column style
- Parameters
-
[out] | _fout | std::ostream output object |
[in] | _width | print width (defaulted 20) |
◆ shiftToCenterOfMassFrame()
template<class Tsoft >
void Status::shiftToCenterOfMassFrame |
( |
Tsoft * |
_tsys, |
|
|
const PS::S64 |
_n |
|
) |
| |
|
inline |
shift particle system center to c.m. frame
set is_center_shift_flag to true
- Parameters
-
[in,out] | _tsys | particle system |
[in] | _n | number of particle |
◆ shiftToOriginFrame()
template<class Tsoft >
void Status::shiftToOriginFrame |
( |
Tsoft * |
_tsys, |
|
|
const PS::S64 |
_n |
|
) |
| |
|
inline |
shift particle system center back to original frame
set is_center_shift_flag to false
- Parameters
-
[in,out] | _tsys | particle system |
[in] | _n | number of particle |
◆ energy
◆ half_mass_radius
PS::F64 Status::half_mass_radius |
◆ n_all_glb
PS::S64 Status::n_all_glb |
◆ n_all_loc
PS::S64 Status::n_all_loc |
◆ n_escape_glb
PS::S32 Status::n_escape_glb |
◆ n_real_glb
PS::S64 Status::n_real_glb |
◆ n_real_loc
PS::S64 Status::n_real_loc |
◆ n_remove_glb
PS::S32 Status::n_remove_glb |
◆ pcm
◆ time
The documentation for this class was generated from the following file: