| 1 |
/* |
| 2 |
* Methods of class Bin_ns_bh to set analytical value to omega |
| 3 |
* |
| 4 |
* (see file bin_ns_bh.h for documentation). |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
/* |
| 9 |
* Copyright (c) 2004 Keisuke Taniguchi |
| 10 |
* |
| 11 |
* This file is part of LORENE. |
| 12 |
* |
| 13 |
* LORENE is free software; you can redistribute it and/or modify |
| 14 |
* it under the terms of the GNU General Public License version 2 |
| 15 |
* as published by the Free Software Foundation. |
| 16 |
* |
| 17 |
* LORENE is distributed in the hope that it will be useful, |
| 18 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 |
* GNU General Public License for more details. |
| 21 |
* |
| 22 |
* You should have received a copy of the GNU General Public License |
| 23 |
* along with LORENE; if not, write to the Free Software |
| 24 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 25 |
* |
| 26 |
*/ |
| 27 |
|
| 28 |
char bin_ns_bh_omegaana_C[] = "$Header: /cvsroot/Lorene/C++/Source/Bin_ns_bh/bin_ns_bh_omegaana.C,v 1.4 2014/10/13 08:52:43 j_novak Exp $" ; |
| 29 |
|
| 30 |
/* |
| 31 |
* $Id: bin_ns_bh_omegaana.C,v 1.4 2014/10/13 08:52:43 j_novak Exp $ |
| 32 |
* $Log: bin_ns_bh_omegaana.C,v $ |
| 33 |
* Revision 1.4 2014/10/13 08:52:43 j_novak |
| 34 |
* Lorene classes and functions now belong to the namespace Lorene. |
| 35 |
* |
| 36 |
* Revision 1.3 2014/10/06 15:13:01 j_novak |
| 37 |
* Modified #include directives to use c++ syntax. |
| 38 |
* |
| 39 |
* Revision 1.2 2005/11/30 11:09:06 p_grandclement |
| 40 |
* Changes for the Bin_ns_bh project |
| 41 |
* |
| 42 |
* Revision 1.1 2004/06/09 06:27:40 k_taniguchi |
| 43 |
* First revision. |
| 44 |
* |
| 45 |
* |
| 46 |
* $Header: /cvsroot/Lorene/C++/Source/Bin_ns_bh/bin_ns_bh_omegaana.C,v 1.4 2014/10/13 08:52:43 j_novak Exp $ |
| 47 |
* |
| 48 |
*/ |
| 49 |
|
| 50 |
// C headers |
| 51 |
#include <cmath> |
| 52 |
|
| 53 |
// Lorene headers |
| 54 |
#include "bin_ns_bh.h" |
| 55 |
#include "unites.h" |
| 56 |
|
| 57 |
namespace Lorene { |
| 58 |
void Bin_ns_bh::analytical_omega() { |
| 59 |
|
| 60 |
// NS-BH binary systems should be relativistic |
| 61 |
// ------------------------------------------- |
| 62 |
if ( !star.is_relativistic() ) { |
| 63 |
abort() ; |
| 64 |
} |
| 65 |
|
| 66 |
using namespace Unites ; |
| 67 |
|
| 68 |
double rr = separation() ; |
| 69 |
double mtot = star.mass_g() + hole.masse_adm_seul() / ggrav ; |
| 70 |
|
| 71 |
// Compaction factor |
| 72 |
double compact = ggrav * mtot / rr ; |
| 73 |
|
| 74 |
double omega2 ; |
| 75 |
|
| 76 |
if ( star.is_irrotational() ) { |
| 77 |
|
| 78 |
// Irrotational case |
| 79 |
// ----------------- |
| 80 |
|
| 81 |
omega2 = ggrav * mtot / pow(rr, 3.) |
| 82 |
* (1. - 2.75 * compact + 8.625 * compact*compact ) ; |
| 83 |
|
| 84 |
} |
| 85 |
else { |
| 86 |
// Corotating case |
| 87 |
// --------------- |
| 88 |
|
| 89 |
// a0/R |
| 90 |
double a0sr = star.ray_eq() / rr ; |
| 91 |
|
| 92 |
// Rescaled moment of inertia 5 I / (2 M a0^2) |
| 93 |
double ired = double(5)/double(3) * ( 1. - double(6)/M_PI/M_PI ) ; |
| 94 |
omega2 = ggrav * mtot / pow(rr, 3.) |
| 95 |
* (1. - compact * ( 2.75 + 2.*a0sr*a0sr * ired |
| 96 |
- 0.48*pow(a0sr, 4) * ired*ired ) |
| 97 |
+ compact*compact * ( 8.625 + 2.75*a0sr*a0sr * ired |
| 98 |
+ 2.*pow(a0sr, 4) * ired*ired ) ) ; |
| 99 |
|
| 100 |
} |
| 101 |
|
| 102 |
set_omega (sqrt( omega2 )) ; |
| 103 |
|
| 104 |
// The derived quantities are obsolete: |
| 105 |
del_deriv() ; |
| 106 |
|
| 107 |
} |
| 108 |
} |