00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 char bin_ns_bh_anashift_C[] = "$Header: /cvsroot/Lorene/C++/Source/Bin_ns_bh/bin_ns_bh_anashift.C,v 1.2 2005/11/30 11:09:06 p_grandclement Exp $" ;
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 #include <math.h>
00047
00048
00049 #include "bin_ns_bh.h"
00050 #include "unites.h"
00051
00052 void Bin_ns_bh::analytical_shift() {
00053
00054
00055
00056 if ( !star.is_relativistic() ) {
00057 abort() ;
00058 }
00059
00060 using namespace Unites ;
00061
00062
00063 double a0 = star.ray_eq() ;
00064
00065
00066 double p_mass = star.mass_g() / (hole.masse_adm_seul()/ggrav) ;
00067
00068
00069 double www = ggrav * star.mass_g() * omega
00070 * separation() / (1. + p_mass) ;
00071
00072 const Map& mp = star.get_mp() ;
00073 Cmp tmp(mp) ;
00074 Cmp tmp_ext(mp) ;
00075 int nzet = star.get_nzet() ;
00076 int nzm1 = mp.get_mg()->get_nzone() - 1 ;
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086 star.set_w_shift().set_etat_qcq() ;
00087
00088
00089
00090 star.set_w_shift().set(0) = 0. ;
00091
00092
00093
00094
00095
00096 tmp = -6. * www / a0 * ( 1. - (mp.r)*(mp.r) / (3.*a0*a0) ) ;
00097
00098 tmp.annule(nzet, nzm1) ;
00099 tmp_ext = -4. * www / mp.r ;
00100 tmp_ext.annule(0, nzet-1) ;
00101
00102 star.set_w_shift().set(1) = - tmp - tmp_ext ;
00103
00104
00105
00106 star.set_w_shift().set(2) = 0. ;
00107
00108
00109 star.set_w_shift().set_std_base() ;
00110
00111
00112
00113
00114 tmp = 2. * www / a0 * (mp.y) * ( 1. - 3.*(mp.r)*(mp.r) / (5.*a0*a0) ) ;
00115 tmp.annule(nzet, nzm1) ;
00116 tmp_ext = 0.8 * www * a0 * a0 * (mp.sint) * (mp.sinp) / ((mp.r)*(mp.r)) ;
00117 tmp_ext.annule(0, nzet-1) ;
00118
00119 star.set_khi_shift() = - tmp - tmp_ext ;
00120
00121
00122 star.set_khi_shift().set_std_base() ;
00123
00124 }