SMILE
v2.5
Schwarzschild Modelling Interactive expLoratory Environment
|
Trajectory sampler (record a given number of unsorted points from the trajectory, to be used in creating an Nbody model from the Schwarzschild model). More...
#include <orbitan.h>
Public Member Functions | |
COrbitRuntimeTrajSample (const COrbit *_orbit, size_t _numSamplingPoints, double _timeStep) | |
virtual FNCTYPE | FncType () const |
derived classes return their type | |
virtual STEPRESULT | Timestep (const double told, const double t, CPosVelPoint< double > *vars) |
record trajectory at regular intervals | |
virtual void | Finish () |
draw a necessary number of sampling points from the entire trajectory | |
virtual CBasicInformation * | getData () const |
returns the collected data as an instance of an information object | |
Public Member Functions inherited from smile::CBasicOrbitRuntimeFnc | |
CBasicOrbitRuntimeFnc (const COrbit *_orbit) | |
constructs instance and initializes some internal data | |
virtual | ~CBasicOrbitRuntimeFnc () |
destroys all necessary internal data | |
Private Attributes | |
size_t | numSamplingPoints |
required number of sampling points at the end of integration | |
const double | timeStep |
time interval for recording the trajectory (must be less than duration of integration divided by numSamplingPoints) | |
const unsigned int | N_dim |
dimensions of potential (stored for convenience) | |
CPosVelDataFloat | trajEntire |
recorded trajectory | |
CPosVelDataFloat | trajSample |
points sampled from the trajectory (unordered) | |
Additional Inherited Members | |
Public Types inherited from smile::CBasicOrbitRuntimeFnc | |
enum | FNCTYPE { FT_TRAJ_ANALYSIS, FT_TRAJ_SAMPLE, FT_POINCARE, FT_PERICENTER, FT_SCHW, FT_VEL_PERTURBER } |
lists all possible runtime functions More... | |
enum | STEPRESULT { SR_CONTINUE, SR_TERMINATE, SR_REINIT } |
result of processing of a timestep More... | |
Protected Attributes inherited from smile::CBasicOrbitRuntimeFnc | |
const COrbit * | orbit |
pointer to the orbit that is being integrated | |
Trajectory sampler (record a given number of unsorted points from the trajectory, to be used in creating an Nbody model from the Schwarzschild model).