Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

low_n3_evol.C File Reference

#include "sdyn3.h"

Go to the source code of this file.

Defines

#define UNPERTURBED_DIAG   false
#define PRECISION   12
#define N_STEP_CHECK   1000
#define PERT_OUTPUT   2

Typedefs

typedef real (* tfp )(sdyn3 *, real)

Functions

local void restore_pos_and_vel (kepler &inner, kepler &outer, real time, int n_transform, sdyn3 *b1, sdyn3 *b2, sdyn3 *b3, vector &cmpos, vector &cmvel)
local real total_energy (sdyn3 *b)
local void print_unperturbed_diag (sdyn3 *b, sdyn3 *b1, sdyn3 *b2, sdyn3 *b3, kepler &inner, kepler &outer, char *header)
local void print_perturbed_error (kepler &inner, kepler &outer, sdyn3 *b1, real dt)
local bool unperturbed_step (sdyn3 *b, real tidal_tolerance, real &true_dt, int &collision_flag)
local void predict (sdyn3 *b, real dt)
local void correct (sdyn3 *b, real new_dt, real prev_new_dt)
local void calculate_energy (sdyn3 *b, real &ekin, real &epot)
local bool step (sdyn3 *b, real &t, real eps, real eta, real dt, real max_dt, int &end_flag, tfp the_tfp, int n_iter, int x_flag, int s_flag)
local void initialize (sdyn3 *b, real eps)
real constant_timestep (sdyn3 *b, real eta)
real dynamic_timestep (sdyn3 *b, real eta)
local tfp get_timestep_function_ptr (char *timestep_name)
local void start_up (sdyn3 *b, real &n_steps)
local void clean_up (sdyn3 *b, real n)
int system_in_cube (sdyn3 *b, real cube_size)
void low_n3_evolve (sdyn3 *b, real delta_t, real dt_out, real dt_snap, real snap_cube_size, real eps, real eta, int x_flag, char *timestep_name, int s_flag, int n_iter, real n_max, real cpu_time_check, real dt_print, sdyn3_print_fp print)

Variables

real last_unpert = -VERY_LARGE_NUMBER


Define Documentation

#define N_STEP_CHECK   1000
 

Definition at line 661 of file low_n3_evol.C.

#define PERT_OUTPUT   2
 

Definition at line 663 of file low_n3_evol.C.

#define PRECISION   12
 

Definition at line 30 of file low_n3_evol.C.

#define UNPERTURBED_DIAG   false
 

Definition at line 29 of file low_n3_evol.C.


Typedef Documentation

typedef real (* tfp)(sdyn3*, real)
 

Definition at line 498 of file low_n3_evol.C.


Function Documentation

local void calculate_energy ( sdyn3 * b,
real & ekin,
real & epot )
 

Definition at line 488 of file low_n3_evol.C.

Referenced by low_n3_evolve(), low_n_evolve(), and scatter().

local void clean_up ( sdyn3 * b,
real n )
 

Definition at line 648 of file low_n3_evol.C.

Referenced by low_n3_evolve(), and low_n_evolve().

real constant_timestep ( sdyn3 * b,
real eta )
 

Definition at line 598 of file low_n3_evol.C.

local void correct ( sdyn3 * b,
real new_dt,
real prev_new_dt )
 

Definition at line 473 of file low_n3_evol.C.

Referenced by step().

real dynamic_timestep ( sdyn3 * b,
real eta )
 

Definition at line 604 of file low_n3_evol.C.

local tfp get_timestep_function_ptr ( char * timestep_name )
 

Definition at line 620 of file low_n3_evol.C.

Referenced by low_n3_evolve().

local void initialize ( sdyn3 * b,
real eps )
 

Definition at line 583 of file low_n3_evol.C.

Referenced by low_n3_evolve(), and low_n_evolve().

void low_n3_evolve ( sdyn3 * b,
real delta_t,
real dt_out,
real dt_snap,
real snap_cube_size,
real eps,
real eta,
int x_flag,
char * timestep_name,
int s_flag,
int n_iter,
real n_max,
real cpu_time_check,
real dt_print,
sdyn3_print_fp print )
 

Definition at line 666 of file low_n3_evol.C.

Referenced by tree3_evolve().

local void predict ( sdyn3 * b,
real dt )
 

Definition at line 461 of file low_n3_evol.C.

Referenced by initialize(), and step().

local void print_perturbed_error ( kepler & inner,
kepler & outer,
sdyn3 * b1,
real dt )
 

Definition at line 170 of file low_n3_evol.C.

Referenced by unperturbed_step().

local void print_unperturbed_diag ( sdyn3 * b,
sdyn3 * b1,
sdyn3 * b2,
sdyn3 * b3,
kepler & inner,
kepler & outer,
char * header )
 

Definition at line 72 of file low_n3_evol.C.

Referenced by unperturbed_step().

local void restore_pos_and_vel ( kepler & inner,
kepler & outer,
real time,
int n_transform,
sdyn3 * b1,
sdyn3 * b2,
sdyn3 * b3,
vector & cmpos,
vector & cmvel )
 

Definition at line 32 of file low_n3_evol.C.

Referenced by unperturbed_step().

local void start_up ( sdyn3 * b,
real & n_steps )
 

Definition at line 634 of file low_n3_evol.C.

Referenced by low_n3_evolve(), low_n_evolve(), and start_up().

local bool step ( sdyn3 * b,
real & t,
real eps,
real eta,
real dt,
real max_dt,
int & end_flag,
tfp the_tfp,
int n_iter,
int x_flag,
int s_flag )
 

Definition at line 500 of file low_n3_evol.C.

int system_in_cube ( sdyn3 * b,
real cube_size )
 

Definition at line 653 of file low_n3_evol.C.

Referenced by low_n3_evolve(), low_n_evolve(), and scatter3().

local real total_energy ( sdyn3 * b )
 

Definition at line 53 of file low_n3_evol.C.

Referenced by print_unperturbed_diag().

local bool unperturbed_step ( sdyn3 * b,
real tidal_tolerance,
real & true_dt,
int & collision_flag )
 

Definition at line 255 of file low_n3_evol.C.

Referenced by step().


Variable Documentation

real last_unpert = -VERY_LARGE_NUMBER
 

Definition at line 664 of file low_n3_evol.C.


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