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 char bin_bhns_extr_anashift_C[] = "$Header: /cvsroot/Lorene/C++/Source/Bin_bhns_extr/bin_bhns_extr_anashift.C,v 1.1 2004/11/30 20:45:29 k_taniguchi Exp $" ;
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #include <math.h>
00043
00044
00045 #include "bin_bhns_extr.h"
00046 #include "unites.h"
00047
00048 void Bin_bhns_extr::analytical_shift() {
00049
00050 using namespace Unites ;
00051
00052
00053
00054
00055 if ( !star.is_relativistic() ) {
00056
00057 cout << "BH-NS binary systems should be relativistic !!!" << endl ;
00058 abort() ;
00059 }
00060
00061
00062 double a0 = star.ray_eq() ;
00063
00064
00065 double www = ggrav * star.mass_g() * omega * separ ;
00066
00067
00068 const Map& mp = star.get_mp() ;
00069 Tenseur tmp(mp) ;
00070 Tenseur tmp_ext(mp) ;
00071 int nzet = star.get_nzet() ;
00072 int nzm1 = mp.get_mg()->get_nzone() - 1 ;
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082 star.set_w_shift().set_etat_qcq() ;
00083
00084
00085
00086 star.set_w_shift().set(0) = 0. ;
00087
00088
00089
00090
00091
00092 tmp.set_etat_qcq() ;
00093 tmp.set() = 6. * www / a0 * ( 1. - (mp.r)*(mp.r) / (3.*a0*a0) ) ;
00094 tmp.set().annule(nzet, nzm1) ;
00095 tmp.set_std_base() ;
00096
00097 tmp_ext.set_etat_qcq() ;
00098 tmp_ext.set() = 4. * www / mp.r ;
00099 tmp_ext.set().annule(0, nzet-1) ;
00100 tmp_ext.set_std_base() ;
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.set() = 2. * www / a0 * (mp.y)
00115 * ( 1. - 3.*(mp.r)*(mp.r) / (5.*a0*a0) ) ;
00116 tmp.set().annule(nzet, nzm1) ;
00117 tmp.set_std_base() ;
00118
00119 tmp_ext.set() = 0.8 * www * a0 * a0 * (mp.sint) * (mp.sinp)
00120 / ((mp.r)*(mp.r)) ;
00121 tmp_ext.set().annule(0, nzet-1) ;
00122 tmp_ext.set_std_base() ;
00123
00124 star.set_khi_shift() = tmp + tmp_ext ;
00125
00126
00127 star.set_khi_shift().set_std_base() ;
00128
00129 }