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

Runtime function corresponding to classic 3d-grid Schwarzschild density data object. More...

#include <schwarzschild.h>

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

Public Member Functions

 COrbitRuntimeSchwDensGrid (const COrbit *_orbit, const CSchwDataDensGrid *_model)
 
virtual FNCTYPE FncType () const
 derived classes return their type
 
virtual STEPRESULT Timestep (const double told, const double t, CPosVelPoint< double > *vars)
 find the cell(s) which the orbit traversed during this timestep
 
virtual void Finish ()
 normalize the time spent in each cell by the total integration time
 
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 Member Functions

void calcCellTime (double tlow, double tupp, size_t clow, size_t cupp)
 record time-in-cell with fraction-of-period accuracy
 

Private Attributes

const CSchwDataDensGrid * model
 pointer to the Schwarzschild data object which handles the partitioning of space into cells
 
vectord cellTime
 time spent in each cell of Schwarzschild's model
 
size_t cellprev
 cell index at previous timestep (for recording time-spent-in-cell)
 
double timeAccuracy
 compute the time in each cell with this accuracy
 

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
 

Detailed Description

Runtime function corresponding to classic 3d-grid Schwarzschild density data object.


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