/usr/include/lorene/C++/Include/bin_ns_bh.h is in liblorene-dev 0.0.0~cvs20161116+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 | /*
* Definition of Lorene class Bin_ns_bh
*
*/
/*
* Copyright (c) 2002 Philippe Grandclement, Keisuke Taniguchi,
* Eric Gourgoulhon
*
* This file is part of LORENE.
*
* LORENE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* LORENE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LORENE; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef __BIN_NS_BH_H_
#define __BIN_NS_BH_H_
/*
* $Id: bin_ns_bh.h,v 1.19 2014/10/13 08:52:32 j_novak Exp $
* $Log: bin_ns_bh.h,v $
* Revision 1.19 2014/10/13 08:52:32 j_novak
* Lorene classes and functions now belong to the namespace Lorene.
*
* Revision 1.18 2007/04/26 14:14:59 f_limousin
* The function fait_tkij now have default values for bound_nn and lim_nn
*
* Revision 1.17 2007/04/24 20:15:30 f_limousin
* Implementation of Dirichlet and Neumann BC for the lapse
*
* Revision 1.16 2006/09/25 10:01:45 p_grandclement
* Addition of N-dimensional Tbl
*
* Revision 1.15 2006/06/23 07:09:22 p_grandclement
* Addition of spinning black hole
*
* Revision 1.14 2006/06/01 12:47:50 p_grandclement
* update of the Bin_ns_bh project
*
* Revision 1.13 2006/04/25 07:21:54 p_grandclement
* Various changes for the NS_BH project
*
* Revision 1.12 2005/12/01 12:59:08 p_grandclement
* Files for bin_ns_bh project
*
* Revision 1.11 2005/11/30 11:09:03 p_grandclement
* Changes for the Bin_ns_bh project
*
* Revision 1.10 2005/10/18 13:12:31 p_grandclement
* update of the mixted binary codes
*
* Revision 1.9 2005/08/29 15:10:12 p_grandclement
* Addition of things needed :
* 1) For BBH with different masses
* 2) Provisory files for the mixted binaries (Bh and NS) : THIS IS NOT
* WORKING YET !!!
*
* Revision 1.8 2004/06/09 06:23:50 k_taniguchi
* Introduce analytical_omega() and analytical_shift().
*
* Revision 1.7 2003/11/25 07:25:44 k_taniguchi
* Change the attribute of fait_decouple() from private to public.
*
* Revision 1.6 2003/10/24 16:56:30 k_taniguchi
* Add the method for the calculation of the orbital angular velocity
*
* Revision 1.5 2003/10/24 12:45:22 k_taniguchi
* Change the class for the star from Etoile_bin to Et_bin_nsbh
*
* Revision 1.4 2003/02/13 16:40:24 p_grandclement
* Addition of various things for the Bin_ns_bh project, non of them being
* completely tested
*
* Revision 1.3 2002/12/19 14:46:16 e_gourgoulhon
*
* Modified prototype of functions set_omega and set_x_axe
*
* Revision 1.2 2002/12/18 10:29:18 e_gourgoulhon
*
* Added set_omega() and set_x_axe()
*
* Revision 1.1 2002/12/17 13:10:49 e_gourgoulhon
* Definition of class Bin_ns_bh
*
*
*
*
* $Header: /cvsroot/Lorene/C++/Include/bin_ns_bh.h,v 1.19 2014/10/13 08:52:32 j_novak Exp $
*
*/
// Lorene headers
#include "et_bin_nsbh.h"
#include "bhole.h"
namespace Lorene {
/**
* Neutron star - black hole binary system.
*
* The class {\tt Bin\_ns\_bh} is composed of an object of class
* {\tt Et\_bin\_nsbh} and an object of class {\tt Bhole}.
*
* @version #$Id: bin_ns_bh.h,v 1.19 2014/10/13 08:52:32 j_novak Exp $#
*/
class Bin_ns_bh {
// Data :
// -----
private:
/** Cartesian triad of the absolute reference frame
*
*/
const Base_vect_cart ref_triad ;
/// The neutron star
Et_bin_nsbh star ;
/// The black hole
Bhole hole ;
/** Angular velocity with respect to an asymptotically inertial
* observer
*/
double omega ;
/** Absolute X coordinate of the rotation axis
*/
double x_axe ;
// Derived data :
// ------------
private:
/// Total ADM mass of the system
mutable double* p_mass_adm ;
/// Total Komar mass of the system
mutable double* p_mass_kom ;
/// Total angular momentum of the system
mutable Tbl* p_angu_mom ;
/// Total energy of the system
mutable double* p_total_ener ;
/// Virial theorem error
mutable double* p_virial ;
/// Virial theorem error by E.Gourgoulhon and S.Bonazzola.
mutable double* p_virial_gb ;
/// Virial theorem error by J.L.Friedman, K.Uryu, and M.Shibata.
mutable double* p_virial_fus ;
/// Relative error on the Hamiltonian constraint
mutable double* p_ham_constr ;
/// Relative error on the momentum constraint
mutable Tbl* p_mom_constr ;
// Constructors - Destructor
// -------------------------
public:
/** Standard constructor.
*
* @param mp_ns Mapping on which {\tt star} will be defined
* @param nzet Number of domains occupied by {\tt star}
* @param eos Equation of state of {\tt star}
* @param irrot_ns should be {\tt true} if {\tt star} is irrotational,
* {\tt false} if {\tt star} is corotating
* @param mp_bh Mapping on which {\tt bhole} will be defined
*
*/
Bin_ns_bh(Map& mp_ns, int nzet, const Eos& eos, bool irrot_ns,
Map_af& mp_bh) ;
Bin_ns_bh(const Bin_ns_bh& ) ; /// Copy constructor
/** Constructor from a file (see {\tt sauve(FILE* )}).
*
* @param mp_ns Mapping on which {\tt star} will be defined
* @param eos Equation of state of {\tt star}
* @param mp_bh Mapping on which {\tt star} will be defined
* @param fich input file (must have been created by the function
* {\tt sauve})
*/
Bin_ns_bh(Map& mp_ns, const Eos& eos, Map_af& mp_bh, FILE* fich, bool old = false) ;
virtual ~Bin_ns_bh() ; /// Destructor
// Memory management
// -----------------
private:
/// Deletes all the derived quantities
void del_deriv() const ;
/// Sets to {\tt 0x0} all the pointers on derived quantities
void set_der_0x0() const ;
// Mutators / assignment
// ---------------------
public:
/// Assignment to another Bin_ns_bh
void operator=(const Bin_ns_bh& ) ;
/// Read/write of the neutron star
Et_bin_nsbh& set_ns()
{ del_deriv() ;
return star ;} ;
/// Read/write of the black hole
Bhole& set_bh()
{ del_deriv() ;
return hole ;} ;
/// Sets the orbital angular velocity [{\tt f\_unit}]
void set_omega(double ) ;
/// Sets the absolute coordinate X of the rotation axis [{\tt r\_unit}]
void set_x_axe(double ) ;
// Accessors
// ---------
public:
/// Returns a constant reference to the neutron star
const Et_bin_nsbh& get_ns() const
{ return star ;} ;
/// Returns a constant reference to the black hole
const Bhole& get_bh() const
{ return hole ;} ;
/// Returns the orbital velocity
double get_omega() const
{ return omega ;} ;
/// Returns a constant reference to the black hole
double get_x_axe() const
{ return x_axe ;} ;
/// Return the separation
double separation() const ;
// Outputs
// -------
public:
virtual void sauve(FILE *) const ; /// Save in a file
/// Display
friend ostream& operator<<(ostream& , const Bin_ns_bh& ) ;
private:
/// Operator >> (function called by the operator <<).
ostream& operator>>(ostream& ) const ;
public:
/** Function used to compute the {\tt decouple} functions for both
* the NS and the BH
**/
void fait_decouple() ;
/** Computation of the extrinsic curvature tensor for both
* {\tt star} and {\tt bhole}.
**/
void fait_tkij(int bound_nn = -1, double lim_nn = 0) ;
// Computational routines
// ----------------------
public:
/** Computes the orbital angular velocity {\tt omega}
*
* @param fact_omeg_min [input] : determines the lower bound of the
* interval {\tt [omega\_min, omega\_max]} in which
* {\tt omega} is searched by
* {\tt omega\_min = fact\_omeg\_min * omega},
* where {\tt omega} is the previous value of the
* angular velocity
* (typical value : {\tt fact\_omeg\_min = 0.5})
*
* @param fact_omeg_max [input] : determines the higher bound of the
* interval {\tt [omega\_min, omega\_max]} in which
* {\tt omega} is searched by
* {\tt omega\_max = fact\_omeg\_max * omega},
* where {\tt omega} is the previous value of the
* angular velocity.
* (typical value : {\tt fact\_omeg\_max = 1.5})
*
*/
void orbit_omega(double fact_omeg_min, double fact_omeg_max) ;
/** Sets the orbital angular velocity of the neutron star
* to some 2-PN analytical value
*/
void analytical_omega() ;
/** Sets some analytical template for the shift vector (via the
* members {\tt w\_shift} and {\tt khi\_shift} of the neutron star
*/
void analytical_shift() ;
void init_auto () ;
void affecte (const Bin_ns_bh&) ;
void pseudo_misner (int&, int, double, double, int, double) ;
double adm_systeme() const ;
double adm_systeme_volume() const ;
double komar_systeme() const ;
double moment_systeme_inf() const ;
double moment_systeme_hor() const ;
double smarr() const ;
Tbl linear_momentum_systeme_inf() const ;
double viriel() const ;
void coal (double, double, int, int, double, double, double, double, double, double, double, const int, int, double) ;
double distance_propre_axe_bh (const int nr = 65) const ;
double distance_propre_axe_ns (const int nr = 65) const ;
};
ostream& operator<<(ostream& , const Bin_ns_bh& ) ;
}
#endif
|