Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

worldline.C File Reference

#include "worldline.h"
#include "inline.h"
#include <ctype.h>
#include "print_local.C"
#include "print_local2.C"
#include "attach_new_node.C"
#include "update_node.C"

Go to the source code of this file.

Defines

#define NEW   0
#define ID_FAC   0.000001
#define EPS   1.e-12

Functions

unique_id_t unique_id (int index)
unique_id_t unique_id (char *name)
unique_id_t unique_id (node *b)
void print_id (void *id, char *s=NULL, int offset=0)
local void check_print_worldline_header (bool &print, int i)
local int wlcompare (const void *a, const void *b)
real mass_scale_factor ()
local void check_final_escapers (worldbundle *wb, tdyn *b)
worldbundle* read_bundle (istream &s, int verbose)
int count_segments (worldbundle *wb)
int count_events (worldbundle *wb)
tdyn* find_event (worldline *w, tdyn *bn, real t)
void print_event (worldline *w, tdyn *bn, real t)
local bool check_and_initialize (tdyn *p, real tp, real t, vector &pos, bool inc, tdyn *bn)
vector interpolate_pos (tdyn *p, real t, tdyn *bn)
void interpolate_pos (tdyn *p, real t, vector &pos, bool inc, tdyn *bn)
void set_interpolated_pos (tdyn *p, real t, vector &pos, tdyn *bn)
void set_interpolated_pos (tdyn *p, real t, pdyn *curr, tdyn *bn)
void inc_interpolated_pos (tdyn *p, real t, vector &pos, tdyn *bn)
vector interpolate_vel (tdyn *p, real t, tdyn *bn)
local vector get_pos (worldline *w, tdyn *b, tdyn *bn, real t=VERY_LARGE_NUMBER)
local INLINE void add_to_interpolated_tree (worldbundle *wb, worldline *w, segment *s, pdyn *root, real t, bool vel, bool debug)
int id_n_clump (unique_id_t id)
local bool id_is_leaf (unique_id_t id)
pdyn* create_interpolated_tree (worldbundle *wb, real t, bool vel)


Define Documentation

#define EPS   1.e-12
 

Definition at line 1580 of file worldline.C.

#define ID_FAC   0.000001
 

Definition at line 80 of file worldline.C.

#define NEW   0
 

Definition at line 67 of file worldline.C.


Function Documentation

local INLINE void add_to_interpolated_tree ( worldbundle * wb,
worldline * w,
segment * s,
pdyn * root,
real t,
bool vel,
bool debug )
 

Definition at line 1494 of file worldline.C.

Referenced by create_interpolated_tree().

local bool check_and_initialize ( tdyn * p,
real tp,
real t,
vector & pos,
bool inc,
tdyn * bn ) [inline]
 

Definition at line 1044 of file worldline.C.

Referenced by inc_interpolated_pos(), interpolate_pos(), and set_interpolated_pos().

local void check_final_escapers ( worldbundle * wb,
tdyn * b )
 

Definition at line 719 of file worldline.C.

Referenced by read_bundle().

local void check_print_worldline_header ( bool & print,
int i )
 

Definition at line 296 of file worldline.C.

int count_events ( worldbundle * wb )
 

Definition at line 926 of file worldline.C.

Referenced by main(), and print_worldline_stats().

int count_segments ( worldbundle * wb )
 

Definition at line 912 of file worldline.C.

Referenced by main(), and print_worldline_stats().

pdyn* create_interpolated_tree ( worldbundle * wb,
real t,
bool vel )
 

Definition at line 1582 of file worldline.C.

Referenced by main().

tdyn* find_event ( worldline * w,
tdyn * bn,
real t )
 

Definition at line 948 of file worldline.C.

Referenced by get_pos(), print_event(), and update_node().

local vector get_pos ( worldline * w,
tdyn * b,
tdyn * bn,
real t = VERY_LARGE_NUMBER )
 

Definition at line 1386 of file worldline.C.

Referenced by add_dynamics(), distance_sq(), is_bound(), print_tree_structure(), sdyn3_to_system(), tuple_size(), and tuple_virial_radius().

local bool id_is_leaf ( unique_id_t id ) [inline]
 

Definition at line 1575 of file worldline.C.

Referenced by create_interpolated_tree().

int id_n_clump ( unique_id_t id )
 

Definition at line 1566 of file worldline.C.

Referenced by id_is_leaf(), interpolate_tree(), and main().

void inc_interpolated_pos ( tdyn * p,
real t,
vector & pos,
tdyn * bn )
 

Definition at line 1336 of file worldline.C.

Referenced by get_pos().

void interpolate_pos ( tdyn * p,
real t,
vector & pos,
bool inc,
tdyn * bn )
 

Definition at line 1262 of file worldline.C.

Referenced by print_binary_diagnostics(), and update_node().

vector interpolate_pos ( tdyn * p,
real t,
tdyn * bn )
 

Definition at line 1159 of file worldline.C.

vector interpolate_vel ( tdyn * p,
real t,
tdyn * bn )
 

Definition at line 1356 of file worldline.C.

Referenced by update_node().

real mass_scale_factor ( )
 

Definition at line 714 of file worldline.C.

void print_event ( worldline * w,
tdyn * bn,
real t )
 

Definition at line 1027 of file worldline.C.

void print_id ( void * id,
char * s = NULL,
int offset = 0 )
 

Definition at line 238 of file worldline.C.

worldbundle* read_bundle ( istream & s,
int verbose )
 

Definition at line 744 of file worldline.C.

Referenced by main().

void set_interpolated_pos ( tdyn * p,
real t,
pdyn * curr,
tdyn * bn )
 

Definition at line 1313 of file worldline.C.

Referenced by get_pos(), print_binary_diagnostics(), and update_node().

void set_interpolated_pos ( tdyn * p,
real t,
vector & pos,
tdyn * bn )
 

Definition at line 1291 of file worldline.C.

unique_id_t unique_id ( node * b )
 

Definition at line 218 of file worldline.C.

Referenced by add_to_interpolated_tree(), check_and_initialize(), interpolate_pos(), main(), print_interactions(), unique_id(), and update_interpolated_tree().

unique_id_t unique_id ( char * name )
 

Definition at line 104 of file worldline.C.

unique_id_t unique_id ( int index )
 

Definition at line 95 of file worldline.C.

local int wlcompare ( const void * a,
const void * b )
 

Definition at line 353 of file worldline.C.


Generated at Sun Feb 24 09:57:32 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001