bin_bhns_extr_omegaana.C

00001 /*
00002  *  Methods of class Bin_bhns_extr to set analytical value to omega
00003  *
00004  *    (see file bin_bhns_extr.h for documentation).
00005  *
00006  */
00007 
00008 /*
00009  *   Copyright (c) 2004 Keisuke Taniguchi
00010  *
00011  *   This file is part of LORENE.
00012  *
00013  *   LORENE is free software; you can redistribute it and/or modify
00014  *   it under the terms of the GNU General Public License version 2
00015  *   as published by the Free Software Foundation.
00016  *
00017  *   LORENE is distributed in the hope that it will be useful,
00018  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  *   GNU General Public License for more details.
00021  *
00022  *   You should have received a copy of the GNU General Public License
00023  *   along with LORENE; if not, write to the Free Software
00024  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  *
00026  */
00027 
00028 char bin_bhns_extr_omegaana_C[] = "$Header: /cvsroot/Lorene/C++/Source/Bin_bhns_extr/bin_bhns_extr_omegaana.C,v 1.1 2004/11/30 20:46:36 k_taniguchi Exp $" ;
00029 
00030 /*
00031  * $Id: bin_bhns_extr_omegaana.C,v 1.1 2004/11/30 20:46:36 k_taniguchi Exp $
00032  * $Log: bin_bhns_extr_omegaana.C,v $
00033  * Revision 1.1  2004/11/30 20:46:36  k_taniguchi
00034  * *** empty log message ***
00035  *
00036  *
00037  * $Header: /cvsroot/Lorene/C++/Source/Bin_bhns_extr/bin_bhns_extr_omegaana.C,v 1.1 2004/11/30 20:46:36 k_taniguchi Exp $
00038  *
00039  */
00040 
00041 // C headers
00042 #include <math.h>
00043 
00044 // Lorene headers
00045 #include "bin_bhns_extr.h"
00046 #include "unites.h"
00047 
00048 void Bin_bhns_extr::analytical_omega() {
00049 
00050   using namespace Unites ;
00051 
00052     // BH-NS binary systems should be relativistic
00053     // -------------------------------------------
00054     if ( !star.is_relativistic() ) {
00055 
00056         cout << "BH-NS binary systems should be relativistic !!!" << endl ;
00057         abort() ;
00058     }
00059 
00060     double rr = separ ;
00061     double mtot = mass_bh ; // Approximates the extreme mass ratio
00062 
00063     // Compaction factor
00064     double compact = ggrav * mtot / rr ;
00065 
00066     double omega2 ;
00067 
00068     if ( star.is_irrotational() ) {
00069 
00070         // Irrotational case
00071         // -----------------
00072 
00073         omega2 = ggrav * mtot / pow(rr, 3.)
00074       * (1. - 2.75 * compact + 8.625 * compact*compact ) ;
00075 
00076     }
00077     else {
00078         // Corotating case
00079         // ---------------
00080 
00081         // a0/R
00082         double a0sr = star.ray_eq() / rr ;
00083 
00084     // Rescaled moment of inertia 5 I / (2 M a0^2)
00085     double ired = double(5)/double(3) * ( 1. - double(6)/M_PI/M_PI ) ;
00086     omega2 = ggrav * mtot / pow(rr, 3.)
00087       * (1. - compact * ( 2.75 + 2.*a0sr*a0sr * ired
00088                   - 0.48*pow(a0sr, 4) * ired*ired )
00089          + compact*compact * ( 8.625 + 2.75*a0sr*a0sr * ired
00090                    + 2.*pow(a0sr, 4) * ired*ired ) ) ;
00091 
00092     }
00093 
00094     omega = sqrt( omega2 ) ;
00095 
00096     // The derived quantities are obsolete:
00097     del_deriv() ;
00098 
00099 }

Generated on Tue Feb 7 01:35:14 2012 for LORENE by  doxygen 1.4.6