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 et_bin_bhns_extr_upmetr_C[] = "$Header: /cvsroot/Lorene/C++/Source/Etoile/et_bin_bhns_extr_upmetr.C,v 1.2 2005/02/28 23:16:37 k_taniguchi 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 "et_bin_bhns_extr.h"
00050 #include "etoile.h"
00051 #include "coord.h"
00052 #include "unites.h"
00053
00054
00055
00056
00057
00058 void Et_bin_bhns_extr::update_metric_extr(const double& mass,
00059 const double& sepa)
00060 {
00061
00062 using namespace Unites ;
00063
00064 if (kerrschild) {
00065
00066
00067
00068
00069 const Coord& xx = mp.x ;
00070 const Coord& yy = mp.y ;
00071 const Coord& zz = mp.z ;
00072
00073 Tenseur r_bh(mp) ;
00074 r_bh.set_etat_qcq() ;
00075 r_bh.set() = pow( (xx+sepa)*(xx+sepa) + yy*yy + zz*zz, 0.5) ;
00076 r_bh.set_std_base() ;
00077
00078 Tenseur xx_con(mp, 1, CON, ref_triad) ;
00079 xx_con.set_etat_qcq() ;
00080 xx_con.set(0) = xx + sepa ;
00081 xx_con.set(1) = yy ;
00082 xx_con.set(2) = zz ;
00083 xx_con.set_std_base() ;
00084
00085 Tenseur xsr_con(mp, 1, CON, ref_triad) ;
00086 xsr_con = xx_con / r_bh ;
00087 xsr_con.set_std_base() ;
00088
00089 Tenseur msr(mp) ;
00090 msr = ggrav * mass / r_bh ;
00091 msr.set_std_base() ;
00092
00093 Tenseur lapse_bh(mp) ;
00094 lapse_bh = 1. / sqrt( 1.+2.*msr ) ;
00095 lapse_bh.set_std_base() ;
00096
00097 logn_comp.set_etat_qcq() ;
00098 logn_comp.set() = log( lapse_bh() ) ;
00099 logn_comp.set_std_base() ;
00100
00101 beta_comp.set_etat_qcq() ;
00102 beta_comp.set() = log( lapse_bh() ) ;
00103
00104 beta_comp.set_std_base() ;
00105
00106 shift_comp.set_etat_qcq() ;
00107
00108 shift_comp.set(0) = -2.*lapse_bh()*lapse_bh()*msr()*xsr_con(0) ;
00109 shift_comp.set(1) = -2.*lapse_bh()*lapse_bh()*msr()*xsr_con(1) ;
00110 shift_comp.set(2) = -2.*lapse_bh()*lapse_bh()*msr()*xsr_con(2) ;
00111
00112 shift_comp.set_std_base() ;
00113 shift_comp.set_triad( ref_triad ) ;
00114
00115
00116
00117
00118 nnn = exp( unsurc2 * logn_auto ) * lapse_bh ;
00119
00120 nnn.set_std_base() ;
00121
00122
00123
00124
00125 a_car = exp ( 2.*unsurc2*(beta_auto - logn_auto) ) ;
00126
00127 a_car.set_std_base() ;
00128
00129
00130
00131
00132 shift = shift_auto + shift_comp ;
00133
00134
00135
00136
00137
00138 d_logn_auto_regu = logn_auto_regu.gradient() ;
00139 d_logn_auto_regu.change_triad(ref_triad) ;
00140
00141 if ( *(d_logn_auto_div.get_triad()) != ref_triad ) {
00142
00143
00144 d_logn_auto_div.change_triad( mp.get_bvect_cart() ) ;
00145
00146
00147 d_logn_auto_div.change_triad( ref_triad ) ;
00148
00149 }
00150
00151 d_logn_auto = d_logn_auto_regu + d_logn_auto_div ;
00152
00153
00154 d_beta_auto = beta_auto.gradient() ;
00155 d_beta_auto.change_triad(ref_triad) ;
00156
00157 if (relativistic) {
00158
00159 extrinsic_curv_extr(mass, sepa) ;
00160 }
00161
00162
00163
00164
00165 Etoile_bin::del_deriv() ;
00166
00167 }
00168 else {
00169
00170
00171
00172
00173 const Coord& xx = mp.x ;
00174 const Coord& yy = mp.y ;
00175 const Coord& zz = mp.z ;
00176
00177 Tenseur r_bh(mp) ;
00178 r_bh.set_etat_qcq() ;
00179 r_bh.set() = pow( (xx+sepa)*(xx+sepa) + yy*yy + zz*zz, 0.5) ;
00180 r_bh.set_std_base() ;
00181
00182 Tenseur msr(mp) ;
00183 msr = ggrav * mass / r_bh ;
00184 msr.set_std_base() ;
00185
00186 Tenseur lapse_bh(mp) ;
00187 lapse_bh = (1.-0.5*msr) / (1.+0.5*msr) ;
00188 lapse_bh.set_std_base() ;
00189
00190 logn_comp.set_etat_qcq() ;
00191 logn_comp.set() = log( lapse_bh() ) ;
00192 logn_comp.set_std_base() ;
00193
00194 Tenseur lappsi(mp) ;
00195 lappsi = 1. - 0.25*msr*msr ;
00196 lappsi.set_std_base() ;
00197
00198 beta_comp.set_etat_qcq() ;
00199 beta_comp.set() = log( lappsi() ) ;
00200 beta_comp.set_std_base() ;
00201
00202 shift_comp.set_etat_qcq() ;
00203
00204 shift_comp.set(0) = 0. ;
00205 shift_comp.set(1) = 0. ;
00206 shift_comp.set(2) = 0. ;
00207
00208 shift_comp.set_std_base() ;
00209 shift_comp.set_triad( ref_triad ) ;
00210
00211
00212
00213
00214 nnn = exp( unsurc2 * logn_auto ) * lapse_bh ;
00215
00216 nnn.set_std_base() ;
00217
00218
00219
00220
00221 a_car = exp ( 2.*unsurc2*(beta_auto + beta_comp
00222 - logn_auto - logn_comp) ) ;
00223
00224 a_car.set_std_base() ;
00225
00226
00227
00228
00229 shift = shift_auto + shift_comp ;
00230
00231
00232
00233
00234
00235 d_logn_auto_regu = logn_auto_regu.gradient() ;
00236 d_logn_auto_regu.change_triad(ref_triad) ;
00237
00238 if ( *(d_logn_auto_div.get_triad()) != ref_triad ) {
00239
00240
00241 d_logn_auto_div.change_triad( mp.get_bvect_cart() ) ;
00242
00243
00244 d_logn_auto_div.change_triad( ref_triad ) ;
00245
00246 }
00247
00248 d_logn_auto = d_logn_auto_regu + d_logn_auto_div ;
00249
00250
00251 d_beta_auto = beta_auto.gradient() ;
00252 d_beta_auto.change_triad(ref_triad) ;
00253
00254 if (relativistic) {
00255
00256 extrinsic_curv_extr(mass, sepa) ;
00257 }
00258
00259
00260
00261
00262 Etoile_bin::del_deriv() ;
00263
00264 }
00265
00266 }