Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

hdyn_tt.C File Reference

#include "hdyn.h"

Go to the source code of this file.

Defines

#define TOLERANCE   (1e-12)

Functions

void print_nn (hdyn *b, int level, ostream &s)
void print_coll (hdyn *b, int level, ostream &s)
int within_tolerance (real x, real scale)
void check_consistency_of_node (hdyn *node, hdyn_VMF_ptr get_something, char *id)
void check_consistency_of_nodes (hdyn *node)
void create_binary_from_toplevel_nodes (hdyn *bi, hdyn *bj)
local vector change_of_absolute_something_of_parent (hdyn *node, vector &dx, real dm, hdyn_VMF_ptr something)
local void adjust_relative_something_of_sister (vector absolute_change_of_parent, real dm, hdyn *node, hdyn_MF_ptr inc_something)
local void adjust_parent_and_sister (hdyn *node, hdyn *ancestor, vector d_something, real dm, hdyn_VMF_ptr get_something, hdyn_MF_ptr inc_something, int modify_node)
local void init_pred_of_parent_and_sister (hdyn *node, hdyn *ancestor)
local void adjust_parent_mass (hdyn *node, hdyn *ancestor, real dm)
void remove_node_and_correct_upto_ancestor (hdyn *ancestor, hdyn *node)
vector something_relative_to_ancestor (hdyn *bj, hdyn *bi, hdyn_VMF_ptr get_something)
vector hdyn_something_relative_to_root (hdyn *bi, hdyn_VMF_ptr get_something)
local vector relative_something (hdyn *ancestor, hdyn *bj, hdyn *bi, hdyn_VMF_ptr get_something)
local void calculate_new_physical_quantities (hdyn *ancestor, hdyn *node, hdyn *new_sister)
local void insert_node_and_correct_upto_ancestor (hdyn *ancestor, hdyn *node, hdyn *new_sister)
void correct_leaf_for_change_of_mass (hdyn *node, real dm)
void correct_leaf_for_change_of_vector (hdyn *node, vector d_something, hdyn_VMF_ptr get_something, hdyn_MF_ptr inc_something)
void move_node (hdyn *node_to_move, hdyn *place_to_insert)
void move_node_by_index (int i, int j, hdyn *root)
local void accumulate_energies (hdyn *root, hdyn *b, real eps2, real &epot, real &ekin, real &etot, bool cm=false)
void calculate_energies (hdyn *root, real eps2, real &epot, real &ekin, real &etot, bool cm)


Define Documentation

#define TOLERANCE   (1e-12)
 

Definition at line 331 of file hdyn_tt.C.


Function Documentation

local void accumulate_energies ( hdyn * root,
hdyn * b,
real eps2,
real & epot,
real & ekin,
real & etot,
bool cm = false )
 

Definition at line 874 of file hdyn_tt.C.

local void adjust_parent_and_sister ( hdyn * node,
hdyn * ancestor,
vector d_something,
real dm,
hdyn_VMF_ptr get_something,
hdyn_MF_ptr inc_something,
int modify_node )
 

Definition at line 497 of file hdyn_tt.C.

Referenced by correct_leaf_for_change_of_mass(), correct_leaf_for_change_of_vector(), insert_node_and_correct_upto_ancestor(), and remove_node_and_correct_upto_ancestor().

local void adjust_parent_mass ( hdyn * node,
hdyn * ancestor,
real dm )
 

Definition at line 544 of file hdyn_tt.C.

Referenced by correct_leaf_for_change_of_mass(), insert_node_and_correct_upto_ancestor(), and remove_node_and_correct_upto_ancestor().

local void adjust_relative_something_of_sister ( vector absolute_change_of_parent,
real dm,
hdyn * node,
hdyn_MF_ptr inc_something )
 

Definition at line 483 of file hdyn_tt.C.

Referenced by adjust_parent_and_sister().

void calculate_energies ( hdyn * root,
real eps2,
real & epot,
real & ekin,
real & etot,
bool cm )
 

Definition at line 908 of file hdyn_tt.C.

local void calculate_new_physical_quantities ( hdyn * ancestor,
hdyn * node,
hdyn * new_sister )
 

Definition at line 669 of file hdyn_tt.C.

Referenced by move_node().

local vector change_of_absolute_something_of_parent ( hdyn * node,
vector & dx,
real dm,
hdyn_VMF_ptr something )
 

Definition at line 474 of file hdyn_tt.C.

Referenced by adjust_parent_and_sister().

void check_consistency_of_node ( hdyn * node,
hdyn_VMF_ptr get_something,
char * id )
 

Definition at line 342 of file hdyn_tt.C.

Referenced by check_consistency_of_nodes().

void check_consistency_of_nodes ( hdyn * node )
 

Definition at line 377 of file hdyn_tt.C.

void correct_leaf_for_change_of_mass ( hdyn * node,
real dm )
 

Definition at line 745 of file hdyn_tt.C.

Referenced by KICK_VELOCITY(), and evolve_stars().

void correct_leaf_for_change_of_vector ( hdyn * node,
vector d_something,
hdyn_VMF_ptr get_something,
hdyn_MF_ptr inc_something )
 

Definition at line 777 of file hdyn_tt.C.

Referenced by KICK_VELOCITY(), and evolve_stars().

void create_binary_from_toplevel_nodes ( hdyn * bi,
hdyn * bj )
 

Definition at line 456 of file hdyn_tt.C.

Referenced by combine_top_level_nodes().

vector hdyn_something_relative_to_root ( hdyn * bi,
hdyn_VMF_ptr get_something )
 

Definition at line 631 of file hdyn_tt.C.

Referenced by KICK_VELOCITY(), evolve_stars(), force_by_grape(), force_by_grape4_on_leaves(), grape_calculate_energies(), jpdma_node(), print_pos_and_vel(), send_j_node_to_grape(), and split_top_level_node().

local void init_pred_of_parent_and_sister ( hdyn * node,
hdyn * ancestor )
 

Definition at line 530 of file hdyn_tt.C.

Referenced by correct_leaf_for_change_of_mass(), correct_leaf_for_change_of_vector(), insert_node_and_correct_upto_ancestor(), and remove_node_and_correct_upto_ancestor().

local void insert_node_and_correct_upto_ancestor ( hdyn * ancestor,
hdyn * node,
hdyn * new_sister )
 

Definition at line 687 of file hdyn_tt.C.

Referenced by move_node().

void move_node ( hdyn * node_to_move,
hdyn * place_to_insert )
 

Definition at line 791 of file hdyn_tt.C.

Referenced by KICK_VELOCITY(), combine_low_level_nodes(), and move_node_by_index().

void move_node_by_index ( int i,
int j,
hdyn * root )
 

Definition at line 862 of file hdyn_tt.C.

void print_coll ( hdyn * b,
int level,
ostream & s )
 

Definition at line 150 of file hdyn_tt.C.

Referenced by print_close_encounter(), and print_perioapo_clustron().

void print_nn ( hdyn * b,
int level,
ostream & s )
 

Definition at line 126 of file hdyn_tt.C.

Referenced by print_close_encounter(), print_maximal(), print_minimal(), and print_perioapo_clustron().

local vector relative_something ( hdyn * ancestor,
hdyn * bj,
hdyn * bi,
hdyn_VMF_ptr get_something )
 

Definition at line 657 of file hdyn_tt.C.

Referenced by calculate_new_physical_quantities().

void remove_node_and_correct_upto_ancestor ( hdyn * ancestor,
hdyn * node )
 

Definition at line 554 of file hdyn_tt.C.

Referenced by KICK_VELOCITY(), and move_node().

vector something_relative_to_ancestor ( hdyn * bj,
hdyn * bi,
hdyn_VMF_ptr get_something )
 

Definition at line 612 of file hdyn_tt.C.

Referenced by relative_something().

int within_tolerance ( real x,
real scale ) [inline]
 

Definition at line 333 of file hdyn_tt.C.

Referenced by check_consistency_of_node().


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