Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

scale.C File Reference

#include "dyn.h"

Go to the source code of this file.

Functions

real get_mass (dyn *b)
void scale_mass (dyn *b, real mscale)
void scale_pos (dyn *b, real rscale, vector com_pos)
void scale_vel (dyn *b, real vscale, vector com_vel)
real get_top_level_kinetic_energy (dyn *b)
real get_kinetic_energy (dyn *b)
void get_top_level_energies (dyn *b, real eps2, real &potential_energy, real &kinetic_energy)
void scale_virial (dyn *b, real q, real potential_energy, real &kinetic_energy, vector com_vel)
real scale_energy (dyn *b, real e, real &energy, vector com_pos, vector com_vel)
void scale (dyn *b, real eps, bool c_flag, bool e_flag, real e, bool m_flag, real m, bool q_flag, real q, bool r_flag, real r, bool debug, void(*top_level_energies)(dyn *, real, real &, real &))
bool parse_scale_main (int argc, char *argv[], real &eps, bool &c_flag, bool &e_flag, real &e, bool &m_flag, real &m, bool &q_flag, real &q, bool &r_flag, real &r, bool &debug)


Function Documentation

real get_kinetic_energy ( dyn * b )
 

Definition at line 94 of file scale.C.

real get_mass ( dyn * b )
 

Definition at line 49 of file scale.C.

Referenced by m_sum(), main(), scale(), and search_for_binaries().

void get_top_level_energies ( dyn * b,
real eps2,
real & potential_energy,
real & kinetic_energy )
 

Definition at line 109 of file scale.C.

Referenced by mksphere().

real get_top_level_kinetic_energy ( dyn * b )
 

Definition at line 83 of file scale.C.

Referenced by scale().

bool parse_scale_main ( int argc,
char * argv[],
real & eps,
bool & c_flag,
bool & e_flag,
real & e,
bool & m_flag,
real & m,
bool & q_flag,
real & q,
bool & r_flag,
real & r,
bool & debug )
 

Definition at line 460 of file scale.C.

void scale ( dyn * b,
real eps,
bool c_flag,
bool e_flag,
real e,
bool m_flag,
real m,
bool q_flag,
real q,
bool r_flag,
real r,
bool debug,
void(* top_level_energies)(dyn *, real, real &, real &) )
 

Definition at line 155 of file scale.C.

real scale_energy ( dyn * b,
real e,
real & energy,
vector com_pos,
vector com_vel )
 

Definition at line 134 of file scale.C.

Referenced by mksphere(), and scale().

void scale_mass ( dyn * b,
real mscale )
 

Definition at line 57 of file scale.C.

Referenced by scale().

void scale_pos ( dyn * b,
real rscale,
vector com_pos )
 

Definition at line 63 of file scale.C.

Referenced by scale(), and scale_energy().

void scale_vel ( dyn * b,
real vscale,
vector com_vel )
 

Definition at line 73 of file scale.C.

Referenced by scale(), scale_energy(), and scale_virial().

void scale_virial ( dyn * b,
real q,
real potential_energy,
real & kinetic_energy,
vector com_vel )
 

Definition at line 119 of file scale.C.

Referenced by mksphere(), and scale().


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