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_ns_bh_omegaana_C[] = "$Header: /cvsroot/Lorene/C++/Source/Bin_ns_bh/bin_ns_bh_omegaana.C,v 1.2 2005/11/30 11:09:06 p_grandclement Exp $" ;
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045 #include <math.h>
00046
00047
00048 #include "bin_ns_bh.h"
00049 #include "unites.h"
00050
00051 void Bin_ns_bh::analytical_omega() {
00052
00053
00054
00055 if ( !star.is_relativistic() ) {
00056 abort() ;
00057 }
00058
00059 using namespace Unites ;
00060
00061 double rr = separation() ;
00062 double mtot = star.mass_g() + hole.masse_adm_seul() / ggrav ;
00063
00064
00065 double compact = ggrav * mtot / rr ;
00066
00067 double omega2 ;
00068
00069 if ( star.is_irrotational() ) {
00070
00071
00072
00073
00074 omega2 = ggrav * mtot / pow(rr, 3.)
00075 * (1. - 2.75 * compact + 8.625 * compact*compact ) ;
00076
00077 }
00078 else {
00079
00080
00081
00082
00083 double a0sr = star.ray_eq() / rr ;
00084
00085
00086 double ired = double(5)/double(3) * ( 1. - double(6)/M_PI/M_PI ) ;
00087 omega2 = ggrav * mtot / pow(rr, 3.)
00088 * (1. - compact * ( 2.75 + 2.*a0sr*a0sr * ired
00089 - 0.48*pow(a0sr, 4) * ired*ired )
00090 + compact*compact * ( 8.625 + 2.75*a0sr*a0sr * ired
00091 + 2.*pow(a0sr, 4) * ired*ired ) ) ;
00092
00093 }
00094
00095 set_omega (sqrt( omega2 )) ;
00096
00097
00098 del_deriv() ;
00099
00100 }