Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

worldline.h File Reference

Classes and definitions for 4-D trees. More...

#include "tdyn.h"

Go to the source code of this file.

Classes

class  segment
 segment: A series of events (tdyns) along a particle trajectory. More...
class  worldline
 worldline: Indexed pointer to the start of a linked list of segments. More...
class  worldbundle
 worldbundle: A group of worldlines representing an entire N-body system. More...

Defines

#define NEW_UNIQUE_ID_T

Typedefs

typedef int unique_id_t
typedef worldlineworldlineptr
typedef worldbundleworldbundleptr

Functions

unique_id_t unique_id (int index)
void print_id (void *id, char *label=NULL)
 Print unique ID corresponding to id.
worldbundleread_bundle (istream &s, int verbose=0)
 Read a bundle of worldlines describing an N-body system for a time interval.
void read_bundles (istream &s, worldbundleptr wh[], int &nh, int verbose=0)
 Read worldbundles describing an N-body system over an extended time.
int count_segments (worldbundle *wb)
 Count the number of segments in a worldbundle.
int count_events (worldbundle *wb)
 Count the number of events in a worldbundle.
tdynfind_event (worldline *w, tdyn *bn, real t)
 Find time t along the segment of worldline w starting at base node bn.
void print_event (worldline *w, tdyn *bn, real t)
 Print info on the portion of the worldline starting at bn that spans time t.
vec interpolate_pos (tdyn *p, real t, tdyn *bn=NULL)
 Return the interpolated position at time t in the segment starting at p.
void set_interpolated_pos (tdyn *p, real t, vec &pos, tdyn *bn=NULL)
 Set pos to the interpolated value.
void inc_interpolated_pos (tdyn *p, real t, vec &pos, tdyn *bn=NULL)
 Increment pos by the interpolated value.
vec interpolate_vel (tdyn *p, real t, tdyn *bn=NULL)
 Return the interpolated velocity at time t in the segment starting at p.
real mass_scale_factor ()
 Return the physical mass scale.
pdyncreate_interpolated_tree (worldbundle *wb, real t, bool vel=false)
 Create an interpolated tree at time t and return a pointer to the root node.
pdyncreate_interpolated_tree2 (worldbundle *wb, real t, bool vel=false)
 Create an interpolated tree at time t and return a pointer to the root node.
void preload_pdyn (worldbundleptr wh[], int nh, bool verbose=false, bool vel=false)
 Force memory allocation for each bundle by creating an interpolated tree.
char * set_center (worldbundleptr wh[], int nh, int center_number, bool verbose=false)
 Set all root nodes to use the specified center for center tracking.
int get_n_center ()
 Identify which type of center we are using for center tracking.
int get_center ()
 Return the center we are currently using for center tracking (1 or 2).
char * get_center_id (int center_number=-1)
 Current possibilities are (1) "standard-center" and (2) "bound-center".
vec get_center_pos ()
 Position of the current center.
vec get_center_vel ()
 Velocity of the current center.
bool is_member (worldbundle *wb, pdyn *p)
 Is p a member of the specified worldbundle?
int id_n_clump (unique_id_t id)
 Nuber of particles in the clump containing id.


Detailed Description

Classes and definitions for 4-D trees.

Definition in file worldline.h.


Generated on Wed Jul 20 12:43:37 2005 for Starlab by  doxygen 1.4.3