00001 /* 00002 * star_to_kira.h: transformation function from stellar evolution 00003 * package to dynamical package. 00004 * 00005 *..................................................................... 00006 * version 1: Aug 1996 Simon F. Portegies Zwart 00007 * version 2: 00008 *................................................................... 00009 * This file includes: 00010 * 1) Transformation routines from stellar evolution to n-body dynamcs. 00011 * 00012 *.................................................................... 00013 */ 00014 00015 #ifndef _DSTAR_TO_KIRA 00016 # define _DSTAR_TO_KIRA 00017 00018 //#include "starbase.h" 00019 #include "hdyn.h" 00020 00021 //#include "stdinc.h" 00022 //#include "constants.h" 00023 00024 //#include "double_star.h" 00025 #include "dstar_to_dyn.h" 00026 00027 #define MASS_UPDATE_LIMIT 0.0001 00028 #define SMA_UPDATE_LIMIT 0.0001 00029 00030 /*----------------------------------------------------------------------------- 00031 * dstar_to_hdyn -- 00032 *----------------------------------------------------------------------------- 00033 */ 00034 00035 bool create_or_delete_binary(hdyn* bi, 00036 bool* update_dynamics, 00037 int full_dump = 0); 00038 bool binary_is_merged(dyn* bi); 00039 bool binary_evolution(hdyn* b, int full_dump = 0); 00040 void update_kepler_from_binary_evolution(hdyn* the_binary_node, 00041 real dm_fast); 00042 00043 #endif // _DSTAR_TO_KIRA 00044 00045 00046 00047