SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Public Member Functions | Private Attributes | List of all members
smile::COrbitRuntimeTrajSample Class Reference

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>

Inheritance diagram for smile::COrbitRuntimeTrajSample:
Inheritance graph
[legend]
Collaboration diagram for smile::COrbitRuntimeTrajSample:
Collaboration graph
[legend]

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 CBasicInformationgetData () 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 COrbitorbit
 pointer to the orbit that is being integrated
 

Detailed Description

Trajectory sampler (record a given number of unsorted points from the trajectory, to be used in creating an Nbody model from the Schwarzschild model).


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