SMILE
v2.5
Schwarzschild Modelling Interactive expLoratory Environment
|
A helper object for computing the virial ratio for a set of point masses. More...
#include <orbitlib.h>
Public Member Functions | |
CPointMassSetHandler (const CPointMassSet< NumT > *_points) | |
void | computeVirialRatio (double *T, double *W) |
compute the kinetic and potential energy and return them in these two pointers | |
void | halt () |
stop the computation | |
Private Types | |
enum | PSTATE { PS_IDLE, PS_RUNNING, PS_NEEDTOTERMINATE, PS_DONE } |
internal state of the object (created/running/done) | |
Private Attributes | |
const CPointMassSet< NumT > * | points |
pointer to the array of bodies | |
volatile PSTATE | state |
computation state | |
A helper object for computing the virial ratio for a set of point masses.